#include <pgcolorselector.h>
Inheritance diagram for PG_ColorSelector::PG_ColorBox:

Public Member Functions | |
| PG_ColorBox (PG_ColorSelector *parent, const PG_Rect &r) | |
| PG_ColorSelector * | GetParent () |
| Get the parentwidget of a widget. | |
| PG_Color | GetBaseColor () |
Protected Member Functions | |
| void | eventBlit (SDL_Surface *srf, const PG_Rect &src, const PG_Rect &dst) |
| overridable eventhandler to blit the widget contents to the screen | |
| bool | eventMouseMotion (const SDL_MouseMotionEvent *motion) |
| Overridable Eventhandler for a SDL_MouseMotionEvent message. | |
| bool | eventMouseButtonDown (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
|
||||||||||||
|
Definition at line 3 of file pgcolorselector.cpp. References PG_ThemeWidget::SetBackground(), PG_ThemeWidget::SetSimpleBackground(), PG_Point::x, and PG_Point::y. |
|
||||||||||||||||
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_ThemeWidget. Definition at line 65 of file pgcolorselector.cpp. References PG_Widget::DrawHLine(), PG_Widget::DrawVLine(), PG_ThemeWidget::eventBlit(), PG_Point::x, and PG_Point::y. |
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 42 of file pgcolorselector.cpp. References GetBaseColor(), GetParent(), PG_Widget::ScreenToClient(), PG_MessageObject::SetCapture(), and PG_Widget::Update(). |
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 55 of file pgcolorselector.cpp. References PG_MessageObject::ReleaseCapture(). |
|
|
Overridable Eventhandler for a SDL_MouseMotionEvent message. This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 14 of file pgcolorselector.cpp. References GetBaseColor(), GetParent(), PG_Rect::my_height, PG_Rect::my_width, PG_Widget::ScreenToClient(), PG_Widget::Update(), PG_Point::x, and PG_Point::y. |
|
|
Definition at line 73 of file pgcolorselector.cpp. References PG_Gradient::colors, PG_ThemeWidget::GetGradient(), PG_Rect::my_height, PG_Rect::my_width, PG_Point::x, and PG_Point::y. Referenced by eventMouseButtonDown(), eventMouseMotion(), PG_ColorSelector::handle_colorslide(), and PG_ColorSelector::PG_ColorSelector(). |
|
|
Get the parentwidget of a widget.
Reimplemented from PG_Widget. Definition at line 15 of file pgcolorselector.h. References PG_Widget::GetParent(). Referenced by eventMouseButtonDown(), and eventMouseMotion(). |
1.4.2