xtd 0.2.0
Loading...
Searching...
No Matches
label_renderer.h
Go to the documentation of this file.
1
4#pragma once
7#include "content_alignment.h"
8#include "border_sides.h"
9#include "border_style.h"
10#include "link_behavior.h"
11#include "link.h"
12#include "box_renderer.h"
13#include "shadow.h"
14#include <xtd/drawing/graphics>
15#include <xtd/static>
16#include <xtd/string>
17
19namespace xtd {
21 namespace forms {
38 public:
40
59 static void draw_label(const xtd::forms::style_sheets::style_sheet& style_sheet, xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, xtd::forms::visual_styles::label_state label_state, const std::optional<xtd::drawing::color>& back_color, const xtd::string& text, const std::optional<xtd::forms::content_alignment>& text_align, const std::optional<xtd::drawing::color>& fore_color, const std::optional<xtd::drawing::font>& font, const xtd::drawing::image& image, const std::optional<xtd::forms::content_alignment>& image_align, const std::optional<xtd::forms::border_style>& border, xtd::forms::border_sides sides, const std::vector<xtd::forms::shadow>& shadows, bool auto_ellipsis);
77 static void draw_link_label(const xtd::forms::style_sheets::style_sheet& style_sheet, xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, xtd::forms::visual_styles::link_label_state link_label_state, const std::optional<xtd::drawing::color>& back_color, const xtd::string& text, const std::vector<xtd::forms::link>& links, const std::optional<xtd::forms::content_alignment>& text_align, const std::optional<xtd::drawing::color>& fore_color, const std::optional<xtd::drawing::color>& link_color, const std::optional<xtd::drawing::color>& visited_link_color, const std::optional<xtd::drawing::font>& font, xtd::forms::link_behavior link_behavior, const xtd::drawing::image& image, const std::optional<xtd::forms::content_alignment>& image_align, const std::optional<xtd::forms::border_style>& border, xtd::forms::border_sides sides, const std::vector<xtd::forms::shadow>& shadows, bool auto_ellipsis);
79 };
80 }
81}
Contains xtd::forms::border_sides enum class.
Contains xtd::forms::box_renderer static class.
Represents text as a sequence of character units.
Definition basic_string.h:79
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Provides label control renderer methods.
Definition label_renderer.h:37
static void draw_label(const xtd::forms::style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::label_state label_state, const std::optional< xtd::drawing::color > &back_color, const xtd::string &text, const std::optional< xtd::forms::content_alignment > &text_align, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::font > &font, const xtd::drawing::image &image, const std::optional< xtd::forms::content_alignment > &image_align, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides, const std::vector< xtd::forms::shadow > &shadows, bool auto_ellipsis)
Draws a box in the specified bounds, label style, label state and background color.
static void draw_link_label(const xtd::forms::style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::link_label_state link_label_state, const std::optional< xtd::drawing::color > &back_color, const xtd::string &text, const std::vector< xtd::forms::link > &links, const std::optional< xtd::forms::content_alignment > &text_align, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::color > &link_color, const std::optional< xtd::drawing::color > &visited_link_color, const std::optional< xtd::drawing::font > &font, xtd::forms::link_behavior link_behavior, const xtd::drawing::image &image, const std::optional< xtd::forms::content_alignment > &image_align, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides, const std::vector< xtd::forms::shadow > &shadows, bool auto_ellipsis)
Draws a box in the specified bounds, label style, label state and background color.
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition style_sheet.h:64
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
border_sides
Specifies how a control anchors to the edges of its container.
Definition border_sides.h:23
control_state
Specifies the visual state of a control that is drawn with visual styles.
Definition control_state.h:24
std::vector< xtd::forms::shadow > shadows
Represents an xtd::forms::shadow array.
Definition shadows.h:22
link_behavior
Specifies the behaviors of a link in a xtd::forms::link_label.
Definition link_behavior.h:22
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
Contains xtd::forms::visual_styles::label_state enum 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
Contains xtd::forms::style_sheets::border_style class.
Contains xtd::forms::style_sheets::shadow class.
Contains xtd::forms::content_alignment enum class.