Skip to content

what is wrong my code? #4924

Discussion options

You must be logged in to vote

See below

// use eframe::egui::*;

fn main() -> eframe::Result {
    env_logger::init();
    let options = eframe::NativeOptions {
        viewport: egui::ViewportBuilder::default()
            .with_inner_size([800.0, 600.0]),
        ..Default::default()
    };
    eframe::run_native(
        "OcdGain",
        options,
        Box::new(|_cc| Ok(Box::new(OcdGain::default()))),
    )
}

#[derive(Debug, Default, PartialEq)]
pub enum GainCrementValue {
    Value1_00,
    #[default]
    Value1_01,
}

#[derive(Default)]
pub struct OcdGain {
    gain_crement_value: GainCrementValue,
}

impl eframe::App for OcdGain {
    fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qfihwoihfiqowhfioqhwofqof
Comment options

Answer selected by qfihwoihfiqowhfioqhwofqof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants