class BlendMode

Defined at line 18 of file ../../src/ui/scenic/lib/types/blend_mode.h

Public Methods

void BlendMode ()

Defined at line 64 of file ../../src/ui/scenic/lib/types/blend_mode.h

void BlendMode (const BlendMode & )

Defined at line 66 of file ../../src/ui/scenic/lib/types/blend_mode.h

void BlendMode (BlendMode && )

Defined at line 67 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode & operator= (const BlendMode & )

Defined at line 68 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode & operator= (BlendMode && )

Defined at line 69 of file ../../src/ui/scenic/lib/types/blend_mode.h

void ~BlendMode ()

Defined at line 70 of file ../../src/ui/scenic/lib/types/blend_mode.h

Enum enum_value ()

Used for hashing/printing/etc; not useful for general users.

Defined at line 80 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode From (const fuchsia_ui_composition::BlendMode & fidl_mode)

`fidl_mode` must be convertible to a valid BlendMode instance.

This is not a constructor, to allow designated initializer syntax. Making

this a constructor would introduce ambiguity when designated initializer

syntax is used, because `fuchsia.math/SizeU` has the same field names as

our supported designated initializer syntax.

Defined at line 89 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode From (const fuchsia_ui_composition::BlendMode2 & fidl_mode)

static

Defined at line 99 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode From (const fuchsia_hardware_display_types::wire::AlphaMode & fidl_mode)

static

Defined at line 114 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode kReplace ()

Static "constructors".

Defined at line 127 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode kPremultipliedAlpha ()

static

Defined at line 130 of file ../../src/ui/scenic/lib/types/blend_mode.h

BlendMode kStraightAlpha ()

static

Defined at line 135 of file ../../src/ui/scenic/lib/types/blend_mode.h

void BlendMode (BlendMode::Enum val)

Defined at line 86 of file ../../src/ui/scenic/lib/types/blend_mode.h

fuchsia_ui_composition::BlendMode ToFlatlandBlendMode ()

Defined at line 143 of file ../../src/ui/scenic/lib/types/blend_mode.h

fuchsia_ui_composition::BlendMode2 ToFlatlandBlendMode2 ()

Defined at line 156 of file ../../src/ui/scenic/lib/types/blend_mode.h

fuchsia_hardware_display_types::wire::AlphaMode ToDisplayAlphaMode ()

Defined at line 167 of file ../../src/ui/scenic/lib/types/blend_mode.h

Enumerations

enum class Enum : uint8_t
Name Value Comments
kReplace 0

Equivalent to:
- fuchsia.ui.composition.BlendMode::SRC
- fuchsia.ui.composition.BlendMode2::REPLACE
- fuchsia.hardware.display.types.AlphaMode::DISABLE
- android.hardware.graphics.common.BlendMode::NONE

Note: this is named `kReplace` not e.g. `kOpaque` because the source alpha replaces the
destination alpha. Consider a fully transparent source pixel (alpha == 0); in this mode the
destination alpha becomes zero.

kPremultipliedAlpha 1

Equivalent to:
- fuchsia.ui.composition.BlendMode::SRC_OVER
- fuchsia.ui.composition.BlendMode2::PREMULTIPLIED_ALPHA
- fuchsia.hardware.display.types.AlphaMode::PREMULTIPLIED
- android.hardware.graphics.common.BlendMode::PREMULTIPLIED

kStraightAlpha 2

Equivalent to:
- NO EQUIVALENT in fuchsia.ui.composition.BlendMode
- fuchsia.ui.composition.BlendMode2::STRAIGHT_ALPHA
- fuchsia.hardware.display.types.AlphaMode::HW_MULTIPLY
- android.hardware.graphics.common.BlendMode::COVERAGE

Defined at line 20 of file ../../src/ui/scenic/lib/types/blend_mode.h

Friends

bool BlendMode (const BlendMode & lhs, const BlendMode & rhs)
bool BlendMode (const BlendMode & lhsconst BlendMode & rhs)