| Flutter Impeller |

Public Member Functions | List of all members
IMPELLER_HPP_NAMESPACE::Object< T, Traits > Class Template Reference

`#include <impeller.hpp>`

## Public Member Functions
| Object ()=default
| Object (T object)
| Object (T object, AdoptTag)
| ~Object ()
| Object (Object &&other)
| Object (const Object &other)
Object & | operator= (Object &&other)
Object & | operator= (const Object &other)
T | Get () const
| operator bool () const

## Detailed Description

### template<class T, class Traits>
class IMPELLER_HPP_NAMESPACE::Object< T, Traits >

Definition at line 210 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ Object() [1/5]

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Object | ( |  | ) |
| default

## ◆ Object() [2/5]

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Object | ( | T | object | ) |
| inline explicit

Definition at line 214 of file impeller.hpp.

214 { Reset(object); }

## ◆ Object() [3/5]

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Object | ( | T | object,
|  | AdoptTag |
| ) |  |
| inline

Definition at line 216 of file impeller.hpp.

216 : object_(object) {}

## ◆ ~Object()

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::~Object | ( |  | ) |
| inline

Definition at line 218 of file impeller.hpp.

218 { Reset(); }

## ◆ Object() [4/5]

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Object | ( | Object< T, Traits > && | other | ) |
| inline

Definition at line 220 of file impeller.hpp.

220 { std::swap(object_, other.object_); }

## ◆ Object() [5/5]

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Object | ( | const Object< T, Traits > & | other | ) |
| inline

Definition at line 222 of file impeller.hpp.

222 { Reset(other.Get()); }

## Member Function Documentation

## ◆ Get()

template<class T , class Traits >

T IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get | ( |  | ) | const
| inline

Definition at line 234 of file impeller.hpp.

234 { return object_; }

Referenced by IMPELLER_HPP_NAMESPACE::DisplayListBuilder::ClipPath(), IMPELLER_HPP_NAMESPACE::ImageFilter::Compose(), IMPELLER_HPP_NAMESPACE::Surface::Draw(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawDashedLine(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawDisplayList(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawLine(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawOval(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawPaint(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawParagraph(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawPath(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawRect(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawRoundedRect(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawRoundedRectDifference(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawTexture(), IMPELLER_HPP_NAMESPACE::DisplayListBuilder::DrawTextureRect(), IMPELLER_HPP_NAMESPACE::ColorSource::Image(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPathBuilder, ImpellerPathBuilderTraits >::Object(), IMPELLER_HPP_NAMESPACE::Object< ImpellerPathBuilder, ImpellerPathBuilderTraits >::operator=(), IMPELLER_HPP_NAMESPACE::ParagraphBuilder::PushStyle(), IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetBackground(), IMPELLER_HPP_NAMESPACE::Paint::SetColorFilter(), IMPELLER_HPP_NAMESPACE::Paint::SetColorSource(), IMPELLER_HPP_NAMESPACE::ParagraphStyle::SetForeground(), IMPELLER_HPP_NAMESPACE::Paint::SetImageFilter(), IMPELLER_HPP_NAMESPACE::Paint::SetMaskFilter(), IMPELLER_HPP_NAMESPACE::Texture::WithContents(), IMPELLER_HPP_NAMESPACE::Texture::WithOpenGLTexture(), and IMPELLER_HPP_NAMESPACE::Surface::WrapFBO().

## ◆ operator bool()

template<class T , class Traits >

IMPELLER_HPP_NAMESPACE::Object< T, Traits >::operator bool | ( |  | ) | const
| inline explicit

Definition at line 236 of file impeller.hpp.

236 { return object_ != nullptr; }

## ◆ operator=() [1/2]

template<class T , class Traits >

Object& IMPELLER_HPP_NAMESPACE::Object< T, Traits >::operator= | ( | const Object< T, Traits > & | other | ) |
| inline

Definition at line 229 of file impeller.hpp.

229 {
230 Reset(other.Get());
231 return *this;
232 }

## ◆ operator=() [2/2]

template<class T , class Traits >

Object& IMPELLER_HPP_NAMESPACE::Object< T, Traits >::operator= | ( | Object< T, Traits > && | other | ) |
| inline

Definition at line 224 of file impeller.hpp.

224 {
225 std::swap(object_, other.object_);
226 return *this;
227 }

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

- impeller/toolkit/interop/impeller.hpp