[−][src]Trait sixtyfps_corelib::items::Item
Items are the nodes in the render tree.
Note: Was generated from the #[vtable]
macro on ItemVTable
Required methods
pub fn init(self: Pin<&Self>, _1: &ComponentWindow)
[src]
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.
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
Returns the geometry of this item (relative to its parent item)
pub fn rendering_primitive(
self: Pin<&Self>,
_1: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_1: &ComponentWindow
) -> HighLevelRenderingPrimitive
Return the rendering primitive used to display this item. This should depend on only rarely changed properties as it typically contains data uploaded to the GPU.
pub fn rendering_variables(
self: Pin<&Self>,
_1: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_1: &ComponentWindow
) -> SharedArray<RenderingVariable>
Return the variables needed to render the graphical primitives of this item. These are typically variables that do not require uploading any data sets to the GPU and can instead be represented using uniforms.
pub fn layouting_info(self: Pin<&Self>, _1: &ComponentWindow) -> LayoutInfo
[src]
We would need max/min/preferred size, and all layout info
pub fn input_event(
self: Pin<&Self>,
_1: MouseEvent,
_2: &ComponentWindow,
_3: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_1: MouseEvent,
_2: &ComponentWindow,
_3: &ItemRc
) -> InputEventResult
input event
pub fn focus_event(self: Pin<&Self>, _1: &FocusEvent, _2: &ComponentWindow)
[src]
pub fn key_event(
self: Pin<&Self>,
_1: &KeyEvent,
_2: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_1: &KeyEvent,
_2: &ComponentWindow
) -> KeyEventResult
Implementors
impl Item for BorderRectangle
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Clip
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for ClippedImage
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Flickable
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Image
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Path
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Rectangle
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Text
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for TextInput
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(
self: Pin<&Self>,
event: &FocusEvent,
window: &ComponentWindow
)
[src]
self: Pin<&Self>,
event: &FocusEvent,
window: &ComponentWindow
)
impl Item for TouchArea
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl Item for Window
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
_event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
_event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult