xtd 0.2.0
Loading...
Searching...
No Matches
text_renderer.hpp
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.hpp:79
Represents a boxed object.
Definition box.hpp:53
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
The box model allows you to specify the margin, borders, padding, background color,...
Definition ibox_model.hpp:45
The text model allows you to specify the alignment, color, decoration, transformation,...
Definition itext_model.hpp:40
Provides methods used to render a text with style sheets.
Definition text_renderer.hpp: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.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp: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.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10