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

KDEUI

KStyle::ScrollBar

KStyle::ScrollBar Struct Reference
[KStyle widget representation]

#include <kstyle.h>

List of all members.


Detailed Description

Describes widgets like QScrollBar.

See also:
WT_ScrollBar

Definition at line 817 of file 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
}

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 825 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 
See also:
DoubleButtonVert

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

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


The documentation for this struct was generated from the following file:
  • kstyle.h

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal