KDELibs4Support

K4Style::ScrollBar Struct Reference

#include <k4style.h>

Public Types

enum  LayoutProp {
  DoubleTopButton, DoubleBotButton, SingleButtonHeight, DoubleButtonHeight,
  BarWidth, MinimumSliderHeight, ArrowColor, ActiveArrowColor
}
 
enum  Primitive {
  SingleButtonVert, SingleButtonHor, DoubleButtonVert, DoubleButtonHor,
  GrooveAreaVertBottom, GrooveAreaHorRight, GrooveAreaVertTop, GrooveAreaHorLeft,
  SliderVert, SliderHor
}
 

Detailed Description

Describes widgets like QScrollBar.

See also
WT_ScrollBar

Definition at line 832 of file k4style.h.

Member Enumeration Documentation

Note
Dimensions of LayoutProperties are generally specified with respect to the vertical scrollbar. Of course, for horizontal ones they're flipped.
See also
setWidgetLayoutProp()
Enumerator
DoubleTopButton 

(0) set to non-zero to have two buttons on top

DoubleBotButton 

(1) set to non-zero to have two buttons on bottom

SingleButtonHeight 

(16) height of a single button

DoubleButtonHeight 

(32) height of a double button

BarWidth 

(16) width of a scrollbar [sets QStyle::PM_ScrollBarExtent]

MinimumSliderHeight 

(0 ?) the minimum slider height

Note
If the scrollbar is too small to accommodate this, this will not be enforced.
ArrowColor 

(ColorMode(ColorMode::BWAutoContrastMode, QPalette::Button)) color mode of a button arrow

See also
ColorMode
ActiveArrowColor 

(ColorMode(ColorMode::BWAutoContrastMode, QPalette::ButtonText)) color mode of a pressed button arrow (?)

Definition at line 839 of file k4style.h.

Relevant Generic elements:

[Groove Areas implement QStyle::CE_ScrollBarAddPage and QStyle::CE_ScrollBarSubPage] [Sliders implement QStyle::CE_ScrollBarSlider]

See also
drawKStylePrimitive()
Enumerator
SingleButtonVert 

used to draw a 1-button bevel, vertical

SingleButtonHor 

used to draw a 1-button bevel, horizontal

DoubleButtonVert 

Used to draw a 2-button bevel, vertical.

A DoubleButtonOption is passed to say which button is pressed.

GrooveAreaVertBottom 

scrollbar groove area, vertical. An interesting flag is State_Sunken for pressed state

See also
DoubleButtonVert
GrooveAreaHorRight 

scrollbar groove area, horizontal. Flags: State_Sunken for pressed state

GrooveAreaVertTop 

scrollbar groove area, vertical. An interesting flag is State_Sunken for pressed state

GrooveAreaHorLeft 

scrollbar groove area, horizontal. Flags: State_Sunken for pressed state

SliderVert 

scrollbar slider, vertical. Flags: State_On&&State_Sunken for pressed state

SliderHor 

scrollbar slider, horizontal. Flags: State_On&&State_Sunken for pressed state

Definition at line 862 of file k4style.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 5 2020 22:56:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.