#include <gui_button.hxx>
Inheritance diagram for GUIButton:
Public Member Functions | |
GUIButton (GUIManager *parent) | |
GUIButton (const std::string &title, int x_pos_, int y_pos_, int width_, int height_) | |
void | draw_border_hover (GraphicContext *) |
void | draw_border_pressed (GraphicContext *) |
void | draw_border_normal (GraphicContext *) |
void | on_mouse_enter () |
void | on_mouse_leave () |
void | on_primary_button_press (int x, int y) |
void | on_primary_button_release (int x, int y) |
void | draw (GraphicContext *) |
virtual void | draw_content (GraphicContext *) |
virtual void | on_click () |
Protected Attributes | |
std::string | title |
bool | mouse_over |
bool | pressed |
|
Definition at line 22 of file gui_button.cxx. |
|
Definition at line 33 of file gui_buttons.cxx. References mouse_over, and pressed. |
|
Implements GUIComponent. Definition at line 71 of file gui_buttons.cxx. References draw_border_hover(), draw_border_normal(), draw_border_pressed(), draw_content(), GraphicContext::draw_fill_rect(), mouse_over, and pressed. |
|
Definition at line 109 of file gui_buttons.cxx. References GraphicContext::draw_rect(). Referenced by draw(). |
|
Definition at line 123 of file gui_buttons.cxx. References GraphicContext::draw_rect(). Referenced by draw(). |
|
Definition at line 116 of file gui_buttons.cxx. References GraphicContext::draw_rect(). Referenced by draw(). |
|
Reimplemented in GUIRunButton, GUISlowMoButton, and GUIGenericButton. Definition at line 103 of file gui_buttons.cxx. References GraphicContext::draw_string_centered(). Referenced by draw(), GUIGenericButton::draw_content(), GUISlowMoButton::draw_content(), and GUIRunButton::draw_content(). |
|
Reimplemented in GUIRunButton, GUISlowMoButton, GUIZoomInButton, GUIZoomOutButton, GUIQuitButton, GUILoadButton, and GUIGenericButton. Definition at line 135 of file gui_buttons.cxx. Referenced by on_primary_button_release(). |
|
Reimplemented from GUIComponent. Definition at line 43 of file gui_buttons.cxx. References mouse_over. |
|
Reimplemented from GUIComponent. Definition at line 49 of file gui_buttons.cxx. References mouse_over. |
|
Reimplemented from GUIComponent. Definition at line 55 of file gui_buttons.cxx. References GUIManager::grab_mouse(), WorldGUIManager::instance(), and pressed. |
|
Reimplemented from GUIComponent. Definition at line 62 of file gui_buttons.cxx. References WorldGUIManager::instance(), GUIComponent::is_at(), on_click(), pressed, and GUIManager::ungrab_mouse(). |
|
Definition at line 32 of file gui_buttons.hxx. Referenced by draw(), GUIRunButton::draw_content(), GUIButton(), on_mouse_enter(), and on_mouse_leave(). |
|
Definition at line 33 of file gui_buttons.hxx. Referenced by draw(), GUIRunButton::draw_content(), GUIButton(), on_primary_button_press(), and on_primary_button_release(). |
|
Definition at line 30 of file gui_buttons.hxx. |