[−][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
pub fn contains(&self, pos: Vector) -> bool
[src]pub fn is_focusable(&self, pos: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, window: &Window) -> Result<()>
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]pub fn set_focus(&mut self, _: Vector, _: bool)
[src]pub fn set_hover(&mut self, _: Vector, _: bool)
[src]pub fn on_click(&mut self, _location: Vector)
[src]pub fn on_key_press(&mut self, _key: Key, _state: bool)
[src]pub fn on_typed(&mut self, _char: char)
[src]impl Widget for ImageButton
[src]pub fn contains(&self, point: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, _: &Window) -> Result<()>
[src]pub fn on_click(&mut self, _location: Vector)
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]impl Widget for Image
[src]pub fn contains(&self, _: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, _: &Window) -> Result<()>
[src]impl Widget for Text
[src]pub fn contains(&self, _: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, _: &Window) -> Result<()>
[src]impl Widget for TextButton
[src]pub fn contains(&self, _: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, _: &Window) -> Result<()>
[src]pub fn on_click(&mut self, _location: Vector)
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]impl Widget for Button
[src]pub fn contains(&self, point: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn set_hover(&mut self, _: Vector, hover: bool)
[src]pub fn render(&mut self, gfx: &mut Graphics, w: &Window) -> Result<()>
[src]pub fn on_click(&mut self, _: Vector)
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]impl Widget for Concealer
[src]pub fn contains(&self, point: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn set_hover(&mut self, location: Vector, hover: bool)
[src]pub fn render(&mut self, gfx: &mut Graphics, w: &Window) -> Result<()>
[src]pub fn on_click(&mut self, clicked_on: Vector)
[src]pub fn get_cursor_on_hover(&self, pos: Vector) -> CursorIcon
[src]impl Widget for ConcealerManager
[src]pub fn contains(&self, pos: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, w: &Window) -> Result<()>
[src]pub fn get_cursor_on_hover(&self, pos: Vector) -> CursorIcon
[src]pub fn set_focus(&mut self, pos: Vector, state: bool)
[src]pub fn set_hover(&mut self, pos: Vector, state: bool)
[src]pub fn on_click(&mut self, pos: Vector)
[src]impl Widget for Input
[src]pub fn contains(&self, pos: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn render(&mut self, gfx: &mut Graphics, window: &Window) -> Result<()>
[src]pub fn set_focus(&mut self, _: Vector, focus: bool)
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]pub fn on_key_press(&mut self, key: Key, state: bool)
[src]pub fn on_typed(&mut self, typed_char: char)
[src]impl<T: Clone> Widget for DropDown<T>
[src]pub fn contains(&self, point: Vector) -> bool
[src]pub fn is_focusable(&self, _: Vector) -> bool
[src]pub fn set_hover(&mut self, point: Vector, state: bool)
[src]pub fn render(&mut self, gfx: &mut Graphics, _: &Window) -> Result<()>
[src]pub fn on_click(&mut self, pos: Vector)
[src]pub fn get_cursor_on_hover(&self, _: Vector) -> CursorIcon
[src]pub fn set_focus(&mut self, _: Vector, focus: bool)
[src]