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