K4Style option representation


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


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)

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-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:02:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.