xtd - Reference Guide 0.2.0
xtd::forms::text_renderer Class Reference

#include <text_renderer.h>

Definition

Provides methods used to render a text with style sheets.

class forms_export_ text_renderer static_
Inheritance
xtd::static → xtd::forms::text_renderer
Namespace
xtd::forms
Library
xtd.forms

Static Public Member Functions

static void draw_shadow_text (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::ustring &text, const xtd::forms::style_sheets::itext_model &data, const xtd::forms::style_sheets::ibox_model &box)
 Draws shadow text. More...
 
static void draw_text (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::ustring &text, const xtd::forms::style_sheets::itext_model &data)
 Draws text. More...
 

Member Function Documentation

◆ draw_shadow_text()

static void xtd::forms::text_renderer::draw_shadow_text ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
const xtd::ustring text,
const xtd::forms::style_sheets::itext_model data,
const xtd::forms::style_sheets::ibox_model box 
)
static

Draws shadow text.

Parameters
graphicsThe xtd::drawing::graphics used to draw text.
boundsThe xtd::drawing::rectangle that specifies the bounds of the text.
textThe xtd::ustring text to draw.
dataThe xtd::forms::style_sheets::itext_model class wish contains informations about how to draw the the text.
boxxtd::forms::style_sheets::ibox_model class that contains the background color of the control.

◆ draw_text()

static void xtd::forms::text_renderer::draw_text ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
const xtd::ustring text,
const xtd::forms::style_sheets::itext_model data 
)
static

Draws text.

Parameters
graphicsThe xtd::drawing::graphics used to draw text.
boundsThe xtd::drawing::rectangle that specifies the bounds of the text.
textThe xtd::ustring text to draw.
dataThe xtd::forms::style_sheets::itext_model class wish contains informations about how to draw the the text.

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