xtd 0.2.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
34 static xtd::drawing::image add(const xtd::string& theme) {return add(theme, size());}
43 static xtd::drawing::image add(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "list-add", size);}
44
60 static xtd::drawing::image apply(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok-apply", size);}
61
68 static xtd::drawing::image ok(const xtd::string& theme) {return ok(theme, size());}
77 static xtd::drawing::image ok(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
78
94 static xtd::drawing::image cancel(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
95
112
119 static xtd::drawing::image no(const xtd::string& theme) {return no(theme, size());}
128 static xtd::drawing::image no(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
129
145 static xtd::drawing::image previous(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
146
162 static xtd::drawing::image remove(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "list-remove", size);}
163
170 static xtd::drawing::image yes(const xtd::string& theme) {return yes(theme, size());}
179 static xtd::drawing::image yes(const xtd::string& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
180
183 static xtd::drawing::size size() {return {16, 16};}
185
187
193 static xtd::drawing::image from_name(const xtd::string& name) {return from_name(name, size());}
200 static xtd::drawing::image from_name(const xtd::string& theme, const xtd::string& name) {return from_name(theme, name, size());}
217 };
218 }
219}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp: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.hpp:23
static xtd::drawing::image cancel()
Cancel image object.
Definition button_images.hpp:81
static xtd::drawing::image previous(const xtd::string &theme, const xtd::drawing::size &size)
Previous image object with specified theme and size.
Definition button_images.hpp:145
static xtd::drawing::image next()
Next image object.
Definition button_images.hpp:98
static xtd::drawing::image from_name(const xtd::string &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
Definition button_images.hpp:207
static xtd::drawing::image ok()
Ok image object.
Definition button_images.hpp:64
static xtd::drawing::image from_name(const xtd::string &theme, const xtd::string &name)
Gets image object with specified theme and name.
Definition button_images.hpp:200
static xtd::drawing::image remove(const xtd::drawing::size &size)
Remove image object with specified size.
Definition button_images.hpp:157
static xtd::drawing::image next(const xtd::drawing::size &size)
Next image object with specified size.
Definition button_images.hpp:106
static xtd::drawing::image previous()
Previous image object.
Definition button_images.hpp:132
static xtd::drawing::image cancel(const xtd::drawing::size &size)
Cancel image object with specified size.
Definition button_images.hpp:89
static xtd::drawing::image cancel(const xtd::string &theme, const xtd::drawing::size &size)
Cancel image object with specified theme and size.
Definition button_images.hpp:94
static xtd::drawing::image apply(const xtd::drawing::size &size)
Apply image object with specified size.
Definition button_images.hpp:55
static xtd::drawing::image previous(const xtd::drawing::size &size)
Previous image object with specified size.
Definition button_images.hpp:140
static xtd::drawing::image yes(const xtd::drawing::size &size)
Yes image object with specified size.
Definition button_images.hpp:174
static xtd::drawing::image yes(const xtd::string &theme)
Yes image object with specified theme.
Definition button_images.hpp:170
static xtd::drawing::image ok(const xtd::string &theme, const xtd::drawing::size &size)
Ok image object with specified theme and size.
Definition button_images.hpp:77
static xtd::drawing::image cancel(const xtd::string &theme)
Cancel image object with specified theme.
Definition button_images.hpp:85
static xtd::drawing::image add()
Add image object.
Definition button_images.hpp:30
static xtd::drawing::image previous(const xtd::string &theme)
Previous image object with specified theme.
Definition button_images.hpp:136
static xtd::drawing::image apply(const xtd::string &theme)
Apply image object with specified theme.
Definition button_images.hpp:51
static xtd::drawing::image no()
No image object.
Definition button_images.hpp:115
static xtd::drawing::image add(const xtd::string &theme)
Add image object with specified theme.
Definition button_images.hpp:34
static xtd::drawing::image add(const xtd::drawing::size &size)
Add image object with specified size.
Definition button_images.hpp:38
static xtd::drawing::image ok(const xtd::drawing::size &size)
Ok image object with specified size.
Definition button_images.hpp:72
static xtd::drawing::image ok(const xtd::string &theme)
Ok image object with specified theme.
Definition button_images.hpp:68
static xtd::drawing::image next(const xtd::string &theme, const xtd::drawing::size &size)
Next image object with specified theme and size.
Definition button_images.hpp:111
static xtd::drawing::image no(const xtd::drawing::size &size)
No image object with specified size.
Definition button_images.hpp:123
static xtd::drawing::image remove(const xtd::string &theme)
Remove image object with specified theme.
Definition button_images.hpp:153
static xtd::drawing::image add(const xtd::string &theme, const xtd::drawing::size &size)
Add image object with specified theme and size.
Definition button_images.hpp:43
static xtd::drawing::image remove()
Remove image object.
Definition button_images.hpp:149
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition button_images.hpp:183
static xtd::drawing::image next(const xtd::string &theme)
Next image object with specified theme.
Definition button_images.hpp:102
static xtd::drawing::image remove(const xtd::string &theme, const xtd::drawing::size &size)
Remove image object with specified theme and size.
Definition button_images.hpp:162
static xtd::drawing::image from_name(const xtd::string &theme, const xtd::string &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
Definition button_images.hpp:215
static xtd::drawing::image no(const xtd::string &theme)
No image object with specified theme.
Definition button_images.hpp:119
static xtd::drawing::image no(const xtd::string &theme, const xtd::drawing::size &size)
No image object with specified theme and size.
Definition button_images.hpp:128
static xtd::drawing::image apply()
Apply image object.
Definition button_images.hpp:47
static xtd::drawing::image apply(const xtd::string &theme, const xtd::drawing::size &size)
Apply image object with specified theme and size.
Definition button_images.hpp:60
static xtd::drawing::image yes()
Yes image object.
Definition button_images.hpp:166
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition button_images.hpp:193
static xtd::drawing::image yes(const xtd::string &theme, const xtd::drawing::size &size)
Yes image object with specified theme and size.
Definition button_images.hpp:179
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition images.hpp:1268
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
@ 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.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10