[][src]Module sixtyfps_corelib::items

This module contains the builtin items, either in this file or in sub-modules.

When adding an item or a property, it needs to be kept in sync with different place. (This is less than ideal and maybe we can have some automation later)

  • It needs to be changed in this module
  • In the compiler: builtins.60
  • In the interpreter: dynamic_component.rs
  • For the C++ code (new item only): the cbindgen.rs to export the new item, and the using declaration in sixtyfps.h
  • Don't forget to update the documentation

Re-exports

pub use crate::graphics::RenderingVariable;
pub use crate::SharedArray;

Structs

BorderRectangle

The implementation of the BorderRectangle element

BorderRectangleFieldsOffsets

Helper struct containing the offsets of the fields of the struct BorderRectangle

Clip

The implementation of the Rectangle element

ClipFieldsOffsets

Helper struct containing the offsets of the fields of the struct Clip

ClippedImage

The implementation of the ClippedImage element

ClippedImageFieldsOffsets

Helper struct containing the offsets of the fields of the struct ClippedImage

Flickable

The implementation of the Flickable element

FlickableDataBox

Wraps the internal datastructure for the Flickable

FlickableFieldsOffsets

Helper struct containing the offsets of the fields of the struct Flickable

Image

The implementation of the Image element

ImageFieldsOffsets

Helper struct containing the offsets of the fields of the struct Image

ItemRc

A ItemRc is holding a reference to a component containing the item, and the index of this item

ItemVTable

Items are the nodes in the render tree.

ItemWeak

A Weak reference to an item that can be constructed from an ItemRc.

Path

The implementation of the Path element

PathFieldsOffsets

Helper struct containing the offsets of the fields of the struct Path

PropertyAnimation

The implementation of the PropertyAnimation element

PropertyAnimationFieldsOffsets

Helper struct containing the offsets of the fields of the struct PropertyAnimation

Rectangle

The implementation of the Rectangle element

RectangleFieldsOffsets

Helper struct containing the offsets of the fields of the struct Rectangle

Text

The implementation of the Text element

TextFieldsOffsets

Helper struct containing the offsets of the fields of the struct Text

TextInput

The implementation of the TextInput element

TextInputFieldsOffsets

Helper struct containing the offsets of the fields of the struct TextInput

TouchArea

The implementation of the TouchArea element

TouchAreaFieldsOffsets

Helper struct containing the offsets of the fields of the struct TouchArea

Window

The implementation of the Window element

WindowFieldsOffsets

Helper struct containing the offsets of the fields of the struct Window

Enums

TextHorizontalAlignment
TextVerticalAlignment

Statics

BorderRectangleVTable

The VTable for BorderRectangle

ClipVTable

The VTable for Clip

ClippedImageVTable

The VTable for ClippedImage

FlickableVTable

The VTable for Flickable

ImageVTable

The VTable for Image

PathVTable

The VTable for Path

RectangleVTable

The VTable for Rectangle

TextInputVTable

The VTable for TextInput

TextVTable

The VTable for Text

TouchAreaVTable

The VTable for TouchArea

WindowVTable

The VTable for Window

Traits

Item

Items are the nodes in the render tree. Note: Was generated from the #[vtable] macro on ItemVTable

ItemConsts

Trait containing the associated constant relative to the the trait Item.

Functions

sixtyfps_flickable_data_free
sixtyfps_flickable_data_init

Type Definitions

ItemRef

Alias for vtable::VRef<ItemVTable> which represent a pointer to a dyn Item with the associated vtable