KDELibs4Support

K4Style option representation

Classes

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

Functions

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

Detailed Description

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

Function Documentation

template<typename T >
T K4Style::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 1580 of file k4style.h.

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

KDE's Doxygen guidelines are available online.