Module sixtyfps_corelib::items[][src]

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 (new item only): dynamic_component.rs
  • For the C++ code (new item only):
    • the cbindgen.rs to export the new item
    • the using declaration in sixtyfps.h for the item and its vtable
  • Don’t forget to update the documentation

Re-exports

pub use crate::SharedVector;

Structs

BorderRectangle

The implementation of the BorderRectangle element

BorderRectangleFieldsOffsets

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

BoxShadow

The implementation of the BoxShadow element

BoxShadowFieldsOffsets

Helper struct containing the offsets of the fields of the struct BoxShadow

Clip

The implementation of the Clip 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

FocusScope

A runtime item that exposes key

FocusScopeFieldsOffsets

Helper struct containing the offsets of the fields of the struct FocusScope

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.

Opacity

The Opacity Item is not meant to be used directly by the .60 code, instead, the opacity: xxx or visible: false should be used

OpacityFieldsOffsets

Helper struct containing the offsets of the fields of the struct Opacity

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

Rotate

The implementation of the Rotate element

RotateFieldsOffsets

Helper struct containing the offsets of the fields of the struct Rotate

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

EventResult

What is returned from the event handler

FillRule
ImageFit
TextHorizontalAlignment
TextOverflow
TextVerticalAlignment
TextWrap

Statics

BorderRectangleVTable

The VTable for BorderRectangle

BoxShadowVTable

The VTable for BoxShadow

ClipVTable

The VTable for Clip

ClippedImageVTable

The VTable for ClippedImage

FlickableVTable

The VTable for Flickable

FocusScopeVTable

The VTable for FocusScope

ImageVTable

The VTable for Image

OpacityVTable

The VTable for Opacity

PathVTable

The VTable for Path

RectangleVTable

The VTable for Rectangle

RotateVTable

The VTable for Rotate

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

VoidArg

Workarounds for cbindgen