xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
button_images.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/static.h>
7 #include "theme_images.h"
8 
10 namespace xtd {
12  namespace forms {
19  class button_images final static_ {
20  public:
23  static xtd::drawing::image add() {return add(xtd::forms::theme_images::current_theme(), size());}
27  static xtd::drawing::image add(const xtd::ustring& theme) {return add(theme, size());}
31  static xtd::drawing::image add(const xtd::drawing::size& size) {return add(xtd::forms::theme_images::current_theme(), size);}
36  static xtd::drawing::image add(const xtd::ustring& theme, const xtd::drawing::size& size) {return add(xtd::forms::theme_images::theme_from_name(theme), size);}
41  static xtd::drawing::image add(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "list-add", size);}
42 
45  static xtd::drawing::image apply() {return apply(xtd::forms::theme_images::current_theme(), size());}
49  static xtd::drawing::image apply(const xtd::ustring& theme) {return apply(theme, size());}
53  static xtd::drawing::image apply(const xtd::drawing::size& size) {return apply(xtd::forms::theme_images::current_theme(), size);}
58  static xtd::drawing::image apply(const xtd::ustring& theme, const xtd::drawing::size& size) {return apply(xtd::forms::theme_images::theme_from_name(theme), size);}
63  static xtd::drawing::image apply(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok-apply", size);}
64 
67  static xtd::drawing::image ok() {return ok(xtd::forms::theme_images::current_theme(), size());}
71  static xtd::drawing::image ok(const xtd::ustring& theme) {return ok(theme, size());}
75  static xtd::drawing::image ok(const xtd::drawing::size& size) {return ok(xtd::forms::theme_images::current_theme(), size);}
80  static xtd::drawing::image ok(const xtd::ustring& theme, const xtd::drawing::size& size) {return ok(xtd::forms::theme_images::theme_from_name(theme), size);}
85  static xtd::drawing::image ok(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
86 
89  static xtd::drawing::image cancel() {return cancel(xtd::forms::theme_images::current_theme(), size());}
93  static xtd::drawing::image cancel(const xtd::ustring& theme) {return cancel(theme, size());}
97  static xtd::drawing::image cancel(const xtd::drawing::size& size) {return cancel(xtd::forms::theme_images::current_theme(), size);}
102  static xtd::drawing::image cancel(const xtd::ustring& theme, const xtd::drawing::size& size) {return cancel(xtd::forms::theme_images::theme_from_name(theme), size);}
107  static xtd::drawing::image cancel(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
108 
111  static xtd::drawing::image next() {return next(xtd::forms::theme_images::current_theme(), size());}
115  static xtd::drawing::image next(const xtd::ustring& theme) {return next(theme, size());}
119  static xtd::drawing::image next(const xtd::drawing::size& size) {return next(xtd::forms::theme_images::current_theme(), size);}
124  static xtd::drawing::image next(const xtd::ustring& theme, const xtd::drawing::size& size) {return next(xtd::forms::theme_images::theme_from_name(theme), size);}
129  static xtd::drawing::image next(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
130 
133  static xtd::drawing::image no() {return no(xtd::forms::theme_images::current_theme(), size());}
137  static xtd::drawing::image no(const xtd::ustring& theme) {return no(theme, size());}
141  static xtd::drawing::image no(const xtd::drawing::size& size) {return no(xtd::forms::theme_images::current_theme(), size);}
146  static xtd::drawing::image no(const xtd::ustring& theme, const xtd::drawing::size& size) {return no(xtd::forms::theme_images::theme_from_name(theme), size);}
151  static xtd::drawing::image no(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
152 
155  static xtd::drawing::image previous() {return previous(xtd::forms::theme_images::current_theme(), size());}
159  static xtd::drawing::image previous(const xtd::ustring& theme) {return previous(theme, size());}
163  static xtd::drawing::image previous(const xtd::drawing::size& size) {return previous(xtd::forms::theme_images::current_theme(), size);}
168  static xtd::drawing::image previous(const xtd::ustring& theme, const xtd::drawing::size& size) {return previous(xtd::forms::theme_images::theme_from_name(theme), size);}
173  static xtd::drawing::image previous(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
174 
177  static xtd::drawing::image remove() {return remove(xtd::forms::theme_images::current_theme(), size());}
181  static xtd::drawing::image remove(const xtd::ustring& theme) {return remove(theme, size());}
185  static xtd::drawing::image remove(const xtd::drawing::size& size) {return remove(xtd::forms::theme_images::current_theme(), size);}
190  static xtd::drawing::image remove(const xtd::ustring& theme, const xtd::drawing::size& size) {return remove(xtd::forms::theme_images::theme_from_name(theme), size);}
195  static xtd::drawing::image remove(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "list-remove", size);}
196 
199  static xtd::drawing::image yes() {return yes(xtd::forms::theme_images::current_theme(), size());}
203  static xtd::drawing::image yes(const xtd::ustring& theme) {return yes(theme, size());}
207  static xtd::drawing::image yes(const xtd::drawing::size& size) {return yes(xtd::forms::theme_images::current_theme(), size);}
212  static xtd::drawing::image yes(const xtd::ustring& theme, const xtd::drawing::size& size) {return yes(xtd::forms::theme_images::theme_from_name(theme), size);}
217  static xtd::drawing::image yes(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
218 
221  static xtd::drawing::size size() {return {16, 16};}
222 
227  static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
234  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
241  static xtd::drawing::image from_name(const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::current_theme(), name, size);}
249  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::theme_from_name(theme), name, size);}
257  static xtd::drawing::image from_name(const xtd::forms::theme_images& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return theme.from_name(name, size);}
258  };
259  }
260 }
Contains xtd::static_object class.
static xtd::drawing::image ok(const xtd::ustring &theme)
Ok image object with specified theme.
Definition: button_images.h:71
static xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name)
Gets image object with specified theme and name.
Definition: button_images.h:234
static xtd::drawing::image no(const xtd::ustring &theme, const xtd::drawing::size &size)
No image object with specified theme and size.
Definition: button_images.h:146
static xtd::drawing::image from_name(const xtd::forms::theme_images &theme, const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
Definition: button_images.h:257
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:38
static xtd::drawing::image yes(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Yes image object with specified theme images and size.
Definition: button_images.h:217
static xtd::drawing::image no(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
No image object with specified theme images and size.
Definition: button_images.h:151
static xtd::drawing::image previous()
Previous image object.
Definition: button_images.h:155
static xtd::drawing::image ok()
Ok image object.
Definition: button_images.h:67
static xtd::drawing::image next(const xtd::ustring &theme, const xtd::drawing::size &size)
Next image object with specified theme and size.
Definition: button_images.h:124
static xtd::drawing::image yes(const xtd::drawing::size &size)
Yes image object with specified size.
Definition: button_images.h:207
static xtd::drawing::image apply(const xtd::ustring &theme)
Apply image object with specified theme.
Definition: button_images.h:49
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static xtd::drawing::image next()
Next image object.
Definition: button_images.h:111
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition: button_images.h:221
Definition: theme_images.h:14
static xtd::drawing::image ok(const xtd::ustring &theme, const xtd::drawing::size &size)
Ok image object with specified theme and size.
Definition: button_images.h:80
static xtd::drawing::image yes(const xtd::ustring &theme)
Yes image object with specified theme.
Definition: button_images.h:203
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
static xtd::drawing::image cancel()
Cancel image object.
Definition: button_images.h:89
Definition: theme.h:14
static xtd::drawing::image no(const xtd::ustring &theme)
No image object with specified theme.
Definition: button_images.h:137
static xtd::drawing::image no(const xtd::drawing::size &size)
No image object with specified size.
Definition: button_images.h:141
static xtd::drawing::image apply(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Apply image object with specified theme images and size.
Definition: button_images.h:63
static xtd::drawing::image apply()
Apply image object.
Definition: button_images.h:45
static xtd::drawing::image apply(const xtd::ustring &theme, const xtd::drawing::size &size)
Apply image object with specified theme and size.
Definition: button_images.h:58
static xtd::drawing::image yes()
Yes image object.
Definition: button_images.h:199
static xtd::drawing::image add()
Add image object.
Definition: button_images.h:23
static xtd::drawing::image ok(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Ok image object with specified theme images and size.
Definition: button_images.h:85
static xtd::drawing::image ok(const xtd::drawing::size &size)
Ok image object with specified size.
Definition: button_images.h:75
static xtd::drawing::image add(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Add image object with specified theme images and size.
Definition: button_images.h:41
static xtd::drawing::image previous(const xtd::ustring &theme, const xtd::drawing::size &size)
Previous image object with specified theme and size.
Definition: button_images.h:168
static xtd::drawing::image from_name(const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
Definition: button_images.h:241
static xtd::drawing::image next(const xtd::ustring &theme)
Next image object with specified theme.
Definition: button_images.h:115
static xtd::drawing::image previous(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Previous image object with specified theme images and size.
Definition: button_images.h:173
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:34
static xtd::drawing::image cancel(const xtd::ustring &theme, const xtd::drawing::size &size)
Cancel image object with specified theme and size.
Definition: button_images.h:102
static xtd::drawing::image no()
No image object.
Definition: button_images.h:133
static xtd::drawing::image cancel(const xtd::drawing::size &size)
Cancel image object with specified size.
Definition: button_images.h:97
static xtd::drawing::image add(const xtd::ustring &theme)
Add image object with specified theme.
Definition: button_images.h:27
static xtd::drawing::image add(const xtd::ustring &theme, const xtd::drawing::size &size)
Add image object with specified theme and size.
Definition: button_images.h:36
static xtd::drawing::image add(const xtd::drawing::size &size)
Add image object with specified size.
Definition: button_images.h:31
static xtd::drawing::image next(const xtd::drawing::size &size)
Next image object with specified size.
Definition: button_images.h:119
static xtd::drawing::image yes(const xtd::ustring &theme, const xtd::drawing::size &size)
Yes image object with specified theme and size.
Definition: button_images.h:212
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static xtd::drawing::image previous(const xtd::ustring &theme)
Previous image object with specified theme.
Definition: button_images.h:159
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: button_images.h:227
Provides a button images factories for use by a button control.
Definition: button_images.h:19
static xtd::drawing::image cancel(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Cancel image object with specified theme images and size.
Definition: button_images.h:107
static xtd::drawing::image previous(const xtd::drawing::size &size)
Previous image object with specified size.
Definition: button_images.h:163
Contains xtd::drawing::system_images factory.
static xtd::drawing::image cancel(const xtd::ustring &theme)
Cancel image object with specified theme.
Definition: button_images.h:93
static xtd::drawing::image next(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Next image object with specified theme images and size.
Definition: button_images.h:129
static xtd::drawing::image apply(const xtd::drawing::size &size)
Apply image object with specified size.
Definition: button_images.h:53
static xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
Definition: button_images.h:249
size_t size
Represents a size of any object in bytes.
Definition: types.h:171
Contains xtd::forms::theme_images class.