[−][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
fn init(self: Pin<&Self>, _1: &ComponentWindow)
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.
fn geometry(self: Pin<&Self>) -> Rect
Returns the geometry of this item (relative to its parent item)
fn rendering_primitive(
self: Pin<&Self>,
_1: &ComponentWindow
) -> HighLevelRenderingPrimitive
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.
fn rendering_variables(
self: Pin<&Self>,
_1: &ComponentWindow
) -> SharedArray<RenderingVariable>
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.
fn layouting_info(self: Pin<&Self>, _1: &ComponentWindow) -> LayoutInfo
We would need max/min/preferred size, and all layout info
fn input_event(
self: Pin<&Self>,
_1: MouseEvent,
_2: &ComponentWindow,
_3: Pin<VRef<'_, ComponentVTable>>
) -> InputEventResult
self: Pin<&Self>,
_1: MouseEvent,
_2: &ComponentWindow,
_3: Pin<VRef<'_, ComponentVTable>>
) -> InputEventResult
input event
fn focus_event(self: Pin<&Self>, _1: &FocusEvent, _2: &ComponentWindow)
fn key_event(
self: Pin<&Self>,
_1: &KeyEvent,
_2: &ComponentWindow
) -> KeyEventResult
self: Pin<&Self>,
_1: &KeyEvent,
_2: &ComponentWindow
) -> KeyEventResult
Implementors
impl Item for BorderRectangle
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Flickable
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Image
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Path
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Rectangle
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Text
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for TextInput
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
app_component: ComponentRefPin<'_>
) -> InputEventResult
fn key_event(
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, event: &FocusEvent, window: &ComponentWindow)
[src]
impl Item for TouchArea
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> 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]
impl Item for Window
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
_event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
_event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult