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

KDEUI

KStyle::Window

KStyle::Window Struct Reference
[KStyle widget representation]

#include <kstyle.h>

List of all members.


Detailed Description

Describes windows, like in QWorkspace.

Todo:
SP_TitleBar* pixmaps
See also:
WT_Window

Definition at line 1373 of file kstyle.h.


Public Types

enum  LayoutProps {
  TitleTextColor, TitleHeight, NoTitleFrame, TitleMargin,
  ButtonWidth = TitleMargin + MarginInc, ButtonSpace, ButtonToTextSpace
}
enum  Primitive {
  TitlePanel, ButtonMenu, ButtonMin, ButtonMax,
  ButtonRestore, ButtonClose, ButtonShade, ButtonUnshade,
  ButtonHelp
}

Member Enumeration Documentation

enum KStyle::Window::LayoutProps

See also:
setWidgetLayoutProp()

Enumerator:
TitleTextColor  (ColorMode(QPalette::HighlightedText)) color mode of the titlebar text
TitleHeight  (20) height of the titlebar [sets QStyle::PM_TitleBarHeight]
NoTitleFrame  (0) if set to non-zero, the frame primitive is not expected to paint around the titlebar area [sets QStyle::SH_TitleBar_NoBorder]
TitleMargin  (2) margin around titlebar contents (buttons, text label), used to position them and determine the height of titlebar buttons, doesn't influence size
ButtonWidth  (16) width of a titlebar button
ButtonSpace  (2) space between titlebar buttons
ButtonToTextSpace  (3) space between buttons and the title text

Definition at line 1378 of file kstyle.h.

enum KStyle::Window::Primitive

Relevant Generic elements:

  • Generic::Text paints the titlebar text label
  • Generic::Frame indicating an associated sub-menu.

[titlebar elements implement CC_TitleBar]

See also:
drawKStylePrimitive()
Enumerator:
TitlePanel  whole titlebar panel/background, by KStyle default it's filled with plain highlight color
ButtonMenu  system menu button, passes TitleButtonOption
ButtonMin  minimize button, passes TitleButtonOption
ButtonMax  maximize button, passes TitleButtonOption
ButtonRestore  restore button, passes TitleButtonOption

Todo:
split min/max restore?
ButtonClose  close button, passes TitleButtonOption
ButtonShade  shade button, passes TitleButtonOption
ButtonUnshade  button to remove the shade state, passes TitleButtonOption
ButtonHelp  context help button, passes TitleButtonOption

Definition at line 1402 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