[−][src]Struct sixtyfps_corelib::items::ItemVTable
Items are the nodes in the render tree.
Fields
init: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, window: &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.
geometry: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>) -> Rect
Returns the geometry of this item (relative to its parent item)
cached_rendering_data_offset: usize
offset in bytes fromthe *const ItemImpl. isize::MAX means None
rendering_primitive: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, window: &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.
rendering_variables: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, window: &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.
layouting_info: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, window: &ComponentWindow) -> LayoutInfo
We would need max/min/preferred size, and all layout info
input_event: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, _: MouseEvent, window: &ComponentWindow, self_rc: &ItemRc) -> InputEventResult
input event
focus_event: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, _: &FocusEvent, window: &ComponentWindow)
key_event: unsafe extern "C" fn(_: Pin<VRef<'_, ItemVTable>>, _: &KeyEvent, window: &ComponentWindow) -> KeyEventResult
Implementations
impl ItemVTable
[src]
pub fn new<T: Item + ItemConsts>() -> Self
[src]
Create a vtable suitable for a given type implementing the trait.
Trait Implementations
impl HasStaticVTable<ItemVTable> for Rectangle
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for BorderRectangle
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for TextInput
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Image
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for ClippedImage
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for TouchArea
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Clip
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Path
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Flickable
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Window
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl HasStaticVTable<ItemVTable> for Text
[src]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl VTableMeta for ItemVTable
[src]
type VTable = ItemVTable
That's the VTable itself (so most likely Self)
type Target = ItemTO
That's the trait object that implements the functions Read more
Auto Trait Implementations
impl RefUnwindSafe for ItemVTable
impl Send for ItemVTable
impl Sync for ItemVTable
impl Unpin for ItemVTable
impl UnwindSafe for ItemVTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,