#include <pgslider.h>
Inheritance diagram for PG_Slider:

Public Member Functions | |
| PG_Slider (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, ScrollDirection direction=VERTICAL, int id=-1, const std::string &style="Slider") | |
| Contructor of the PG_Slider class. | |
| ~PG_Slider () | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a specific themestyle. | |
| void | RecalcPositions () |
Public Attributes | |
| SignalSlide< long > | sigSlide |
| SignalSlideEnd< long > | sigSlideEnd |
Protected Member Functions | |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
Classes | |
| class | SignalSlide |
| Signal type declaration. More... | |
| class | SignalSlideEnd |
horizontal slider screenshot
vertical slider screenshot
Usually used to get user input for a value where the range is known and fixed. The position of the slider is tied to an interger value which changes as the user moves the slider.
Definition at line 52 of file pgslider.h.
|
||||||||||||||||||||||||
|
Contructor of the PG_Slider class.
Definition at line 33 of file pgslider.cpp. References LoadThemeStyle(), PG_ScrollBar::scroll_min, PG_ScrollBar::scrollbutton, PG_ScrollBar::SetPosition(), PG_ScrollBar::sigScrollPos, PG_ScrollBar::sigScrollTrack, sigSlide, and sigSlideEnd. |
|
|
Definition at line 48 of file pgslider.cpp. |
|
|
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_ScrollBar. Definition at line 149 of file pgslider.cpp. References PG_ScrollBar::my_linesize, PG_ScrollBar::scroll_current, PG_ScrollBar::scroll_min, PG_ScrollBar::SetPosition(), and sigSlideEnd. |
|
|
Load a specific themestyle.
Reimplemented from PG_ScrollBar. Definition at line 50 of file pgslider.cpp. References PG_ScrollBar::dragbutton, PG_Theme::GetProperty(), PG_Application::GetTheme(), PG_ThemeWidget::LoadThemeStyle(), RecalcPositions(), PG_ScrollBar::sb_direction, and PG_ScrollBar::VERTICAL. Referenced by PG_Slider(). |
|
|
Reimplemented from PG_ScrollBar. Definition at line 72 of file pgslider.cpp. References PG_ScrollBar::dragbutton, PG_Widget::MoveWidget(), PG_Widget::my_bordersize, PG_Rect::null, PG_ScrollBar::position, PG_ScrollBar::sb_direction, PG_ScrollBar::scroll_current, PG_ScrollBar::scroll_max, PG_ScrollBar::scroll_min, PG_ScrollBar::scrollbutton, and PG_ScrollBar::VERTICAL. Referenced by LoadThemeStyle(). |
|
|
Definition at line 84 of file pgslider.h. Referenced by InternalAmmoTransferWidget::InternalAmmoTransferWidget(), MapInfoPanel::MapInfoPanel(), PG_ColorSelector::PG_ColorSelector(), PG_Slider(), ResourcePlacementDialog::ResourcePlacementDialog(), and TransferWidget::TransferWidget(). |
|
|
Definition at line 86 of file pgslider.h. Referenced by eventMouseButtonUp(), InternalAmmoTransferWidget::InternalAmmoTransferWidget(), PG_Slider(), and TransferWidget::TransferWidget(). |
1.4.2