Poison-ui

A cross-platform desktop/mobile UI engine written in D using dsfml

View project on GitHub

Dub version

poison.core.eventargs.buttoneventargs

Source

A module for button event args handling.

Authors:

  Jacob Jensen

License:

  https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE

public:

        protected:

        public:



public class ButtonEventArgs(T) : EventArgs


        protected:

        public:



Event args that relies on button logic.


protected this();


Creates a new button event args wrapper.


public void press(T button);


Presses a button.

Parameters:

buttonThe button to press.

public void release(T button);


Releases a button.

Parameters:

buttonThe button to release.

public bool isPressed(T pressedButton);


Checks whether a specific button is pressed or not.

Parameters:

pressedButtonThe button to check if pressed or not.

Returns:

  true if the button is pressed.

public bool isPressed(Range)(Range pressedButtons);


Checks whether a range of buttons are pressed or not.

Parameters:

pressedButtonsThe buttons to check if pressed or not.

Returns:

  true if all buttons are pressed.

public @property T[] pressed();


Gets all buttons currently pressed.


public @property T lastPressed();


Gets the last button pressed.


public @property T currentPressed();


Gets the current button pressed.


Generated by venom - Poison Engine's Documentation Generator