xtd 0.2.0
itext_model.h
Go to the documentation of this file.
1 #pragma once
5 #include "shadows.h"
6 #include "text_decoration.h"
7 #include "text_transformation.h"
8 #include "white_space.h"
9 #include <xtd/drawing/color>
10 #include <xtd/drawing/font>
11 #include <xtd/drawing/string_format>
12 #include <xtd/drawing/system_fonts>
13 #include <xtd/forms/content_alignment>
14 #include <xtd/interface>
15 #include <xtd/ustring>
16 #include <memory>
17 
19 namespace xtd {
21  namespace forms {
23  namespace style_sheets {
39  public:
41 
45  virtual bool auto_ellipsis() const noexcept = 0;
46 
49  virtual xtd::forms::content_alignment text_alignment() const noexcept = 0;
50 
53  virtual const xtd::drawing::color& color() const noexcept = 0;
54 
57  virtual xtd::forms::style_sheets::text_decoration decoration() const noexcept = 0;
58 
61  virtual const xtd::drawing::font& font() const noexcept = 0;
62 
65  virtual xtd::forms::style_sheets::shadows shadows() const noexcept = 0;
66 
70 
73  virtual xtd::forms::style_sheets::white_space white_space() const noexcept = 0;
75 
77 
81  virtual xtd::drawing::string_format make_string_format() const noexcept = 0;
83  };
84  }
85  }
86 }
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Definition: font.h:45
std::vector< xtd::forms::style_sheets::shadow > shadows
Represents an xtd::forms::style_sheets::shadow array.
Definition: shadows.h:22
virtual bool auto_ellipsis() const noexcept=0
Gets a value indicating whether the ellipsis character (...) appears at the right edge of the control...
virtual xtd::forms::style_sheets::text_decoration decoration() const noexcept=0
Gets the decoration of the text.
white_space
The white_space enum class specifies how white-space inside an element is handled.
Definition: white_space.h:21
virtual xtd::forms::style_sheets::white_space white_space() const noexcept=0
Gets how white-space inside an element is handled.
virtual const xtd::drawing::color & color() const noexcept=0
Gets the color is used to add foreground effects to the text.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::style_sheets::text_transformation enum class.
Contains xtd::forms::style_sheets::white_space enum class.
virtual const xtd::drawing::font & font() const noexcept=0
Gets the font of the text.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
virtual xtd::forms::style_sheets::shadows shadows() const noexcept=0
Gets an xtd::forms::style_sheets::shadow array used to draw shadows under the text.
content_alignment
Specifies alignment of content on the drawing surface.
Definition: content_alignment.h:19
virtual xtd::forms::content_alignment text_alignment() const noexcept=0
Gets the alignment of the text.
Contains xtd::forms::style_sheets::shadows typedef.
virtual xtd::forms::style_sheets::text_transformation transformation() const noexcept=0
Gets the transformation of the text.
#define interface_
This keyword is use to represent an interface.
Definition: interface.h:54
text_transformation
The xtd::forms::style_sheets::text_transformation enum class is used to specify uppercase and lowerca...
Definition: text_transformation.h:22
virtual xtd::drawing::string_format make_string_format() const noexcept=0
Gets the string format of the text.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The text model allows you to specify the alignment, color, decoration, transformation, and font of a text.
Definition: itext_model.h:38
Contains xtd::forms::style_sheets::text_decoration enum class.
text_decoration
The xtd::forms::style_sheets::text_decoration enum class is used to set or remove decorations from te...
Definition: text_decoration.h:23
Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulat...
Definition: string_format.h:30