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

Fluent API for drawing centered monospace text. More...

#include <constixel.hpp>

Public Member Functions

constexpr text_centered_mono (image_type &image, int32_t x_, int32_t y_, const char *str_)
 Construct a centered monospace text shape.
 
constexpr text_centered_monocolor (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_mono< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >

Fluent API for drawing centered monospace text.

Provides a chainable interface for drawing centered text using monospace fonts.

Constructor & Destructor Documentation

◆ text_centered_mono()

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_mono< FONT, T, W, H, GRAYSCALE, USE_SPAN, KERNING, ROTATION >::text_centered_mono ( image_type & image,
int32_t x_,
int32_t y_,
const char * str_ )
inlineconstexpr

Construct a centered monospace 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_mono & constixel::shapes::text_centered_mono< 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: