xtd 1.0.0
Loading...
Searching...
No Matches
button_images.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "images.hpp"
6#include <xtd/static>
7#include <xtd/drawing/system_images>
8
10namespace xtd {
12 namespace forms {
23 class button_images final static_ {
24 public:
26
30 [[nodiscard]] static auto add() -> xtd::drawing::image {return add(xtd::forms::application::style_sheet().theme().name(), size());}
34 [[nodiscard]] static auto add(const xtd::string& theme) -> xtd::drawing::image {return add(theme, size());}
38 [[nodiscard]] static auto add(const xtd::drawing::size& size) -> xtd::drawing::image {return add(xtd::forms::application::style_sheet().theme().name(), size);}
43 [[nodiscard]] static auto add(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "list-add", size);}
44
47 [[nodiscard]] static auto apply() -> xtd::drawing::image {return apply(xtd::forms::application::style_sheet().theme().name(), size());}
51 [[nodiscard]] static auto apply(const xtd::string& theme) -> xtd::drawing::image {return apply(theme, size());}
55 [[nodiscard]] static auto apply(const xtd::drawing::size& size) -> xtd::drawing::image {return apply(xtd::forms::application::style_sheet().theme().name(), size);}
60 [[nodiscard]] static auto apply(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "dialog-ok-apply", size);}
61
64 [[nodiscard]] static auto ok() -> xtd::drawing::image {return ok(xtd::forms::application::style_sheet().theme().name(), size());}
68 [[nodiscard]] static auto ok(const xtd::string& theme) -> xtd::drawing::image {return ok(theme, size());}
72 [[nodiscard]] static auto ok(const xtd::drawing::size& size) -> xtd::drawing::image {return ok(xtd::forms::application::style_sheet().theme().name(), size);}
77 [[nodiscard]] static auto ok(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "dialog-ok", size);}
78
81 [[nodiscard]] static auto cancel() -> xtd::drawing::image {return cancel(xtd::forms::application::style_sheet().theme().name(), size());}
85 [[nodiscard]] static auto cancel(const xtd::string& theme) -> xtd::drawing::image {return cancel(theme, size());}
89 [[nodiscard]] static auto cancel(const xtd::drawing::size& size) -> xtd::drawing::image {return cancel(xtd::forms::application::style_sheet().theme().name(), size);}
94 [[nodiscard]] static auto cancel(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "dialog-cancel", size);}
95
98 [[nodiscard]] static auto next() -> xtd::drawing::image {return next(xtd::forms::application::style_sheet().theme().name(), size());}
102 [[nodiscard]] static auto next(const xtd::string& theme) -> xtd::drawing::image {return next(theme, size());}
106 [[nodiscard]] static auto next(const xtd::drawing::size& size) -> xtd::drawing::image {return next(xtd::forms::application::style_sheet().theme().name(), size);}
111 [[nodiscard]] static auto next(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "go-next", size);}
112
115 [[nodiscard]] static auto no() -> xtd::drawing::image {return no(xtd::forms::application::style_sheet().theme().name(), size());}
119 [[nodiscard]] static auto no(const xtd::string& theme) -> xtd::drawing::image {return no(theme, size());}
123 [[nodiscard]] static auto no(const xtd::drawing::size& size) -> xtd::drawing::image {return no(xtd::forms::application::style_sheet().theme().name(), size);}
128 [[nodiscard]] static auto no(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "dialog-cancel", size);}
129
132 [[nodiscard]] static auto previous() -> xtd::drawing::image {return previous(xtd::forms::application::style_sheet().theme().name(), size());}
136 [[nodiscard]] static auto previous(const xtd::string& theme) -> xtd::drawing::image {return previous(theme, size());}
145 [[nodiscard]] static auto previous(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "go-previous", size);}
146
149 [[nodiscard]] static auto remove() -> xtd::drawing::image {return remove(xtd::forms::application::style_sheet().theme().name(), size());}
153 [[nodiscard]] static auto remove(const xtd::string& theme) -> xtd::drawing::image {return remove(theme, size());}
157 [[nodiscard]] static auto remove(const xtd::drawing::size& size) -> xtd::drawing::image {return remove(xtd::forms::application::style_sheet().theme().name(), size);}
162 [[nodiscard]] static auto remove(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "list-remove", size);}
163
166 [[nodiscard]] static auto yes() -> xtd::drawing::image {return yes(xtd::forms::application::style_sheet().theme().name(), size());}
170 [[nodiscard]] static auto yes(const xtd::string& theme) -> xtd::drawing::image {return yes(theme, size());}
174 [[nodiscard]] static auto yes(const xtd::drawing::size& size) -> xtd::drawing::image {return yes(xtd::forms::application::style_sheet().theme().name(), size);}
179 [[nodiscard]] static auto yes(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "dialog-ok", size);}
180
183 [[nodiscard]] static auto size() -> xtd::drawing::size {return {16, 16};}
185
187
193 [[nodiscard]] static auto from_name(const xtd::string& name) -> xtd::drawing::image {return from_name(name, size());}
200 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name) -> xtd::drawing::image {return from_name(theme, name, size());}
207 [[nodiscard]] static auto from_name(const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(xtd::forms::application::style_sheet().theme().name(), name, size);}
215 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image {return images::from_name(theme, name, size);}
217 };
218 }
219}
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
static auto style_sheet() noexcept -> const xtd::forms::style_sheets::style_sheet &
Gets current xtd::forms::style_sheets::style_sheet style sheet.
Provides a button images factories for use by a button control.
Definition button_images.hpp:23
static auto add(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Add image object with specified theme and size.
Definition button_images.hpp:43
static auto ok() -> xtd::drawing::image
Ok image object.
Definition button_images.hpp:64
static auto previous(const xtd::drawing::size &size) -> xtd::drawing::image
Previous image object with specified size.
Definition button_images.hpp:140
static auto from_name(const xtd::string &theme, const xtd::string &name) -> xtd::drawing::image
Gets image object with specified theme and name.
Definition button_images.hpp:200
static auto from_name(const xtd::string &theme, const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified theme, name and size.
Definition button_images.hpp:215
static auto size() -> xtd::drawing::size
Gets the height and width of the button images.
Definition button_images.hpp:183
static auto ok(const xtd::drawing::size &size) -> xtd::drawing::image
Ok image object with specified size.
Definition button_images.hpp:72
static auto no(const xtd::drawing::size &size) -> xtd::drawing::image
No image object with specified size.
Definition button_images.hpp:123
static auto cancel() -> xtd::drawing::image
Cancel image object.
Definition button_images.hpp:81
static auto yes(const xtd::string &theme) -> xtd::drawing::image
Yes image object with specified theme.
Definition button_images.hpp:170
static auto cancel(const xtd::string &theme) -> xtd::drawing::image
Cancel image object with specified theme.
Definition button_images.hpp:85
static auto from_name(const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified name and size.
Definition button_images.hpp:207
static auto ok(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Ok image object with specified theme and size.
Definition button_images.hpp:77
static auto no(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
No image object with specified theme and size.
Definition button_images.hpp:128
static auto from_name(const xtd::string &name) -> xtd::drawing::image
Gets image object with specified name.
Definition button_images.hpp:193
static auto next(const xtd::drawing::size &size) -> xtd::drawing::image
Next image object with specified size.
Definition button_images.hpp:106
static auto remove() -> xtd::drawing::image
Remove image object.
Definition button_images.hpp:149
static auto add(const xtd::drawing::size &size) -> xtd::drawing::image
Add image object with specified size.
Definition button_images.hpp:38
static auto previous(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Previous image object with specified theme and size.
Definition button_images.hpp:145
static auto next() -> xtd::drawing::image
Next image object.
Definition button_images.hpp:98
static auto apply(const xtd::string &theme) -> xtd::drawing::image
Apply image object with specified theme.
Definition button_images.hpp:51
static auto no(const xtd::string &theme) -> xtd::drawing::image
No image object with specified theme.
Definition button_images.hpp:119
static auto yes() -> xtd::drawing::image
Yes image object.
Definition button_images.hpp:166
static auto yes(const xtd::drawing::size &size) -> xtd::drawing::image
Yes image object with specified size.
Definition button_images.hpp:174
static auto previous(const xtd::string &theme) -> xtd::drawing::image
Previous image object with specified theme.
Definition button_images.hpp:136
static auto add() -> xtd::drawing::image
Add image object.
Definition button_images.hpp:30
static auto yes(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Yes image object with specified theme and size.
Definition button_images.hpp:179
static auto previous() -> xtd::drawing::image
Previous image object.
Definition button_images.hpp:132
static auto remove(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Remove image object with specified theme and size.
Definition button_images.hpp:162
static auto apply(const xtd::drawing::size &size) -> xtd::drawing::image
Apply image object with specified size.
Definition button_images.hpp:55
static auto apply(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Apply image object with specified theme and size.
Definition button_images.hpp:60
static auto add(const xtd::string &theme) -> xtd::drawing::image
Add image object with specified theme.
Definition button_images.hpp:34
static auto next(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Next image object with specified theme and size.
Definition button_images.hpp:111
static auto cancel(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Cancel image object with specified theme and size.
Definition button_images.hpp:94
static auto remove(const xtd::drawing::size &size) -> xtd::drawing::image
Remove image object with specified size.
Definition button_images.hpp:157
static auto remove(const xtd::string &theme) -> xtd::drawing::image
Remove image object with specified theme.
Definition button_images.hpp:153
static auto cancel(const xtd::drawing::size &size) -> xtd::drawing::image
Cancel image object with specified size.
Definition button_images.hpp:89
static auto ok(const xtd::string &theme) -> xtd::drawing::image
Ok image object with specified theme.
Definition button_images.hpp:68
static auto apply() -> xtd::drawing::image
Apply image object.
Definition button_images.hpp:47
static auto no() -> xtd::drawing::image
No image object.
Definition button_images.hpp:115
static auto next(const xtd::string &theme) -> xtd::drawing::image
Next image object with specified theme.
Definition button_images.hpp:102
static auto from_name(const xtd::string &name) -> xtd::drawing::image
Gets image object with specified name.
Definition images.hpp:1269
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
@ theme
Defines a 3D themed border. The effect depends on the border color value.
Definition border_style.hpp:38
Contains xtd::forms::images factory.
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
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32