Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::GlyphAtlasContextSTB Class Reference

#include <glyph_atlas_context_stb.h>

Inheritance diagram for impeller::GlyphAtlasContextSTB:
impeller::GlyphAtlasContext impeller::BackendCast< GlyphAtlasContextSTB, GlyphAtlasContext >

Public Member Functions

 GlyphAtlasContextSTB ()
 
 ~GlyphAtlasContextSTB () override
 
std::shared_ptr< BitmapSTBGetBitmap () const
 Retrieve the previous (if any) BitmapSTB instance.
 
void UpdateBitmap (std::shared_ptr< BitmapSTB > bitmap)
 
- Public Member Functions inherited from impeller::GlyphAtlasContext
virtual ~GlyphAtlasContext ()
 
std::shared_ptr< GlyphAtlasGetGlyphAtlas () const
 Retrieve the current glyph atlas.
 
const ISizeGetAtlasSize () const
 Retrieve the size of the current glyph atlas.
 
std::shared_ptr< RectanglePackerGetRectPacker () const
 Retrieve the previous (if any) rect packer.
 
void UpdateGlyphAtlas (std::shared_ptr< GlyphAtlas > atlas, ISize size)
 Update the context with a newly constructed glyph atlas.
 
void UpdateRectPacker (std::shared_ptr< RectanglePacker > rect_packer)
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::BackendCast< GlyphAtlasContextSTB, GlyphAtlasContext >
static GlyphAtlasContextSTBCast (GlyphAtlasContext &base)
 
static const GlyphAtlasContextSTBCast (const GlyphAtlasContext &base)
 
static GlyphAtlasContextSTBCast (GlyphAtlasContext *base)
 
static const GlyphAtlasContextSTBCast (const GlyphAtlasContext *base)
 
- Protected Member Functions inherited from impeller::GlyphAtlasContext
 GlyphAtlasContext ()
 

Detailed Description

Definition at line 40 of file glyph_atlas_context_stb.h.

Constructor & Destructor Documentation

◆ GlyphAtlasContextSTB()

impeller::GlyphAtlasContextSTB::GlyphAtlasContextSTB ( )
default

◆ ~GlyphAtlasContextSTB()

impeller::GlyphAtlasContextSTB::~GlyphAtlasContextSTB ( )
overridedefault

Member Function Documentation

◆ GetBitmap()

std::shared_ptr< BitmapSTB > impeller::GlyphAtlasContextSTB::GetBitmap ( ) const

Retrieve the previous (if any) BitmapSTB instance.

Definition at line 50 of file glyph_atlas_context_stb.cc.

50 {
51 return bitmap_;
52}

◆ UpdateBitmap()

void impeller::GlyphAtlasContextSTB::UpdateBitmap ( std::shared_ptr< BitmapSTB bitmap)

Definition at line 54 of file glyph_atlas_context_stb.cc.

54 {
55 bitmap_ = std::move(bitmap);
56}

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