Jamba C++ API  5.1.1
StringDrawContext Struct Reference

The context which contains the details on how the string should be drawn. More...

#include <DrawContext.h>

Public Types

enum  Style : int32_t { kShadowText = 1 << 2, kNoTextStyle = 1 << 11 }
 

Public Member Functions

void addStyle (Style iStyle)
 
constexpr bool hasStyle (Style iStyle) const
 
void setStyle (Style iStyle)
 

Public Attributes

bool fAntialias {true}
 
FontPtr fFont {nullptr}
 
CColor fFontColor {kWhiteCColor}
 
CHoriTxtAlign fHorizTxtAlign {kCenterText}
 
CColor fShadowColor {kBlackCColor}
 
CPoint fShadowTextOffset {1., 1.}
 
int32_t fStyle {0}
 Should be a value provided by StringDrawContext::Style More...
 
CPoint fTextInset {0, 0}
 

Detailed Description

The context which contains the details on how the string should be drawn.

Member Enumeration Documentation

◆ Style

enum Style : int32_t
strong
Enumerator
kShadowText 
kNoTextStyle 

Member Function Documentation

◆ addStyle()

void addStyle ( Style  iStyle)
inline

◆ hasStyle()

constexpr bool hasStyle ( Style  iStyle) const
inline

◆ setStyle()

void setStyle ( Style  iStyle)
inline

Member Data Documentation

◆ fAntialias

bool fAntialias {true}

◆ fFont

FontPtr fFont {nullptr}

◆ fFontColor

CColor fFontColor {kWhiteCColor}

◆ fHorizTxtAlign

CHoriTxtAlign fHorizTxtAlign {kCenterText}

◆ fShadowColor

CColor fShadowColor {kBlackCColor}

◆ fShadowTextOffset

CPoint fShadowTextOffset {1., 1.}

◆ fStyle

int32_t fStyle {0}

Should be a value provided by StringDrawContext::Style

◆ fTextInset

CPoint fTextInset {0, 0}

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