Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter_runner::testing::FakeTransform Struct Reference

#include <fake_flatland_types.h>

Public Member Functions

bool operator== (const FakeTransform &other) const
 

Public Attributes

fuchsia::ui::composition::TransformId id {kInvalidTransformId}
 
fuchsia::math::Vec translation {kDefaultTranslation}
 
fuchsia::math::VecF scale {kDefaultScale}
 
fuchsia::ui::composition::Orientation orientation {kDefaultOrientation}
 
std::optional< fuchsia::math::Rect > clip_bounds = std::nullopt
 
float opacity = kDefaultOpacity
 
std::vector< std::shared_ptr< FakeTransform > > children
 
std::shared_ptr< FakeContentcontent
 
std::vector< fuchsia::ui::composition::HitRegion > hit_regions
 

Static Public Attributes

static constexpr fuchsia::math::Vec kDefaultTranslation {.x = 0, .y = 0}
 
static constexpr fuchsia::math::VecF kDefaultScale {.x = 1.0f, .y = 1.0f}
 
static constexpr fuchsia::ui::composition::Orientation kDefaultOrientation
 
static constexpr float kDefaultOpacity = 1.0f
 

Detailed Description

Definition at line 225 of file fake_flatland_types.h.

Member Function Documentation

◆ operator==()

bool flutter_runner::testing::FakeTransform::operator== ( const FakeTransform other) const

Definition at line 135 of file fake_flatland_types.cc.

135 {
136 return id == other.id && translation == other.translation &&
137 *clip_bounds == *other.clip_bounds &&
138 orientation == other.orientation && children == other.children &&
139 content == other.content && hit_regions == other.hit_regions;
140}
std::vector< fuchsia::ui::composition::HitRegion > hit_regions
std::vector< std::shared_ptr< FakeTransform > > children
std::shared_ptr< FakeContent > content
fuchsia::ui::composition::Orientation orientation
std::optional< fuchsia::math::Rect > clip_bounds

Member Data Documentation

◆ children

std::vector<std::shared_ptr<FakeTransform> > flutter_runner::testing::FakeTransform::children

Definition at line 244 of file fake_flatland_types.h.

◆ clip_bounds

std::optional<fuchsia::math::Rect> flutter_runner::testing::FakeTransform::clip_bounds = std::nullopt

Definition at line 240 of file fake_flatland_types.h.

◆ content

std::shared_ptr<FakeContent> flutter_runner::testing::FakeTransform::content

Definition at line 245 of file fake_flatland_types.h.

◆ hit_regions

std::vector<fuchsia::ui::composition::HitRegion> flutter_runner::testing::FakeTransform::hit_regions

Definition at line 246 of file fake_flatland_types.h.

◆ id

fuchsia::ui::composition::TransformId flutter_runner::testing::FakeTransform::id {kInvalidTransformId}

Definition at line 234 of file fake_flatland_types.h.

◆ kDefaultOpacity

constexpr float flutter_runner::testing::FakeTransform::kDefaultOpacity = 1.0f
staticconstexpr

Definition at line 232 of file fake_flatland_types.h.

◆ kDefaultOrientation

constexpr fuchsia::ui::composition::Orientation flutter_runner::testing::FakeTransform::kDefaultOrientation
staticconstexpr
Initial value:
{
fuchsia::ui::composition::Orientation::CCW_0_DEGREES}

Definition at line 230 of file fake_flatland_types.h.

◆ kDefaultScale

constexpr fuchsia::math::VecF flutter_runner::testing::FakeTransform::kDefaultScale {.x = 1.0f, .y = 1.0f}
staticconstexpr

Definition at line 229 of file fake_flatland_types.h.

◆ kDefaultTranslation

constexpr fuchsia::math::Vec flutter_runner::testing::FakeTransform::kDefaultTranslation {.x = 0, .y = 0}
staticconstexpr

Definition at line 228 of file fake_flatland_types.h.

◆ opacity

float flutter_runner::testing::FakeTransform::opacity = kDefaultOpacity

Definition at line 242 of file fake_flatland_types.h.

◆ orientation

fuchsia::ui::composition::Orientation flutter_runner::testing::FakeTransform::orientation {kDefaultOrientation}

Definition at line 238 of file fake_flatland_types.h.

◆ scale

fuchsia::math::VecF flutter_runner::testing::FakeTransform::scale {kDefaultScale}

Definition at line 237 of file fake_flatland_types.h.

◆ translation

fuchsia::math::Vec flutter_runner::testing::FakeTransform::translation {kDefaultTranslation}

Definition at line 236 of file fake_flatland_types.h.


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