xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::text_renderer Class Reference
Inheritance diagram for xtd::forms::text_renderer:
xtd::static_object

Definition

Provides methods used to render a text with style sheets.

Provides methods used to render a text with style sheets.
Definition text_renderer.h:31
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
Inheritance
xtd::static → xtd::forms::text_renderer
Header
#include <xtd/forms/text_renderer>
Namespace
xtd::forms
Library
xtd.forms

Public Static Methods

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.
 
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.
 
static void draw_shadow_text_and_links (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 void draw_text_and_links (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::ustring &text, const xtd::forms::style_sheets::itext_model &data)
 

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: