1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Rename eframe::EframeError to eframe::Error

This commit is contained in:
Emil Ernerfeldt
2022-12-14 17:29:54 +01:00
parent 4e8341d35c
commit 37fd141dd1
18 changed files with 19 additions and 19 deletions

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(320.0, 240.0)),
..Default::default()

View File

@@ -6,7 +6,7 @@ use eframe::egui;
use egui::mutex::Mutex;
use std::sync::Arc;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(350.0, 380.0)),
multisampling: 8,

View File

@@ -4,7 +4,7 @@
use eframe::egui;
#[cfg(not(target_arch = "wasm32"))]
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(550.0, 610.0)),
multisampling: 8,

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(320.0, 240.0)),
..Default::default()

View File

@@ -58,7 +58,7 @@ impl eframe::App for MyApp {
}
}
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions::default();
eframe::run_native(

View File

@@ -4,7 +4,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
// Hide the OS-specific "chrome" around the window:
decorated: false,

View File

@@ -4,7 +4,7 @@ use eframe::egui;
use egui_extras::RetainedImage;
use poll_promise::Promise;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions::default();
eframe::run_native(
"Download and show an image with eframe/egui",

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
drag_and_drop_support: true,
initial_window_size: Some(egui::vec2(320.0, 240.0)),

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
// Log to stdout (if you run with `RUST_LOG=debug`).
tracing_subscriber::fmt::init();

View File

@@ -2,7 +2,7 @@
use eframe::egui;
use egui::*;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
// Log to stdout (if you run with `RUST_LOG=debug`).
tracing_subscriber::fmt::init();

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
start_puffin_server(); // NOTE: you may only want to call this if the users specifies some flag or clicks a button!
let options = eframe::NativeOptions::default();

View File

@@ -3,7 +3,7 @@
use eframe::egui;
use egui_extras::RetainedImage;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(300.0, 900.0)),
..Default::default()

View File

@@ -6,7 +6,7 @@ use eframe::{
};
use itertools::Itertools as _;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions::default();
eframe::run_native(
"Take screenshots and display with eframe/egui",

View File

@@ -2,7 +2,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
if cfg!(target_os = "macos") {
eprintln!("WARNING: this example does not work on Mac! See https://github.com/emilk/egui/issues/1918");
}

View File

@@ -6,7 +6,7 @@
use eframe::egui;
fn main() -> Result<(), eframe::EframeError> {
fn main() -> Result<(), eframe::Error> {
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(1000.0, 700.0)),
..Default::default()