[go: up one dir, main page]

Struct i_slint_core::items::Layer

source ·
#[repr(C)]
pub struct Layer { pub x: Property<LogicalLength>, pub y: Property<LogicalLength>, pub width: Property<LogicalLength>, pub height: Property<LogicalLength>, pub cache_rendering_hint: Property<bool>, pub cached_rendering_data: CachedRenderingData, }
Expand description

The Layer Item is not meant to be used directly by the .slint code, instead, the layer: xxx property should be used

Fields§

§x: Property<LogicalLength>§y: Property<LogicalLength>§width: Property<LogicalLength>§height: Property<LogicalLength>§cache_rendering_hint: Property<bool>§cached_rendering_data: CachedRenderingData

Implementations§

Return a struct containing the offset of for the fields of this struct

Trait Implementations§

Returns the “default value” for a type. Read more
Safety: must be a valid VTable for Self
This function is called by the run-time after the memory for the item has been allocated and initialized. It will be called before any user specified bindings are set.
Returns the geometry of this item (relative to its parent item)
We would need max/min/preferred size, and all layout info
Event handler for mouse and touch event. This function is called before being called on children. Then, depending on the return value, it is called for the children, and their children, then Self::input_event is called on the children, and finally Self::input_event is called on this item again.
Handle input event for mouse and touch event
offset in bytes from the *const ItemImpl. isize::MAX means None

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.