Struct rustty::ui::Widget
[−]
[src]
pub struct Widget { /* fields omitted */ }
Methods
impl Widget
[src]
Trait Implementations
impl HasSize for Widget
[src]
impl CellAccessor for Widget
[src]
fn cellvec(&self) -> &Vec<Cell>
fn cellvec_mut(&mut self) -> &mut Vec<Cell>
fn clear(&mut self, blank: Cell)
Clears self
, using the given Cell
as a blank.
fn pos_to_index(&self, x: usize, y: usize) -> Option<usize>
fn get(&self, x: usize, y: usize) -> Option<&Cell>
Returns a reference to the Cell
at the given coordinates, or None
if the index is out of bounds. Read more
fn get_mut(&mut self, x: usize, y: usize) -> Option<&mut Cell>
Returns a mutable reference to the Cell
at the given coordinates, or None
if the index is out of bounds. Read more
impl HasPosition for Widget
[src]
fn origin(&self) -> Pos
fn set_origin(&mut self, new_origin: Pos)
impl Alignable for Widget
[src]
fn halign(&mut self, parent: &HasSize, halign: HorizontalAlign, margin: usize)
fn valign(&mut self, parent: &HasSize, valign: VerticalAlign, margin: usize)
fn align(
&mut self,
parent: &HasSize,
halign: HorizontalAlign,
valign: VerticalAlign,
margin: usize
)
&mut self,
parent: &HasSize,
halign: HorizontalAlign,
valign: VerticalAlign,
margin: usize
)