• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • KStyle
  • ScrollBar
Public Types | List of all members
KStyle::ScrollBar Struct Reference
KStyle widget representation

#include <kstyle.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 882 of file kstyle.h.

Member Enumeration Documentation

enum KStyle::ScrollBar::LayoutProp
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 890 of file kstyle.h.

enum KStyle::ScrollBar::Primitive

Relevant Generic elements:

  • The Generic arrows

[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.

DoubleButtonHor 
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 914 of file kstyle.h.


The documentation for this struct was generated from the following file:
  • kstyle.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal