pub struct Rectangle {
pub name: &'static str,
pub position: (u16, u16),
pub size: (u16, u16),
pub fill: bool,
/* private fields */
}Fields§
§name: &'static str§position: (u16, u16)§size: (u16, u16)§fill: boolImplementations§
Trait Implementations§
Source§impl UiElement for Rectangle
impl UiElement for Rectangle
fn render(&self, buffer: &mut SizedBuffer)
fn get_name(&self) -> &str
fn has_focus(&self) -> bool
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn update(&mut self, _console: &mut ConsoleUpdateInfo)
fn is_clicked(&self, _x: u16, _y: u16) -> bool
fn is_focusable(&self) -> bool
fn on_focus(&mut self)
fn on_focus_removed(&mut self)
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more