constixel
Loading...
Searching...
No Matches
constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION > Class Template Reference

Fluent API for drawing centered anti-aliased text. More...

#include <constixel.hpp>

Public Member Functions

constexpr text_centered_aa (image_type &image, int32_t x_, int32_t y_, const char *str_)
 Construct a centered anti-aliased text shape.
 
constexpr text_centered_aacolor (uint8_t col)
 Draw the centered text with the specified color.
 

Detailed Description

template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
class constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >

Fluent API for drawing centered anti-aliased text.

Provides a chainable interface for drawing centered text using anti-aliased fonts.

Constructor & Destructor Documentation

◆ text_centered_aa()

template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >::text_centered_aa ( image_type & image,
int32_t x_,
int32_t y_,
const char * str_ )
inlineconstexpr

Construct a centered anti-aliased text shape.

Parameters
imageTarget image to draw on
x_X coordinate of center position
y_Y coordinate of center position
str_Text string to draw

Member Function Documentation

◆ color()

template<typename FONT, template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN, bool KERNING = false, text_rotation ROTATION = DEGREE_0>
text_centered_aa & constixel::shapes::text_centered_aa< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >::color ( uint8_t col)
inlineconstexpr

Draw the centered text with the specified color.

Parameters
colColor value
Returns
Reference to this text for chaining

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