6 #ifndef SWIFT_MISC_MIXIN_MIXINICON_H
7 #define SWIFT_MISC_MIXIN_MIXINICON_H
26 template <
class Derived, CIcons::IconIndex IconIndex = CIcons::StandardIconUnknown16>
34 const Derived *derived()
const;
38 template <
class Derived, CIcons::IconIndex IconIndex>
44 template <
class Derived, CIcons::IconIndex IconIndex>
47 return static_cast<const Derived *
>(
this);
50 template <
class Derived, CIcons::IconIndex IconIndex>
51 Derived *Icon<Derived, IconIndex>::derived()
53 return static_cast<Derived *
>(
this);
60 #define SWIFT_MISC_DECLARE_USING_MIXIN_ICON(DERIVED) using ::swift::misc::mixin::Icon<DERIVED>::toIcon;
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
CRTP class template from which a derived class can inherit icon-related functions.
CIcons::IconIndex toIcon() const
As icon, not implemented by all classes.
Free functions in swift::misc.