|
static void | loadGtkScrollbarButtons (xdoc::Document &xml, const String &orientation, CThemeImageCollection &buttonImages) |
| Loads GTK theme scrollbar button images from 'style' node. More...
|
|
static void | loadGtkScrollbarTroughs (xdoc::Document &xml) |
| Loads GTK theme scrollbar troughs. More...
|
|
static void | loadGtkScrollbarSliders (xdoc::Document &xml) |
| Loads GTK theme scrollbar sliders. More...
|
|
static void | loadGtkScrollbars (xdoc::Document &xml) |
| Loads GTK theme scrollbar button images from GTK theme. More...
|
|
static bool | sizeScrollBar (int &w, int &h) |
| Computes and returns the minimum size of the scroll bar. More...
|
|
static bool | drawScrollBar (int x, int y, int w, int h, float minimum, float maximum, float value, float size, int activeZone, bool active) |
| Draws a scroll bar image. More...
|
|
◆ drawScrollBar()
static bool sptk::CThemeScrollBar::drawScrollBar |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float |
minimum, |
|
|
float |
maximum, |
|
|
float |
value, |
|
|
float |
size, |
|
|
int |
activeZone, |
|
|
bool |
active |
|
) |
| |
|
static |
Draws a scroll bar image.
The type of the scroll bar is defined by max of (w,h).
- Returns
- false, if theme has no pixmaps for the scroll bar, or true otherwise
- Parameters
-
x | int, x-coordinate of the scroll bar |
y | int, y-coordinate of the scroll bar |
w | int, width of the scroll bar |
h | int, width of the scroll bar |
minimum | float, minimum value of the scroll bar |
maximum | float, maximum value of the scroll bar |
value | float, value of the scroll bar |
size | float, size of the scroll bar |
activeZone | int, 0 - no active zone, 1 - button 1, 2 - button 2, 3 - slider, +8 - pushed |
active | bool, true if scrollbar is active (enabled) |
◆ loadGtkScrollbarButtons()
Loads GTK theme scrollbar button images from 'style' node.
- Parameters
-
xml | XMLDoc&, GTK theme converted to XML |
orientation | std::string, scrollbar button orientation ("UP","DOWN","LEFT","RIGHT") |
buttonImages | CThemeImageCollection&, output button images |
◆ loadGtkScrollbars()
static void sptk::CThemeScrollBar::loadGtkScrollbars |
( |
xdoc::Document & |
xml | ) |
|
|
static |
Loads GTK theme scrollbar button images from GTK theme.
- Parameters
-
xml | XMLDoc&, GTK theme converted to XML |
◆ loadGtkScrollbarSliders()
static void sptk::CThemeScrollBar::loadGtkScrollbarSliders |
( |
xdoc::Document & |
xml | ) |
|
|
static |
Loads GTK theme scrollbar sliders.
- Parameters
-
xml | XMLDoc&, GTK theme converted to XML |
◆ loadGtkScrollbarTroughs()
static void sptk::CThemeScrollBar::loadGtkScrollbarTroughs |
( |
xdoc::Document & |
xml | ) |
|
|
static |
Loads GTK theme scrollbar troughs.
- Parameters
-
xml | XMLDoc&, GTK theme converted to XML |
◆ sizeScrollBar()
static bool sptk::CThemeScrollBar::sizeScrollBar |
( |
int & |
w, |
|
|
int & |
h |
|
) |
| |
|
static |
Computes and returns the minimum size of the scroll bar.
- Parameters
-
w | int&, scroll bar width, may be altered by scroll bar to meet the scroll bar size requirements |
h | int&, scroll bar height, may be altered by scroll bar to meet the scroll bar size requirements |
- Returns
- false, if theme has no pixmaps for the scroll bar, or true otherwise
◆ m_scrollBar
Images for painting a scroll bar (horizontal and vertical)
Images should have the compatible size. If you put the slider image on top its frame - they should show a picture of 100% progress
◆ m_scrollBarSliderWidth
int sptk::CThemeScrollBar::m_scrollBarSliderWidth |
|
static |
◆ m_scrollBarStepperSize
int sptk::CThemeScrollBar::m_scrollBarStepperSize |
|
static |
◆ m_scrollBarTroughBorder
int sptk::CThemeScrollBar::m_scrollBarTroughBorder |
|
static |
The documentation for this class was generated from the following file: