Inheritance diagram for CEGUI::PushButton:


Public Member Functions | |
| PushButton (const String &type, const String &name) | |
| Constructor for base PushButton class. | |
| virtual | ~PushButton (void) |
| Destructor for PushButton class. | |
| bool | isStandardImageryEnabled (void) const |
| return whether or not rendering of the standard imagery is enabled. | |
| bool | isCustomImageryAutoSized (void) const |
| Return whether of not custom button image areas are auto-scaled to the size of the button. | |
| const RenderableImage * | getNormalImage (void) const |
| returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the normal state, or 0 if no image is currently set for this state. | |
| const RenderableImage * | getHoverImage (void) const |
| returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the highlighted state, or 0 if no image is currently set for this state. | |
| const RenderableImage * | getPushedImage (void) const |
| returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the pushed state, or 0 if no image is currently set for this state. | |
| const RenderableImage * | getDisabledImage (void) const |
| returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the disabled state, or 0 if no image is currently set for this state. | |
| float | getTextXOffset (void) const |
| get the offset that is used to shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered | |
| void | setStandardImageryEnabled (bool setting) |
| set whether or not to render the standard imagery for the button | |
| void | setCustomImageryAutoSized (bool setting) |
| Set whether to auto re-size custom image areas when the button is sized. | |
| void | setNormalImage (const RenderableImage *image) |
| set the details of the image to render for the button in the normal state. | |
| void | setHoverImage (const RenderableImage *image) |
| set the details of the image to render for the button in the highlighted state. | |
| void | setPushedImage (const RenderableImage *image) |
| set the details of the image to render for the button in the pushed state. | |
| void | setDisabledImage (const RenderableImage *image) |
| set the details of the image to render for the button in the disabled state. | |
| void | setTextXOffset (float offset) |
| set the offset to use for a shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered | |
Static Public Attributes | |
| static const String | EventNamespace |
| Namespace for global events. | |
| static const String | EventClicked |
| The button was clicked. | |
Protected Member Functions | |
| virtual void | onClicked (WindowEventArgs &e) |
| handler invoked internally when the button is clicked. | |
| virtual void | onMouseButtonUp (MouseEventArgs &e) |
| Handler called when a mouse button has been released within this window's area. | |
| virtual void | onSized (WindowEventArgs &e) |
| Handler called when the window's size changes. | |
| void | addPushButtonEvents (void) |
| Add button specific events. | |
| virtual bool | testClassName_impl (const String &class_name) const |
| Return whether this window was inherited from the given class name at some point in the inheritance heirarchy. | |
Protected Attributes | |
| bool | d_autoscaleImages |
| when true custom images will be scaled to the same size as the button | |
| bool | d_useStandardImagery |
| true if button standard imagery should be drawn. | |
| bool | d_useNormalImage |
| true if an image should be drawn for the normal state. | |
| bool | d_useHoverImage |
| true if an image should be drawn for the highlighted state. | |
| bool | d_usePushedImage |
| true if an image should be drawn for the pushed state. | |
| bool | d_useDisabledImage |
| true if an image should be drawn for the disabled state. | |
| RenderableImage | d_normalImage |
| RenderableImage used when rendering an image in the normal state. | |
| RenderableImage | d_hoverImage |
| RenderableImage used when rendering an image in the highlighted state. | |
| RenderableImage | d_pushedImage |
| RenderableImage used when rendering an image in the pushed state. | |
| RenderableImage | d_disabledImage |
| RenderableImage used when rendering an image in the disabled state. | |
| float | d_textXOffset |
| offset applied to the x co-ordinate of the text label. | |
|
|
returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the disabled state, or 0 if no image is currently set for this state.
|
|
|
returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the highlighted state, or 0 if no image is currently set for this state.
|
|
|
returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the normal state, or 0 if no image is currently set for this state.
|
|
|
returns a pointer to a read-only RenderableImage object holding the details of the image set to render for the button in the pushed state, or 0 if no image is currently set for this state.
|
|
|
get the offset that is used to shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered
|
|
|
Return whether of not custom button image areas are auto-scaled to the size of the button.
|
|
|
return whether or not rendering of the standard imagery is enabled.
|
|
|
Handler called when a mouse button has been released within this window's area.
Reimplemented from CEGUI::ButtonBase. |
|
|
Handler called when the window's size changes.
Reimplemented from CEGUI::Window. |
|
|
Set whether to auto re-size custom image areas when the button is sized.
|
|
|
set the details of the image to render for the button in the disabled state.
|
|
|
set the details of the image to render for the button in the highlighted state.
|
|
|
set the details of the image to render for the button in the normal state.
|
|
|
set the details of the image to render for the button in the pushed state.
|
|
|
set whether or not to render the standard imagery for the button
|
|
|
set the offset to use for a shift of the text in the x-direction this is useful if the button-images are not symmetrical and the text shouldn't be completely centered
|
|
|
Return whether this window was inherited from the given class name at some point in the inheritance heirarchy.
Reimplemented from CEGUI::ButtonBase. Reimplemented in CEGUI::Thumb. |
1.4.5