xtd 1.0.0
Loading...
Searching...
No Matches
ibox_model.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../padding.hpp"
6#include "border_color.hpp"
7#include "border_radius.hpp"
8#include "border_style.hpp"
9#include "border_width.hpp"
10#include "background_image.hpp"
11#include "margin.hpp"
12#include "outline_color.hpp"
13#include "outline_offset.hpp"
14#include "outline_radius.hpp"
15#include "outline_style.hpp"
16#include "outline_width.hpp"
17#include "padding.hpp"
18#include <xtd/iequatable>
19#include <xtd/interface>
20#include <array>
21
23namespace xtd {
25 namespace forms {
27 namespace style_sheets {
46 public:
48
53 [[nodiscard]] virtual auto background_color() const noexcept -> const xtd::drawing::color& = 0;
54
58 [[nodiscard]] virtual auto background_image() const noexcept -> const xtd::forms::style_sheets::background_image& = 0;
59
63 [[nodiscard]] virtual auto border_color() const noexcept -> const xtd::forms::style_sheets::border_color& = 0;
64
68 [[nodiscard]] virtual auto border_radius() const noexcept -> xtd::forms::style_sheets::border_radius = 0;
69
73 [[nodiscard]] virtual auto border_style() const noexcept -> xtd::forms::style_sheets::border_style = 0;
74
78 [[nodiscard]] virtual auto border_width() const noexcept -> xtd::forms::style_sheets::border_width = 0;
79
84 [[nodiscard]] virtual auto height() const noexcept -> std::optional<xtd::forms::style_sheets::length> = 0;
85
91 [[nodiscard]] virtual auto margin() const noexcept -> const xtd::forms::style_sheets::margin& = 0;
92
96 [[nodiscard]] virtual auto outline_color() const noexcept -> const xtd::forms::style_sheets::outline_color& = 0;
97
101 [[nodiscard]] virtual auto outline_offset() const noexcept -> xtd::forms::style_sheets::outline_offset = 0;
102
106 [[nodiscard]] virtual auto outline_radius() const noexcept -> xtd::forms::style_sheets::outline_radius = 0;
107
111 [[nodiscard]] virtual auto outline_style() const noexcept -> xtd::forms::style_sheets::outline_style = 0;
112
116 [[nodiscard]] virtual auto outline_width() const noexcept -> xtd::forms::style_sheets::outline_width = 0;
117
122 [[nodiscard]] virtual auto padding() const noexcept -> const xtd::forms::style_sheets::padding& = 0;
123
128 [[nodiscard]] virtual auto width() const noexcept -> std::optional<xtd::forms::style_sheets::length> = 0;
130
132
138 [[nodiscard]] virtual auto get_border_rectangle(const xtd::drawing::rectangle& bounds) const noexcept -> xtd::drawing::rectangle = 0;
139
145 [[nodiscard]] virtual auto get_fill_rectangle(const xtd::drawing::rectangle& bounds) const noexcept -> xtd::drawing::rectangle = 0;
146
151 [[nodiscard]] virtual auto get_outline_rectangle(const xtd::drawing::rectangle& bounds) const noexcept -> xtd::drawing::rectangle = 0;
152
158 [[nodiscard]] virtual auto get_content_rectangle(const xtd::drawing::rectangle& bounds) const noexcept -> xtd::drawing::rectangle = 0;
160 };
161 }
162 }
163}
Contains xtd::forms::style_sheets::background_image class.
Contains xtd::forms::style_sheets::border_color class.
Contains xtd::forms::style_sheets::border_radius class.
Contains xtd::forms::style_sheets::border_width class.
The box model allows you to specify the margin, borders, padding, background color,...
Definition ibox_model.hpp:45
virtual auto get_content_rectangle(const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle=0
Gets the computed content rectangle from specified bounds.
virtual auto outline_width() const noexcept -> xtd::forms::style_sheets::outline_width=0
Gets the width specifies the width of the outlines.
virtual auto padding() const noexcept -> const xtd::forms::style_sheets::padding &=0
Gets the area area around the content.
virtual auto get_fill_rectangle(const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle=0
Gets the computed fill rectangle from specified bounds.
virtual auto outline_radius() const noexcept -> xtd::forms::style_sheets::outline_radius=0
Gets the radius is used to add rounded outline to an element.
virtual auto outline_color() const noexcept -> const xtd::forms::style_sheets::outline_color &=0
Gets the color is used to set the color of the outlines.
virtual auto border_width() const noexcept -> xtd::forms::style_sheets::border_width=0
Gets the width specifies the width of the borders.
virtual auto outline_style() const noexcept -> xtd::forms::style_sheets::outline_style=0
Gets the style specifies what kind of outlines to display.
virtual auto get_border_rectangle(const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle=0
Gets the computed boder rectangle from specified bounds.
virtual auto border_radius() const noexcept -> xtd::forms::style_sheets::border_radius=0
Gets the radius is used to add rounded borders to an element.
virtual auto height() const noexcept -> std::optional< xtd::forms::style_sheets::length >=0
Gets the height of the box.
virtual auto background_image() const noexcept -> const xtd::forms::style_sheets::background_image &=0
Gets the background image is used to add background effects to the box.
virtual auto margin() const noexcept -> const xtd::forms::style_sheets::margin &=0
Gets the area outside the border.
virtual auto border_color() const noexcept -> const xtd::forms::style_sheets::border_color &=0
Gets the color is used to set the color of the borders.
virtual auto outline_offset() const noexcept -> xtd::forms::style_sheets::outline_offset=0
Gets the ofset specifies the width of the outlines.
virtual auto border_style() const noexcept -> xtd::forms::style_sheets::border_style=0
Gets the style specifies what kind of borders to display.
virtual auto width() const noexcept -> std::optional< xtd::forms::style_sheets::length >=0
Gets the width of the box.
virtual auto background_color() const noexcept -> const xtd::drawing::color &=0
Gets the background color is used to add background effects to the box.
virtual auto get_outline_rectangle(const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle=0
Gets the computed outline rectangle from specified bounds.
The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::form...
Definition length.hpp:77
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:26
Contains xtd::forms::style_sheets::margin alias.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms::style_sheets namespace contains various properties, states, and subcontrols that make...
Definition background_image.hpp:21
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::forms::style_sheets::outline_color alias.
Contains xtd::forms::style_sheets::outline_offset class.
Contains xtd::forms::style_sheets::outline_radius alias.
Contains xtd::forms::style_sheets::outline_style alias.
Contains xtd::forms::style_sheets::outline_width alias.
Contains xtd::forms::padding class.
Contains xtd::forms::style_sheets::border_style class.
Contains xtd::forms::style_sheets::padding alias.