Struct direct_gui::controls::ControlState [] [src]

pub struct ControlState {
    pub mouse_pos: (i32, i32),
    pub mouse_down: bool,
}

Data that needs to be supplied to the update function.

Fields

The position of the mouse cursor. Is not required to be inside the bounds of the screen.

If the left mouse button is pressed or not.

Methods

impl ControlState
[src]

[src]

Determines if the mouse is inside a rectangle. Mostly used internally.

Trait Implementations

impl Default for ControlState
[src]

[src]

Returns the "default value" for a type. Read more