[−][src]Struct sixtyfps_compilerlib::object_tree::Component
A component is a type in the language which can be instantiated, Or is materialized for repeated expression.
Fields
id: String
root_element: ElementRc
parent_element: Weak<RefCell<Element>>
The parent element within the parent component if this component represents a repeated element
optimized_elements: RefCell<Vec<ElementRc>>
List of elements that are not attached to the root anymore because they have been optimized away, but their properties may still be in use
embedded_file_resources: RefCell<HashMap<String, usize>>
Map of resources that should be embedded in the generated code, indexed by their absolute path on disk on the build system and valued by a unique integer id, that can be used by the generator for symbol generation.
layouts: RefCell<LayoutVec>
All layouts in this component
child_insertion_point: RefCell<Option<ElementRc>>
When creating this component and inserting "children", append them to the children of the element pointer to by this field.
setup_code: RefCell<Vec<Expression>>
Code to be inserted into the constructor
used_global: RefCell<Vec<Rc<Component>>>
All the globals used by this component and its children. FIXME: can we have cycle?
used_structs: RefCell<Vec<Type>>
popup_windows: RefCell<Vec<PopupWindow>>
Implementations
impl Component
[src]
pub fn from_node(
node: Component,
diag: &mut FileDiagnostics,
tr: &TypeRegister
) -> Rc<Self>
[src]
node: Component,
diag: &mut FileDiagnostics,
tr: &TypeRegister
) -> Rc<Self>
pub fn is_global(&self) -> bool
[src]
This component is a global component introduced with the "global" keyword
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Component
impl !Send for Component
impl !Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
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>,