Flutter Engine
The Flutter Engine
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 (GlyphAtlas::Type type)
 
 ~GlyphAtlasContextSTB () override
 
std::shared_ptr< BitmapSTBGetBitmap () const
 Retrieve the previous (if any) BitmapSTB instance. More...
 
void UpdateBitmap (std::shared_ptr< BitmapSTB > bitmap)
 
- Public Member Functions inherited from impeller::GlyphAtlasContext
 GlyphAtlasContext (GlyphAtlas::Type type)
 
virtual ~GlyphAtlasContext ()
 
std::shared_ptr< GlyphAtlasGetGlyphAtlas () const
 Retrieve the current glyph atlas. More...
 
const ISizeGetAtlasSize () const
 Retrieve the size of the current glyph atlas. More...
 
std::shared_ptr< RectanglePackerGetRectPacker () const
 Retrieve the previous (if any) rect packer. More...
 
int64_t GetHeightAdjustment () const
 A y-coordinate shift that must be applied to glyphs appended to the atlas. More...
 
void UpdateGlyphAtlas (std::shared_ptr< GlyphAtlas > atlas, ISize size, int64_t height_adjustment_)
 Update the context with a newly constructed glyph atlas. More...
 
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)
 

Detailed Description

Definition at line 40 of file glyph_atlas_context_stb.h.

Constructor & Destructor Documentation

◆ GlyphAtlasContextSTB()

impeller::GlyphAtlasContextSTB::GlyphAtlasContextSTB ( GlyphAtlas::Type  type)
explicit

Definition at line 46 of file glyph_atlas_context_stb.cc.

GLenum type
GlyphAtlasContext(GlyphAtlas::Type type)
Definition: glyph_atlas.cc:12

◆ ~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 51 of file glyph_atlas_context_stb.cc.

51 {
52 return bitmap_;
53}

◆ UpdateBitmap()

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

Definition at line 55 of file glyph_atlas_context_stb.cc.

55 {
56 bitmap_ = std::move(bitmap);
57}
Definition: bitmap.py:1

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