| Flutter Impeller |

Public Member Functions | Static Public Member Functions | List of all members
IMPELLER_HPP_NAMESPACE::ColorFilter Class Referencefinal

`#include <impeller.hpp>`

Inheritance diagram for IMPELLER_HPP_NAMESPACE::ColorFilter:

## Public Member Functions
| ColorFilter (ImpellerColorFilter filter, AdoptTag tag)
Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerColorFilter, ImpellerColorFilterTraits >
| Object ()=default
| Object (ImpellerColorFilter object)
| Object (ImpellerColorFilter object, AdoptTag)
| Object (Object &&other)
| Object (const Object &other)
| ~Object ()
Object & | operator= (Object &&other)
Object & | operator= (const Object &other)
ImpellerColorFilter | Get () const
| operator bool () const

## Static Public Member Functions
static ColorFilter | Blend (const ImpellerColor &color, ImpellerBlendMode mode)
static ColorFilter | Matrix (const ImpellerColorMatrix &color_matrix)

## Detailed Description

See also
  ImpellerColorFilter

Definition at line 439 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ ColorFilter()

IMPELLER_HPP_NAMESPACE::ColorFilter::ColorFilter | ( | ImpellerColorFilter | filter,
|  | AdoptTag | tag
| ) |  |
| inline

Definition at line 442 of file impeller.hpp.

442 : Object(filter, tag) {}
IMPELLER_HPP_NAMESPACE::Object< ImpellerColorFilter, ImpellerColorFilterTraits >::Object
Object()=default

Referenced by Blend(), and Matrix().

## Member Function Documentation

## ◆ Blend()

static ColorFilter IMPELLER_HPP_NAMESPACE::ColorFilter::Blend | ( | const ImpellerColor & | color,
|  | ImpellerBlendMode | mode
| ) |  |
| inline static

See also
  ImpellerColorFilterCreateBlendNew

Definition at line 447 of file impeller.hpp.

447 {
448 return ColorFilter(
449 gGlobalProcTable.ImpellerColorFilterCreateBlendNew(&color, mode),
450 AdoptTag::kAdopt);
451 }
IMPELLER_HPP_NAMESPACE::ColorFilter::ColorFilter
ColorFilter(ImpellerColorFilter filter, AdoptTag tag)
Definition: impeller.hpp:442
IMPELLER_HPP_NAMESPACE::AdoptTag::kAdopt
@ kAdopt
IMPELLER_HPP_NAMESPACE::gGlobalProcTable
ProcTable gGlobalProcTable
Definition: playground_test.cc:25

References ColorFilter(), IMPELLER_HPP_NAMESPACE::gGlobalProcTable, and IMPELLER_HPP_NAMESPACE::kAdopt.

## ◆ Matrix()

static ColorFilter IMPELLER_HPP_NAMESPACE::ColorFilter::Matrix | ( | const ImpellerColorMatrix & | color_matrix | ) |
| inline static

See also
  ImpellerColorFilterCreateColorMatrixNew

Definition at line 456 of file impeller.hpp.

456 {
457 return ColorFilter(
458 gGlobalProcTable.ImpellerColorFilterCreateColorMatrixNew(&color_matrix),
459 AdoptTag::kAdopt);
460 }

References ColorFilter(), IMPELLER_HPP_NAMESPACE::gGlobalProcTable, and IMPELLER_HPP_NAMESPACE::kAdopt.

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

- impeller/toolkit/interop/impeller.hpp