sptk2 logo
SPTK Home Page
Public Types | Public Member Functions | Public Attributes | List of all members
sptk::CScrollBarImages Class Reference

The complete set of four images to draw a scroll bar. More...

#include <CThemeScrollBar.h>

Public Types

enum  type { TROUGH , SLIDER }
 Type of the scroll bar image. More...
 

Public Member Functions

 CScrollBarImages () noexcept
 Default constructor.
 
void load (CThemeScrollBarType atype, bool desaturateInactiveButtons, bool externalFile=false)
 Loads the images from SPTK theme files. More...
 
void clear ()
 Clears the scrollbar images for the default theme.
 

Public Attributes

CThemeScrollBarType m_orientation
 
CThemeImageCollection m_parts [3]
 
CThemeImageCollection m_steppers [2]
 

Detailed Description

The complete set of four images to draw a scroll bar.

Member Enumeration Documentation

◆ type

Type of the scroll bar image.

Enumerator
TROUGH 

Image of the scroll bar without slider and buttons

SLIDER 

Image of the scroll bar slider

Member Function Documentation

◆ load()

void sptk::CScrollBarImages::load ( CThemeScrollBarType  atype,
bool  desaturateInactiveButtons,
bool  externalFile = false 
)

Loads the images from SPTK theme files.

Parameters
atypeCThemeScrollBarType, scroll bar type
desaturateInactiveButtonsbool, if true then inactive buttons are desaturated
externalFilebool, if true then the file belongs to GTK theme and not to SPTK theme tar

Member Data Documentation

◆ m_orientation

CThemeScrollBarType sptk::CScrollBarImages::m_orientation

Scrollbar orientation

◆ m_parts

CThemeImageCollection sptk::CScrollBarImages::m_parts[3]

Scrollbar parts

◆ m_steppers

CThemeImageCollection sptk::CScrollBarImages::m_steppers[2]

Stepper buttons, 0/1 - (left or upper)normal/pressed, 2/3 - (right or buttom)normal/pressed


The documentation for this class was generated from the following file:

Fri Oct 14 2022 09:58:39: SPTK 5.4.1