[go: up one dir, main page]

Struct i_slint_core::items::Path

source ·
#[repr(C)]
pub struct Path {
Show 15 fields pub x: Property<LogicalLength>, pub y: Property<LogicalLength>, pub width: Property<LogicalLength>, pub height: Property<LogicalLength>, pub elements: Property<PathData>, pub fill: Property<Brush>, pub fill_rule: Property<FillRule>, pub stroke: Property<Brush>, pub stroke_width: Property<LogicalLength>, pub viewbox_x: Property<f32>, pub viewbox_y: Property<f32>, pub viewbox_width: Property<f32>, pub viewbox_height: Property<f32>, pub clip: Property<bool>, pub cached_rendering_data: CachedRenderingData,
}
Expand description

The implementation of the Path element

Fields§

§x: Property<LogicalLength>§y: Property<LogicalLength>§width: Property<LogicalLength>§height: Property<LogicalLength>§elements: Property<PathData>§fill: Property<Brush>§fill_rule: Property<FillRule>§stroke: Property<Brush>§stroke_width: Property<LogicalLength>§viewbox_x: Property<f32>§viewbox_y: Property<f32>§viewbox_width: Property<f32>§viewbox_height: Property<f32>§clip: Property<bool>§cached_rendering_data: CachedRenderingData

Implementations§

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

Returns an iterator of the events of the path and an offset, so that the shape fits into the width/height of the path while respecting the stroke width.

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.