use crate::prelude::*;
#[allow(unused)]
pub trait TheTrait {
fn new() -> Self
where
Self: Sized;
fn init(&mut self, ctx: &mut TheContext) {}
fn window_title(&mut self) -> String {
"TheFramework based App".to_string()
}
#[cfg(feature = "ui")]
fn init_ui(&mut self, ui: &mut TheUI, ctx: &mut TheContext) {}
fn draw(&mut self, pixels: &mut [u8], ctx: &mut TheContext) {}
fn update(&mut self, ctx: &mut TheContext) -> bool {
false
}
#[cfg(feature = "ui")]
fn update_ui(&mut self, ui: &mut TheUI, ctx: &mut TheContext) -> bool {
false
}
fn touch_down(&mut self, x: f32, y: f32, ctx: &mut TheContext) -> bool {
false
}
fn touch_dragged(&mut self, x: f32, y: f32, ctx: &mut TheContext) -> bool {
false
}
fn touch_up(&mut self, x: f32, y: f32, ctx: &mut TheContext) -> bool {
false
}
fn hover(&mut self, _x: f32, _y: f32, ctx: &mut TheContext) -> bool {
false
}
fn key_down(
&mut self,
char: Option<char>,
key: Option<TheKeyCode>,
ctx: &mut TheContext,
) -> bool {
false
}
fn mouse_wheel(&mut self, delta: (isize, isize), ctx: &mut TheContext) -> bool {
false
}
fn modifier_changed(&mut self, shift: bool, ctrl: bool, alt: bool, logo: bool) -> bool {
false
}
fn dropped_file(&mut self, _path: String) -> bool {
false
}
fn open(&mut self) {}
fn save(&mut self) {}
fn save_as(&mut self) {}
fn cut(&mut self) -> String {
"".to_string()
}
fn copy(&mut self) -> String {
"".to_string()
}
fn paste(&mut self, text: String) {}
fn undo(&mut self) {}
fn redo(&mut self) {}
}