Struct geng_ui::LayoutContext
source · pub struct LayoutContext<'a> {
pub theme: &'a Theme,
pub position: Aabb2<f64>,
/* private fields */
}
Fields§
§theme: &'a Theme
§position: Aabb2<f64>
Implementations§
source§impl LayoutContext<'_>
impl LayoutContext<'_>
pub fn get_constraints(&self, widget: &dyn Widget) -> Constraints
pub fn set_position(&mut self, widget: &dyn Widget, position: Aabb2<f64>)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LayoutContext<'a>
impl<'a> !Send for LayoutContext<'a>
impl<'a> !Sync for LayoutContext<'a>
impl<'a> Unpin for LayoutContext<'a>
impl<'a> !UnwindSafe for LayoutContext<'a>
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