KDELibs4Support

#include <k4style.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
}
 

Detailed Description

Describes windows, like in QWorkspace.

Todo:
SP_TitleBar* pixmaps
See also
WT_Window

Definition at line 1346 of file k4style.h.

Member Enumeration Documentation

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 1350 of file k4style.h.

Relevant Generic elements:

[titlebar elements implement CC_TitleBar]

See also
drawKStylePrimitive()
Enumerator
TitlePanel 

whole titlebar panel/background, by K4Style 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 1373 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-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:59:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.