Blender V5.3
blender::GlyphBLF Struct Reference

#include <blf_internal_types.hh>

Public Member Functions

Glyph Access (Ensure/Free)
 ~GlyphBLF ()

Public Attributes

unsigned int c
FT_UInt idx
ft_pix box_xmin
ft_pix box_xmax
ft_pix box_ymin
ft_pix box_ymax
ft_pix advance_x
uint8_t subpixel
GlyphFlagBLF flags
ft_pix lsb_delta
ft_pix rsb_delta
int offset
unsigned char * bitmap
int dims [2]
int pitch
int num_channels
int pos [2]
GlyphCacheBLF * glyph_cache

Detailed Description

Definition at line 191 of file blf_internal_types.hh.

Constructor & Destructor Documentation

◆ ~GlyphBLF()

blender::GlyphBLF::~GlyphBLF ( )

Definition at line 1451 of file blf_glyph.cc.

References bitmap.

Member Data Documentation

◆ advance_x

◆ bitmap

unsigned char* blender::GlyphBLF::bitmap

Bitmap data, from freetype. Take care that this can be NULL.

Definition at line 219 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_draw(), blender::blf_glyph_draw_buffer(), blender::blf_svg_icon_bitmap(), and ~GlyphBLF().

◆ box_xmax

ft_pix blender::GlyphBLF::box_xmax

Definition at line 200 of file blf_internal_types.hh.

◆ box_xmin

ft_pix blender::GlyphBLF::box_xmin

Glyph bounding-box.

Definition at line 199 of file blf_internal_types.hh.

◆ box_ymax

ft_pix blender::GlyphBLF::box_ymax

Definition at line 202 of file blf_internal_types.hh.

◆ box_ymin

ft_pix blender::GlyphBLF::box_ymin

Definition at line 201 of file blf_internal_types.hh.

◆ c

unsigned int blender::GlyphBLF::c

◆ dims

◆ flags

GlyphFlagBLF blender::GlyphBLF::flags

◆ glyph_cache

GlyphCacheBLF* blender::GlyphBLF::glyph_cache

Definition at line 233 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_draw().

◆ idx

FT_UInt blender::GlyphBLF::idx

Freetype2 index, to speed-up the search.

Definition at line 196 of file blf_internal_types.hh.

Referenced by blender::blf_kerning().

◆ lsb_delta

ft_pix blender::GlyphBLF::lsb_delta

The difference in bearings when hinting is active, zero otherwise.

Definition at line 209 of file blf_internal_types.hh.

Referenced by blender::blf_kerning().

◆ num_channels

int blender::GlyphBLF::num_channels

◆ offset

int blender::GlyphBLF::offset

Position inside the texture where this glyph is store.

Definition at line 213 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_draw(), and blender::blf_texture_draw().

◆ pitch

int blender::GlyphBLF::pitch

◆ pos

int blender::GlyphBLF::pos[2]

X and Y bearing of the glyph. The X bearing is from the origin to the glyph left bounding-box edge. The Y bearing is from the baseline to the top of the glyph edge.

Definition at line 231 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_calc_rect(), blender::blf_glyph_calc_rect_test(), and blender::blf_glyph_draw_buffer().

◆ rsb_delta

ft_pix blender::GlyphBLF::rsb_delta

Definition at line 210 of file blf_internal_types.hh.

Referenced by blender::blf_kerning().

◆ subpixel

uint8_t blender::GlyphBLF::subpixel

Definition at line 205 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_ensure_subpixel().


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