Struct sixtyfps_corelib::window::ComponentWindow [−][src]
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.
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
Auto Trait Implementations
impl !RefUnwindSafe for ComponentWindow
impl !Send for ComponentWindow
impl !Sync for ComponentWindow
impl Unpin for ComponentWindow
impl !UnwindSafe for ComponentWindow
Blanket Implementations
Mutably borrows from an owned value. Read more