Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIbase.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Message send to IGUIObject::HandleMessage() in order | * Message send to IGUIObject::HandleMessage() in order | ||||
* to give life to Objects manually with | * to give life to Objects manually with | ||||
* a derived HandleMessage(). | * a derived HandleMessage(). | ||||
*/ | */ | ||||
struct SGUIMessage | struct SGUIMessage | ||||
{ | { | ||||
// This should be passed as a const reference or pointer. | |||||
NONCOPYABLE(SGUIMessage); | |||||
SGUIMessage(EGUIMessageType _type) : type(_type), skipped(false) {} | SGUIMessage(EGUIMessageType _type) : type(_type), skipped(false) {} | ||||
SGUIMessage(EGUIMessageType _type, const CStr& _value) : type(_type), value(_value), skipped(false) {} | SGUIMessage(EGUIMessageType _type, const CStr& _value) : type(_type), value(_value), skipped(false) {} | ||||
/** | /** | ||||
* This method can be used to allow other event handlers to process this GUI event, | * This method can be used to allow other event handlers to process this GUI event, | ||||
* by default an event is not skipped (only the first handler will process it). | * by default an event is not skipped (only the first handler will process it). | ||||
* | * | ||||
* @param skip true to allow further event handling, false to prevent it | * @param skip true to allow further event handling, false to prevent it | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
* Client Area is a rectangle relative to a parent rectangle | * Client Area is a rectangle relative to a parent rectangle | ||||
* | * | ||||
* You can input the whole value of the Client Area by | * You can input the whole value of the Client Area by | ||||
* string. Like used in the GUI. | * string. Like used in the GUI. | ||||
*/ | */ | ||||
class CClientArea | class CClientArea | ||||
{ | { | ||||
public: | public: | ||||
// COPYABLE, since there are only primitives involved, making move and copy identical, | |||||
// and since some temporaries cannot be avoided. | |||||
CClientArea(); | CClientArea(); | ||||
CClientArea(const CStr& Value); | CClientArea(const CStr& Value); | ||||
CClientArea(const CRect& pixel, const CRect& percent); | CClientArea(const CRect& pixel, const CRect& percent); | ||||
/// Pixel modifiers | /// Pixel modifiers | ||||
CRect pixel; | CRect pixel; | ||||
/// Percent modifiers | /// Percent modifiers | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator