pub struct Element {
pub widget_id: Id,
pub row: usize,
pub col: usize,
pub w: Scalar,
pub h: Scalar,
pub rel_x: Scalar,
pub rel_y: Scalar,
/* private fields */
}Expand description
Data necessary for instantiating a widget for a single Matrix element.
Fields§
§widget_id: IdThe id generated for the widget.
row: usizeThe row number for the Element.
col: usizeThe column number for the Element.
w: ScalarThe width of the element.
h: ScalarThe height of the element.
rel_x: ScalarThe x position of the element relative to the centre of the Matrix.
rel_y: ScalarThe y position of the element relative to the centre of the Matrix.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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