Trait gelatin::WidgetData
source · [−]pub trait WidgetData {
fn placement(&mut self) -> &mut WidgetPlacement;
fn drawn_bounds(&mut self) -> &mut LogicalRect;
fn visible(&mut self) -> &mut bool;
fn apply_horizontal_alignement(
&mut self,
available_space: LogicalRect,
width: f32
) { ... }
fn apply_vertical_alignement(
&mut self,
available_space: LogicalRect,
height: f32
) { ... }
fn default_layout(&mut self, available_space: LogicalRect) { ... }
}
Required Methods
fn placement(&mut self) -> &mut WidgetPlacement
sourcefn drawn_bounds(&mut self) -> &mut LogicalRect
fn drawn_bounds(&mut self) -> &mut LogicalRect
The area that this widget visually occupies placed relative to the top left corner of the window in logical pixels. This area does not include the widget’s margins.