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

KDEUI

KStyle::Window

KStyle::Window Struct Reference
[KStyle widget representation]

Describes windows, like in QWorkspace. More...

#include <kstyle.h>

List of all members.

Public Types

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

Detailed Description

Describes windows, like in QWorkspace.

Todo:
SP_TitleBar* pixmaps
See also:
WT_Window

Definition at line 1437 of file kstyle.h.


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 1442 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 1466 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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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