00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _CEGUIPushButtonProperties_h_
00025 #define _CEGUIPushButtonProperties_h_
00026
00027 #include "CEGUIProperty.h"
00028
00029
00030
00031 namespace CEGUI
00032 {
00033
00034
00040 namespace PushButtonProperties
00041 {
00042
00052 class NormalImage : public Property
00053 {
00054 public:
00055 NormalImage() : Property(
00056 "NormalImage",
00057 "Property to get/set the normal image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".",
00058 "")
00059 {}
00060
00061 String get(const PropertyReceiver* receiver) const;
00062 void set(PropertyReceiver* receiver, const String& value);
00063 };
00064
00074 class PushedImage : public Property
00075 {
00076 public:
00077 PushedImage() : Property(
00078 "PushedImage",
00079 "Property to get/set the pushed image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".",
00080 "")
00081 {}
00082
00083 String get(const PropertyReceiver* receiver) const;
00084 void set(PropertyReceiver* receiver, const String& value);
00085 };
00086
00096 class HoverImage : public Property
00097 {
00098 public:
00099 HoverImage() : Property(
00100 "HoverImage",
00101 "Property to get/set the hover image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".",
00102 "")
00103 {}
00104
00105 String get(const PropertyReceiver* receiver) const;
00106 void set(PropertyReceiver* receiver, const String& value);
00107 };
00108
00118 class DisabledImage : public Property
00119 {
00120 public:
00121 DisabledImage() : Property(
00122 "DisabledImage",
00123 "Property to get/set the disabled image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".",
00124 "")
00125 {}
00126
00127 String get(const PropertyReceiver* receiver) const;
00128 void set(PropertyReceiver* receiver, const String& value);
00129 };
00130
00140 class UseStandardImagery : public Property
00141 {
00142 public:
00143 UseStandardImagery() : Property(
00144 "UseStandardImagery",
00145 "Property to get/set whether to use the standard imagery for the PushButton widget. Value should be \"True\" or \"False\".",
00146 "True")
00147 {}
00148
00149 String get(const PropertyReceiver* receiver) const;
00150 void set(PropertyReceiver* receiver, const String& value);
00151 };
00152
00165 class TextXOffset : public Property
00166 {
00167 public:
00168 TextXOffset() : Property(
00169 "TextXOffset",
00170 "Property to get/set a relative x offset for the button's text",
00171 "0.000000")
00172 {}
00173
00174 String get(const PropertyReceiver* receiver) const;
00175 void set(PropertyReceiver* receiver, const String& value);
00176 };
00177
00178 }
00179
00180 }
00181 #endif