xtd 0.2.0
Loading...
Searching...
No Matches
button_images.h
Go to the documentation of this file.
1
4#pragma once
5#include "images.h"
6#include <xtd/static>
7#include <xtd/drawing/system_images>
8
10namespace xtd {
12 namespace forms {
21 class button_images final static_ {
22 public:
24
32 static xtd::drawing::image add(const xtd::ustring& theme) {return add(theme, size());}
41 static xtd::drawing::image add(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "list-add", size);}
42
58 static xtd::drawing::image apply(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok-apply", size);}
59
66 static xtd::drawing::image ok(const xtd::ustring& theme) {return ok(theme, size());}
75 static xtd::drawing::image ok(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
76
92 static xtd::drawing::image cancel(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
93
110
117 static xtd::drawing::image no(const xtd::ustring& theme) {return no(theme, size());}
126 static xtd::drawing::image no(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
127
143 static xtd::drawing::image previous(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
144
160 static xtd::drawing::image remove(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "list-remove", size);}
161
177 static xtd::drawing::image yes(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
178
181 static xtd::drawing::size size() {return {16, 16};}
183
185
191 static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
198 static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
215 };
216 }
217}
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
static const xtd::forms::style_sheets::style_sheet & style_sheet() noexcept
Gets current xtd::forms::style_sheets::style_sheet style sheet.
Provides a button images factories for use by a button control.
Definition button_images.h:21
static xtd::drawing::image remove(const xtd::ustring &theme)
Remove image object with specified theme.
Definition button_images.h:151
static xtd::drawing::image cancel()
Cancel image object.
Definition button_images.h:79
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:213
static xtd::drawing::image remove(const xtd::ustring &theme, const xtd::drawing::size &size)
Remove image object with specified theme and size.
Definition button_images.h:160
static xtd::drawing::image cancel(const xtd::ustring &theme)
Cancel image object with specified theme.
Definition button_images.h:83
static xtd::drawing::image next()
Next image object.
Definition button_images.h:96
static xtd::drawing::image ok()
Ok image object.
Definition button_images.h:62
static xtd::drawing::image ok(const xtd::ustring &theme)
Ok image object with specified theme.
Definition button_images.h:66
static xtd::drawing::image remove(const xtd::drawing::size &size)
Remove image object with specified size.
Definition button_images.h:155
static xtd::drawing::image next(const xtd::drawing::size &size)
Next image object with specified size.
Definition button_images.h:104
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:41
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 previous(const xtd::ustring &theme, const xtd::drawing::size &size)
Previous image object with specified theme and size.
Definition button_images.h:143
static xtd::drawing::image previous()
Previous image object.
Definition button_images.h:130
static xtd::drawing::image cancel(const xtd::drawing::size &size)
Cancel image object with specified size.
Definition button_images.h:87
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:198
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 yes(const xtd::ustring &theme)
Yes image object with specified theme.
Definition button_images.h:168
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:92
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:177
static xtd::drawing::image previous(const xtd::drawing::size &size)
Previous image object with specified size.
Definition button_images.h:138
static xtd::drawing::image yes(const xtd::drawing::size &size)
Yes image object with specified size.
Definition button_images.h:172
static xtd::drawing::image next(const xtd::ustring &theme)
Next image object with specified theme.
Definition button_images.h:100
static xtd::drawing::image add()
Add image object.
Definition button_images.h:28
static xtd::drawing::image no()
No image object.
Definition button_images.h:113
static xtd::drawing::image add(const xtd::drawing::size &size)
Add image object with specified size.
Definition button_images.h:36
static xtd::drawing::image ok(const xtd::drawing::size &size)
Ok image object with specified size.
Definition button_images.h:70
static xtd::drawing::image add(const xtd::ustring &theme)
Add image object with specified theme.
Definition button_images.h:32
static xtd::drawing::image no(const xtd::ustring &theme)
No image object with specified theme.
Definition button_images.h:117
static xtd::drawing::image previous(const xtd::ustring &theme)
Previous image object with specified theme.
Definition button_images.h:134
static xtd::drawing::image no(const xtd::drawing::size &size)
No image object with specified size.
Definition button_images.h:121
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:205
static xtd::drawing::image remove()
Remove image object.
Definition button_images.h:147
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition button_images.h:181
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:109
static xtd::drawing::image apply()
Apply image object.
Definition button_images.h:45
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition button_images.h:191
static xtd::drawing::image yes()
Yes image object.
Definition button_images.h:164
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:126
static xtd::drawing::image apply(const xtd::ustring &theme)
Apply image object with specified theme.
Definition button_images.h:49
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:75
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition images.h:1266
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
size_t size
Represents a size of any object in bytes.
Definition types.h:197
@ theme
Defines a 3D themed border. The effect depends on the border color value.
Contains xtd::forms::images factory.
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