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

KDEUI

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

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

Detailed Description

Describes windows, like in QWorkspace.

Todo:
SP_TitleBar* pixmaps
See also
WT_Window

Definition at line 1438 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 1443 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 1467 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