Krita Source Code Documentation
Loading...
Searching...
No Matches
detail::CompositeFunctionWrapper< Traits, compositeFunc > Struct Template Reference

#include <KoCompositeOpGeneric.h>

+ Inheritance diagram for detail::CompositeFunctionWrapper< Traits, compositeFunc >:

Public Types

using channels_type = typename Traits::channels_type
 

Static Public Member Functions

static channels_type composeChannel (channels_type src, channels_type dst)
 
- Static Public Member Functions inherited from KoCompositeOpGenericFunctorBase< Traits::channels_type >
static Traits::channels_type clampDestinationChannelValue (Traits::channels_type value)
 
static Traits::channels_type clampSourceChannelValue (Traits::channels_type value)
 

Detailed Description

template<class Traits, typename Traits::channels_type compositeFunc>
struct detail::CompositeFunctionWrapper< Traits, compositeFunc >

A special class to convert old-style composite function into a functor with clamping properties

Definition at line 21 of file KoCompositeOpGeneric.h.

Member Typedef Documentation

◆ channels_type

template<class Traits , typename Traits::channels_type compositeFunc>
using detail::CompositeFunctionWrapper< Traits, compositeFunc >::channels_type = typename Traits::channels_type

Definition at line 23 of file KoCompositeOpGeneric.h.

Member Function Documentation

◆ composeChannel()

template<class Traits , typename Traits::channels_type compositeFunc>
static channels_type detail::CompositeFunctionWrapper< Traits, compositeFunc >::composeChannel ( channels_type src,
channels_type dst )
inlinestatic

Definition at line 25 of file KoCompositeOpGeneric.h.

25 {
26 return compositeFunc(src, dst);
27 }

The documentation for this struct was generated from the following file: