zenilib
0.5.3.0
|
#include <Popup_State.h>
Inherits Zeni::Check_Box.
Public Member Functions | |
Sound_Check_Box (const Point2f &upper_left, const Point2f &lower_right) | |
void | on_accept () |
Called when the cursor is released inside the button. More... | |
void | render_impl () const |
Public Member Functions inherited from Zeni::Check_Box | |
Check_Box (const Point2f &upper_left_, const Point2f &lower_right_, const bool &checked_=false, const bool &toggleable_=true) | |
const bool & | is_checked () const |
const bool & | is_toggling () const |
virtual void | on_click () |
Called when the cursor downclicks the button. More... | |
virtual void | on_reject () |
Called when the cursor is released outside the button. More... | |
virtual void | on_stray () |
Called when the cursor is dragged off the button after being clicked. More... | |
virtual void | on_unstray () |
Called when the cursor is dragged back onto the button without releasing the clicker. More... | |
void | set_checked (const bool &checked_) |
Public Member Functions inherited from Zeni::Widget_Button | |
Widget_Button (const Point2f &upper_left_, const Point2f &lower_right_) | |
const State & | get_State () const |
Get the State of the button. More... | |
virtual void | on_hover () |
Called when the cursor passes over the button. More... | |
virtual void | on_mouse_button (const Point2i &pos, const bool &down, const int &button) |
virtual void | on_mouse_motion (const Point2i &pos) |
virtual void | on_unhover () |
Called when the cursor leaves the button without clicking. More... | |
Public Member Functions inherited from Zeni::Widget | |
Widget () | |
virtual | ~Widget () |
void | fax_Renderer (const Widget_Render_Function *const &renderer) |
Set the current Widget_Render_Function, giving the Widget a copy. More... | |
const float & | get_layer () const |
const Widget_Render_Function * | get_Renderer () const |
Get the current Widget_Render_Function. More... | |
void | give_Renderer (Widget_Render_Function *const &renderer) |
Set the current Widget_Render_Function, giving the Widget ownership. More... | |
const bool & | is_busy () const |
const bool & | is_editable () const |
void | lend_Renderer (const Widget_Render_Function *const &renderer) |
Set the current Widget_Render_Function, giving the Widget no ownership. More... | |
void | on_event (const SDL_KeyboardEvent &event) |
void | on_event (const SDL_MouseButtonEvent &event) |
void | on_event (const SDL_MouseButtonEvent &event, const Projector2D &projector) |
void | on_event (const SDL_MouseMotionEvent &event) |
void | on_event (const SDL_MouseMotionEvent &event, const Projector2D &projector) |
virtual void | on_key (const SDL_Keysym &, const bool &) |
virtual void | perform_logic () |
void | render () const |
void | set_busy (const bool &busy_) |
virtual void | set_editable (const bool &editable_) |
void | set_layer (const float &layer_=0.0f) |
Public Member Functions inherited from Zeni::Widget_Rectangle | |
Widget_Rectangle (const Point2f &upper_left_, const Point2f &lower_right_) | |
virtual | ~Widget_Rectangle () |
Point2f | get_center () const |
float | get_height () const |
Point2f | get_lower_left () const |
const Point2f & | get_lower_right () const |
const Point2f & | get_upper_left () const |
Point2f | get_upper_right () const |
float | get_width () const |
bool | is_inside (const Point2i &pos) const |
virtual void | set_lower_right (const Point2f &lower_right_) |
virtual void | set_upper_left (const Point2f &upper_left_) |
Additional Inherited Members | |
Public Types inherited from Zeni::Widget_Button | |
enum | State { NORMAL, CLICKED, HOVERED, STRAYED, UNACTIONABLE } |
Definition at line 173 of file Popup_State.h.
|
inline |
Definition at line 178 of file Popup_State.h.
References Zeni::get_Sound().
|
inlinevirtual |
Called when the cursor is released inside the button.
Reimplemented from Zeni::Check_Box.
Definition at line 188 of file Popup_State.h.
References Zeni::get_Sound(), Zeni::Check_Box::on_accept(), and Zeni::Sound::set_listener_muted().
|
inlinevirtual |
Reimplemented from Zeni::Widget.
Definition at line 193 of file Popup_State.h.
References Zeni::Color::a, Zeni::get_Colors(), Zeni::get_Fonts(), Zeni::Sound::get_Renderer(), Zeni::get_Sound(), Zeni::Font::get_text_height(), Zeni::Font::get_text_width(), Zeni::get_Video(), Zeni::Video::render(), Zeni::Widget::render_impl(), Zeni::Font::render_text(), Zeni::Point2f::x, and Zeni::Point2f::y.