#include <pgscrollbar.h>
Inheritance diagram for PG_ScrollBar::ScrollButton:

Public Member Functions | |
| ScrollButton (PG_ScrollBar *parent, const PG_Rect &r=PG_Rect::null) | |
| virtual | ~ScrollButton () |
| void | SetTickMode (bool on) |
Protected Member Functions | |
| bool | eventMouseButtonDown (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| bool | eventMouseMotion (const SDL_MouseMotionEvent *motion) |
| Overridable Eventhandler for a SDL_MouseMotionEvent message. | |
| PG_ScrollBar * | GetParent () |
| Get the parentwidget of a widget. | |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| int | GetPosFromPoint (PG_Point p) |
|
||||||||||||
|
Definition at line 266 of file pgscrollbar.cpp. References PG_ScrollBar::IDSCROLLBAR_DRAG, and PG_Widget::SetID(). |
|
|
Definition at line 271 of file pgscrollbar.cpp. |
|
|
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_Button. Definition at line 333 of file pgscrollbar.cpp. References PG_Button::eventMouseButtonDown(), PG_Application::GetEventSupplier(), and PG_Widget::ScreenToClient(). |
|
|
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_Button. Definition at line 406 of file pgscrollbar.cpp. References PG_Button::eventMouseButtonUp(), and GetParent(). |
|
|
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 274 of file pgscrollbar.cpp. References GetParent(), GetPosFromPoint(), PG_Button::GetPressed(), PG_Widget::MoveWidget(), PG_Rect::my_height, PG_Rect::my_width, PG_ScrollBar::position, PG_ScrollBar::VERTICAL, PG_Point::x, and PG_Point::y. |
|
|
Get the parentwidget of a widget.
Reimplemented from PG_Widget. Definition at line 345 of file pgscrollbar.cpp. References PG_Widget::GetParent(). Referenced by eventMouseButtonUp(), eventMouseMotion(), and GetPosFromPoint(). |
|
|
Definition at line 450 of file pgscrollbar.cpp. References GetParent(), intround(), PG_ScrollBar::position, PG_ScrollBar::VERTICAL, PG_Point::x, and PG_Point::y. Referenced by eventMouseMotion(). |
|
|
Definition at line 421 of file pgscrollbar.cpp. |
1.4.2