Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/IGUIButtonBehavior.h
Show All 10 Lines | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
* GNU General Public License for more details. | * GNU General Public License for more details. | ||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
/* | /* | ||||
GUI Object Base - Button Behavior | |||||
--Overview-- | |||||
Interface class that enhance the IGUIObject with | Interface class that enhance the IGUIObject with | ||||
buttony behavior (click and release to click a button), | buttony behavior (click and release to click a button), | ||||
and the GUI message GUIM_PRESSED. | and the GUI message GUIM_PRESSED. | ||||
When creating a class with extended settings and | When creating a class with extended settings and | ||||
buttony behavior, just do a multiple inheritance. | buttony behavior, just do a multiple inheritance. | ||||
--More info-- | |||||
Check GUI.h | |||||
*/ | */ | ||||
#ifndef INCLUDED_IGUIBUTTONBEHAVIOR | #ifndef INCLUDED_IGUIBUTTONBEHAVIOR | ||||
#define INCLUDED_IGUIBUTTONBEHAVIOR | #define INCLUDED_IGUIBUTTONBEHAVIOR | ||||
#include "gui/GUI.h" | |||||
#include "gui/IGUIObject.h" | #include "gui/IGUIObject.h" | ||||
class CGUISpriteInstance; | class CGUISpriteInstance; | ||||
/** | /** | ||||
* Appends button behaviours to the IGUIObject. | * Appends button behaviours to the IGUIObject. | ||||
* Can be used with multiple inheritance alongside | * Can be used with multiple inheritance alongside | ||||
* IGUISettingsObject and such. | * IGUISettingsObject and such. | ||||
* | |||||
* @see IGUIObject | |||||
*/ | */ | ||||
class IGUIButtonBehavior : virtual public IGUIObject | class IGUIButtonBehavior : virtual public IGUIObject | ||||
{ | { | ||||
public: | public: | ||||
IGUIButtonBehavior(CGUI& pGUI); | IGUIButtonBehavior(CGUI& pGUI); | ||||
virtual ~IGUIButtonBehavior(); | virtual ~IGUIButtonBehavior(); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator