[−][src]Trait mergui::widgets::Widget
This is the real widget. It isn't meant to interact directly with except when creating other widgets that exist of multiple smaller ones
This is the real widget. It isn't meant to interact directly with except when creating other widgets that exist of multiple smaller ones
fn contains(&self, pos: &Vector) -> bool
fn is_focusable(&self, pos: &Vector) -> bool
fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
fn get_cursor_on_hover(&self, _: &Vector) -> MouseCursor
fn set_focus(&mut self, _: &Vector, _: bool)
fn set_hover(&mut self, _: &Vector, _: bool)
fn on_click(&mut self, _location: &Vector)
fn on_key_press(&mut self, _key: Key, _state: ButtonState)
fn on_typed(&mut self, _char: char)
impl Widget for ImageButton
[src]fn contains(&self, point: &Vector) -> bool
[src]fn is_focusable(&self, _: &Vector) -> bool
[src]fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
[src]fn on_click(&mut self, _location: &Vector)
[src]fn get_cursor_on_hover(&self, _: &Vector) -> MouseCursor
[src]impl Widget for Image
[src]fn contains(&self, _: &Vector) -> bool
[src]fn is_focusable(&self, _: &Vector) -> bool
[src]fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
[src]impl Widget for TextButton
[src]fn contains(&self, point: &Vector) -> bool
[src]fn is_focusable(&self, _: &Vector) -> bool
[src]fn render(&self, _: &dyn Assets, window: &mut Window, z: u32)
[src]fn on_click(&mut self, _location: &Vector)
[src]fn get_cursor_on_hover(&self, _: &Vector) -> MouseCursor
[src]impl Widget for Button
[src]fn contains(&self, point: &Vector) -> bool
[src]fn is_focusable(&self, _: &Vector) -> bool
[src]fn set_hover(&mut self, _: &Vector, hover: bool)
[src]fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
[src]fn on_click(&mut self, _: &Vector)
[src]fn get_cursor_on_hover(&self, _: &Vector) -> MouseCursor
[src]impl<W: Widget> Widget for Concealer<W>
[src]fn contains(&self, point: &Vector) -> bool
[src]fn is_focusable(&self, location: &Vector) -> bool
[src]fn set_hover(&mut self, location: &Vector, hover: bool)
[src]fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
[src]fn on_click(&mut self, clicked_on: &Vector)
[src]fn get_cursor_on_hover(&self, pos: &Vector) -> MouseCursor
[src]impl<W: Widget> Widget for ConcealerManager<W>
[src]fn contains(&self, pos: &Vector) -> bool
[src]fn is_focusable(&self, pos: &Vector) -> bool
[src]fn render(&self, assets: &dyn Assets, window: &mut Window, z: u32)
[src]fn get_cursor_on_hover(&self, pos: &Vector) -> MouseCursor
[src]fn set_focus(&mut self, pos: &Vector, state: bool)
[src]fn set_hover(&mut self, pos: &Vector, state: bool)
[src]fn on_click(&mut self, pos: &Vector)
[src]fn on_key_press(&mut self, _key: Key, _state: ButtonState)
[src]fn on_typed(&mut self, _char: char)
[src]