Struct sixtyfps_corelib::items::Path [−][src]
#[repr(C)]pub struct Path { pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub elements: Property<PathData>, pub fill: Property<Brush>, pub fill_rule: Property<FillRule>, pub stroke: Property<Brush>, pub stroke_width: Property<f32>, pub cached_rendering_data: CachedRenderingData, }
The implementation of the Path
element
Fields
x: Property<f32>
y: Property<f32>
width: Property<f32>
height: Property<f32>
elements: Property<PathData>
fill: Property<Brush>
fill_rule: Property<FillRule>
stroke: Property<Brush>
stroke_width: Property<f32>
cached_rendering_data: CachedRenderingData
Implementations
impl Path
[src]
impl Path
[src]pub const FIELD_OFFSETS: PathFieldsOffsets
[src]
Return a struct containing the offset of for the fields of this struct
impl Path
[src]
impl Path
[src]pub fn x(self: Pin<&Self>) -> f32
[src]
pub fn y(self: Pin<&Self>) -> f32
[src]
pub fn width(self: Pin<&Self>) -> f32
[src]
pub fn height(self: Pin<&Self>) -> f32
[src]
pub fn elements(self: Pin<&Self>) -> PathData
[src]
pub fn fill(self: Pin<&Self>) -> Brush
[src]
pub fn fill_rule(self: Pin<&Self>) -> FillRule
[src]
pub fn stroke(self: Pin<&Self>) -> Brush
[src]
pub fn stroke_width(self: Pin<&Self>) -> f32
[src]
impl Path
[src]
impl Path
[src]pub fn fitted_path_events(self: Pin<&Self>) -> (Vector2D<f32>, PathDataIterator)
[src]
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
impl HasStaticVTable<ItemVTable> for Path
[src]
impl HasStaticVTable<ItemVTable> for Path
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for Path
[src]
impl Item for Path
[src]fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size
[src]
fn input_event_filter_before_children(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
fn render(self: Pin<&Self>, backend: &mut &'_ mut dyn ItemRenderer)
[src]
impl ItemConsts for Path
[src]
impl ItemConsts for Path
[src]