Struct direct_gui::Gui [] [src]

pub struct Gui { /* fields omitted */ }

The main entry point.

Typically a game has one instance of this struct where the resources are loaded before the main loop.

Methods

impl Gui
[src]

[src]

Creates a new GUI.

[src]

Handle the user input and information as supplied by the windowing library.

[src]

Draw the drawable GUI controls on a target buffer.

[src]

Register a control.

[src]

Retrieve a control by reference.

[src]

Retrieve a control by mutable reference.

[src]

Return the default font loaded from the assets/ folder and parsed by build.rs. Which is always the first item added to the fonts array.

[src]

Load image from a path.

The mask color is the color that will be used as alpha in the sprite, a common color to use for this is 0xFF00FF.

Returns a reference to the image.

[src]

Load image from serialized memory. Returns a reference to the image.

[src]

Load font image from a path.

The mask color is the color that will be used as alpha in the sprite, a common color to use for this is 0xFF00FF.

Returns a reference to the font.

[src]

Load image from serialized memory. Returns a reference to the image.