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

KDEUI

Classes | Enumerations | Functions
KStyle option representation

Classes

class  KStyle::ColorMode
 
struct  KStyle::ColorOption
 
struct  KStyle::DoubleButtonOption
 
struct  KStyle::IconOption
 
struct  KStyle::Option
 
struct  KStyle::OptionBase< EventualSubtype, BaseType >
 
struct  KStyle::TextOption
 
struct  KStyle::TitleButtonOption
 

Enumerations

enum  KStyle::DoubleButtonOption::ActiveButton {
  KStyle::DoubleButtonOption::None, KStyle::DoubleButtonOption::Top, KStyle::DoubleButtonOption::Left, KStyle::DoubleButtonOption::Right,
  KStyle::DoubleButtonOption::Bottom
}
 
enum  KStyle::ColorMode::Mode { KStyle::ColorMode::PaletteEntryMode, KStyle::ColorMode::BWAutoContrastMode = 0x8000000 }
 

Functions

template<typename T >
static T KStyle::extractOption (Option *option)
 

Detailed Description

Things related to the representation of options passed when drawing things.

Enumeration Type Documentation

enum KStyle::DoubleButtonOption::ActiveButton

List of active button possibilities.

Enumerator
None 

No button is active.

Top 

Vertical scrollbar: The upper button is active.

Left 

Horizontal scrollbar: The left button is active.

Right 

Horizontal scrollbar: The right button is active.

Bottom 

Vertical scrollbar: The lower button is active.

Definition at line 317 of file kstyle.h.

enum KStyle::ColorMode::Mode

KStyle understands two kinds of colors:

  1. Palette entries.

This means the item must be painted with a specific color role from the palette.

  1. Auto-selected black or white, dependent on the brightness of a certain color role from the palette.
Enumerator
PaletteEntryMode 
BWAutoContrastMode 

Definition at line 201 of file kstyle.h.

Function Documentation

template<typename T >
T KStyle::extractOption ( Option *  option)
staticprotected

The extractOption method casts the passed in option object, and returns it, if available, or the defaults for the given type.

When implementing drawing of things with associated options, just use this to extract the parameter.

Definition at line 1684 of file kstyle.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Sun Oct 4 2015 08:41:36 by doxygen 1.8.9.1 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-4.14.12 API Reference

Skip menu "kdelibs-4.14.12 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
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