Struct fungui::Manager

source ·
pub struct Manager<E: Extension> { /* private fields */ }
Expand description

Stores loaded nodes and manages the layout.

Implementations§

Creates a new manager with an empty root node.

Adds a new function that can be used to create a layout engine.

A layout engine is used to position elements within an element.

The layout engine can be selected by using the layout attribute.

Add a function that can be called by style rules

Arguments are only parsed when obtained from the iterator making unused parameters cheap.

Adds the node to the root node of this manager.

The node is created from the passed string. See from_str

Adds the node to the root node of this manager

Removes the node from the root node of this manager

Starts a query from the root of this manager

Starts a query looking for elements at the target location.

Loads a set of styles from the given string.

The name can be used to remove the loaded styles later

Removes the set of styles with the given name

Positions the nodes in this manager.

This will update nodes based on their properties and then position them based on their selected layout.

Renders the nodes in this manager by passing the draw position/size and style properties to the visitor

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.