KDELibs4Support

K4Style widget representation

Classes

struct  K4Style::CheckBox
 
struct  K4Style::ComboBox
 
struct  K4Style::DockWidget
 
struct  K4Style::Generic
 
struct  K4Style::GroupBox
 
struct  K4Style::Header
 
struct  K4Style::LineEdit
 
struct  K4Style::Menu
 
struct  K4Style::MenuBar
 
struct  K4Style::MenuBarItem
 
struct  K4Style::MenuItem
 
struct  K4Style::ProgressBar
 
struct  K4Style::PushButton
 
struct  K4Style::RadioButton
 
struct  K4Style::ScrollBar
 
struct  K4Style::Slider
 
struct  K4Style::SpinBox
 
struct  K4Style::Splitter
 
struct  K4Style::StatusBar
 
struct  K4Style::TabBar
 
struct  K4Style::TabWidget
 
struct  K4Style::ToolBar
 
struct  K4Style::ToolBoxTab
 
struct  K4Style::ToolButton
 
struct  K4Style::Tree
 
struct  K4Style::Window
 

Enumerations

enum  K4Style::MarginOffsets {
  K4Style::MainMargin, K4Style::Top, K4Style::Bot, K4Style::Left,
  K4Style::Right, K4Style::MarginInc
}
 
enum  K4Style::WidgetType {
  K4Style::WT_Generic, K4Style::WT_PushButton, K4Style::WT_Splitter, K4Style::WT_CheckBox,
  K4Style::WT_RadioButton, K4Style::WT_DockWidget, K4Style::WT_ProgressBar, K4Style::WT_MenuBar,
  K4Style::WT_MenuBarItem, K4Style::WT_Menu, K4Style::WT_MenuItem, K4Style::WT_ScrollBar,
  K4Style::WT_TabBar, K4Style::WT_TabWidget, K4Style::WT_Slider, K4Style::WT_Tree,
  K4Style::WT_SpinBox, K4Style::WT_ComboBox, K4Style::WT_Header, K4Style::WT_LineEdit,
  K4Style::WT_GroupBox, K4Style::WT_StatusBar, K4Style::WT_ToolBar, K4Style::WT_ToolButton,
  K4Style::WT_ToolBoxTab, K4Style::WT_Window, K4Style::WT_Limit = 0xFFFF
}
 

Detailed Description

Things related to the representation of widgets.

Enumeration Type Documentation

enum K4Style::MarginOffsets
protected

These constants describe how to access various fields of a margin property.

For example, to set an additional top margin of 2 pixels, use

setWidgetLayoutProp(WT_SomeWidget, SomeWidget::Margin + Top, 2);
Enumerator
MainMargin 

The main margin is applied equally on each side.

In the example above, 'SomeWidget::Margin+MainMargin' is the same as 'SomeWidget::Margin'.

Top 

Apply an additional top margin.

Bot 

Apply an additional bottom margin.

Left 

Apply an additional left margin.

Right 

Apply an additional right margin.

MarginInc 

Used to reserve space in an enum for the Top, Bot, Left, Right margins.

Definition at line 429 of file k4style.h.

enum K4Style::WidgetType
protected

This enum is used to represent K4Style's concept of a widget, and to associate drawing requests and metrics with it.

The generic value is used for primitives and metrics that are common between many widgets

Enumerator
WT_Generic 
See also
Generic
WT_PushButton 
See also
PushButton
WT_Splitter 
See also
Splitter
WT_CheckBox 
See also
CheckBox
WT_RadioButton 
See also
RadioButton
WT_DockWidget 
See also
DockWidget
WT_ProgressBar 
See also
ProgressBar
WT_MenuBar 
See also
MenuBar
WT_MenuBarItem 
See also
MenuBarItem
WT_Menu 
See also
Menu
WT_MenuItem 
See also
MenuItem
WT_ScrollBar 
See also
ScrollBar
WT_TabBar 
See also
TabBar
WT_TabWidget 
See also
TabWidget
WT_Slider 
See also
Slider
WT_Tree 
See also
Tree
WT_SpinBox 
See also
SpinBox
WT_ComboBox 
See also
ComboBox
WT_Header 
See also
Header
WT_LineEdit 
See also
LineEdit
WT_GroupBox 
See also
GroupBox
WT_StatusBar 
See also
StatusBar
WT_ToolBar 
See also
ToolBar
WT_ToolButton 
See also
ToolButton
WT_ToolBoxTab 
See also
ToolBoxTab
WT_Window 
See also
Window
WT_Limit 

For enum extensibility.

Definition at line 392 of file k4style.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 22:59:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.