|
MochiEngine
|
Besides the space occupied by the button to be used as a parent, it gives its current state, indicating if it is focused (selected or focused by mouse), pressed or released. This way a button can trigger game logic when being pressed or release without changing the implementation. More...
#include <GUICommon.hpp>
Public Attributes | |
| Rectf | FinalRect |
| bool | Focus |
| bool | Pressed |
| bool | Released |
Besides the space occupied by the button to be used as a parent, it gives its current state, indicating if it is focused (selected or focused by mouse), pressed or released. This way a button can trigger game logic when being pressed or release without changing the implementation.