| Flutter Impeller |

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

`#include <impeller.hpp>`

Inheritance diagram for IMPELLER_HPP_NAMESPACE::Paint:

## Public Member Functions
| Paint ()
Paint & | SetColor (const ImpellerColor &color)
Paint & | SetBlendMode (ImpellerBlendMode mode)
Paint & | SetDrawStyle (ImpellerDrawStyle style)
Paint & | SetStrokeCap (ImpellerStrokeCap cap)
Paint & | SetStrokeJoin (ImpellerStrokeJoin join)
Paint & | SetStrokeWidth (float width)
Paint & | SetStrokeMiter (float miter)
Paint & | SetColorFilter (const ColorFilter &filter)
Paint & | SetColorSource (const ColorSource &source)
Paint & | SetImageFilter (const ImageFilter &filter)
Paint & | SetMaskFilter (const MaskFilter &filter)
Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >
| Object ()=default
| Object (ImpellerPaint object)
| Object (ImpellerPaint object, AdoptTag)
| Object (Object &&other)
| Object (const Object &other)
| ~Object ()
Object & | operator= (Object &&other)
Object & | operator= (const Object &other)
ImpellerPaint | Get () const
| operator bool () const

## Detailed Description

See also
  ImpellerPaint

Definition at line 921 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ Paint()

IMPELLER_HPP_NAMESPACE::Paint::Paint | ( |  | ) |
| inline

Definition at line 923 of file impeller.hpp.

923 : Object(gGlobalProcTable.ImpellerPaintNew(), AdoptTag::kAdopt) {}
IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Object
Object()=default
IMPELLER_HPP_NAMESPACE::AdoptTag::kAdopt
@ kAdopt
IMPELLER_HPP_NAMESPACE::gGlobalProcTable
ProcTable gGlobalProcTable
Definition: playground_test.cc:25

References IMPELLER_HPP_NAMESPACE::kAdopt.

## Member Function Documentation

## ◆ SetBlendMode()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetBlendMode | ( | ImpellerBlendMode | mode | ) |
| inline

See also
  ImpellerPaintSetBlendMode

Definition at line 936 of file impeller.hpp.

936 {
937 gGlobalProcTable.ImpellerPaintSetBlendMode(Get(), mode);
938 return *this;
939 }
IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get
ImpellerPaint Get() const
Definition: impeller.hpp:269

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetColor()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetColor | ( | const ImpellerColor & | color | ) |
| inline

See also
  ImpellerPaintSetColor

Definition at line 928 of file impeller.hpp.

928 {
929 gGlobalProcTable.ImpellerPaintSetColor(Get(), &color);
930 return *this;
931 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetColorFilter()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetColorFilter | ( | const ColorFilter & | filter | ) |
| inline

See also
  ImpellerPaintSetColorFilter

Definition at line 984 of file impeller.hpp.

984 {
985 gGlobalProcTable.ImpellerPaintSetColorFilter(Get(), filter.Get());
986 return *this;
987 }

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetColorSource()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetColorSource | ( | const ColorSource & | source | ) |
| inline

See also
  ImpellerPaintSetColorSource

Definition at line 992 of file impeller.hpp.

992 {
993 gGlobalProcTable.ImpellerPaintSetColorSource(Get(), source.Get());
994 return *this;
995 }

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetDrawStyle()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetDrawStyle | ( | ImpellerDrawStyle | style | ) |
| inline

See also
  ImpellerPaintSetDrawStyle

Definition at line 944 of file impeller.hpp.

944 {
945 gGlobalProcTable.ImpellerPaintSetDrawStyle(Get(), style);
946 return *this;
947 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetImageFilter()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetImageFilter | ( | const ImageFilter & | filter | ) |
| inline

See also
  ImpellerPaintSetImageFilter

Definition at line 1000 of file impeller.hpp.

1000 {
1001 gGlobalProcTable.ImpellerPaintSetImageFilter(Get(), filter.Get());
1002 return *this;
1003 }

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetMaskFilter()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetMaskFilter | ( | const MaskFilter & | filter | ) |
| inline

See also
  ImpellerPaintSetMaskFilter

Definition at line 1008 of file impeller.hpp.

1008 {
1009 gGlobalProcTable.ImpellerPaintSetMaskFilter(Get(), filter.Get());
1010 return *this;
1011 }

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetStrokeCap()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetStrokeCap | ( | ImpellerStrokeCap | cap | ) |
| inline

See also
  ImpellerPaintSetStrokeCap

Definition at line 952 of file impeller.hpp.

952 {
953 gGlobalProcTable.ImpellerPaintSetStrokeCap(Get(), cap);
954 return *this;
955 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetStrokeJoin()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetStrokeJoin | ( | ImpellerStrokeJoin | join | ) |
| inline

See also
  ImpellerPaintSetStrokeJoin

Definition at line 960 of file impeller.hpp.

960 {
961 gGlobalProcTable.ImpellerPaintSetStrokeJoin(Get(), join);
962 return *this;
963 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetStrokeMiter()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetStrokeMiter | ( | float | miter | ) |
| inline

See also
  ImpellerPaintSetStrokeMiter

Definition at line 976 of file impeller.hpp.

976 {
977 gGlobalProcTable.ImpellerPaintSetStrokeMiter(Get(), miter);
978 return *this;
979 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

## ◆ SetStrokeWidth()

Paint& IMPELLER_HPP_NAMESPACE::Paint::SetStrokeWidth | ( | float | width | ) |
| inline

See also
  ImpellerPaintSetStrokeWidth

Definition at line 968 of file impeller.hpp.

968 {
969 gGlobalProcTable.ImpellerPaintSetStrokeWidth(Get(), width);
970 return *this;
971 }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerPaint, ImpellerPaintTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

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

- impeller/toolkit/interop/impeller.hpp