xtd 0.2.0
Loading...
Searching...
No Matches
text_renderer.h
Go to the documentation of this file.
1
4#pragma once
7#include <xtd/drawing/graphics>
8#include <xtd/drawing/rectangle>
9#include <xtd/static>
10#include <xtd/string>
11#include <memory>
12#include <vector>
13
15namespace xtd {
17 namespace forms {
34 public:
36
50 static void draw_text(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::string& text, const xtd::forms::style_sheets::itext_model& data);
51
52 static void draw_shadow_text_and_links(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::string& text, const xtd::forms::style_sheets::itext_model& data, const xtd::forms::style_sheets::ibox_model& box);
53 static void draw_text_and_links(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::string& text, const xtd::forms::style_sheets::itext_model& data);
55 };
56 }
57}
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents a boxed object.
Definition box.h:53
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
The box model allows you to specify the margin, borders, padding, background color,...
Definition ibox_model.h:45
The text model allows you to specify the alignment, color, decoration, transformation,...
Definition itext_model.h:40
Provides methods used to render a text with style sheets.
Definition text_renderer.h:33
static void draw_text(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::string &text, const xtd::forms::style_sheets::itext_model &data)
Draws text.
static void draw_shadow_text(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::string &text, const xtd::forms::style_sheets::itext_model &data, const xtd::forms::style_sheets::ibox_model &box)
Draws shadow text.
#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
Contains xtd::forms::style_sheets::ibox_model class.
Contains xtd::forms::style_sheets::itext_model class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10