Struct sixtyfps_corelib::window::ComponentWindow[][src]

#[repr(C)]
pub struct ComponentWindow(pub Rc<Window>);
Expand description

The ComponentWindow is the (rust) facing public type that can render the items of components to the screen.

Implementations

Creates a new instance of a CompomentWindow based on the given window implementation. Only used internally.

Registers the window with the windowing system, in order to render the component’s items and react to input events once the event loop spins.

De-registers the window with the windowing system.

Returns the scale factor set on the window.

Sets an overriding scale factor for the window. This is typically only used for testing.

This function is called by the generated code when a component and therefore its tree of items are destroyed. The implementation typically uses this to free the underlying graphics resources cached via RenderingCache.

Clears the focus on any previously focused item and makes the provided item the focus item, in order to receive future key events.

Associates this window with the specified component, for future event handling, etc.

Show a popup at the given position

Close the active popup if any

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.