Struct i_slint_compiler::llr::SubComponent
source · pub struct SubComponent {Show 19 fields
pub name: String,
pub properties: Vec<Property>,
pub functions: Vec<Function>,
pub items: Vec<Item>,
pub repeated: Vec<RepeatedElement>,
pub component_containers: Vec<ComponentContainerElement>,
pub popup_windows: Vec<ItemTree>,
pub sub_components: Vec<SubComponentInstance>,
pub property_init: Vec<(PropertyReference, BindingExpression)>,
pub change_callbacks: Vec<(PropertyReference, MutExpression)>,
pub animations: HashMap<PropertyReference, Expression>,
pub two_way_bindings: Vec<(PropertyReference, PropertyReference)>,
pub const_properties: Vec<PropertyReference>,
pub init_code: Vec<MutExpression>,
pub geometries: Vec<Option<MutExpression>>,
pub layout_info_h: MutExpression,
pub layout_info_v: MutExpression,
pub accessible_prop: BTreeMap<(u32, String), MutExpression>,
pub prop_analysis: HashMap<PropertyReference, PropAnalysis>,
}Fields§
§name: String§properties: Vec<Property>§functions: Vec<Function>§items: Vec<Item>§repeated: Vec<RepeatedElement>§component_containers: Vec<ComponentContainerElement>§popup_windows: Vec<ItemTree>§sub_components: Vec<SubComponentInstance>§property_init: Vec<(PropertyReference, BindingExpression)>The initial value or binding for properties. This is ordered in the order they must be set.
change_callbacks: Vec<(PropertyReference, MutExpression)>§animations: HashMap<PropertyReference, Expression>The animation for properties which are animated
two_way_bindings: Vec<(PropertyReference, PropertyReference)>§const_properties: Vec<PropertyReference>§init_code: Vec<MutExpression>Code that is run in the sub component constructor, after property initializations
geometries: Vec<Option<MutExpression>>For each node, an expression that returns a {x: length, y: length, width: length, height: length}
layout_info_h: MutExpression§layout_info_v: MutExpression§accessible_prop: BTreeMap<(u32, String), MutExpression>Maps (item_index, property) to an expression
prop_analysis: HashMap<PropertyReference, PropAnalysis>Implementations§
source§impl SubComponent
impl SubComponent
sourcepub fn repeater_count(&self) -> u32
pub fn repeater_count(&self) -> u32
total count of repeater, including in sub components
sourcepub fn child_item_count(&self) -> u32
pub fn child_item_count(&self) -> u32
total count of items, including in sub components
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SubComponent
impl !RefUnwindSafe for SubComponent
impl !Send for SubComponent
impl !Sync for SubComponent
impl Unpin for SubComponent
impl !UnwindSafe for SubComponent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more