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 {
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.h:79
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:23
static xtd::drawing::image cancel()
Cancel image object.
Definition button_images.h: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.h:145
static xtd::drawing::image next()
Next image object.
Definition button_images.h: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.h:207
static xtd::drawing::image ok()
Ok image object.
Definition button_images.h: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.h:200
static xtd::drawing::image remove(const xtd::drawing::size &size)
Remove image object with specified size.
Definition button_images.h:157
static xtd::drawing::image next(const xtd::drawing::size &size)
Next image object with specified size.
Definition button_images.h:106
static xtd::drawing::image previous()
Previous image object.
Definition button_images.h:132
static xtd::drawing::image cancel(const xtd::drawing::size &size)
Cancel image object with specified size.
Definition button_images.h: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.h:94
static xtd::drawing::image apply(const xtd::drawing::size &size)
Apply image object with specified size.
Definition button_images.h:55
static xtd::drawing::image previous(const xtd::drawing::size &size)
Previous image object with specified size.
Definition button_images.h:140
static xtd::drawing::image yes(const xtd::drawing::size &size)
Yes image object with specified size.
Definition button_images.h:174
static xtd::drawing::image yes(const xtd::string &theme)
Yes image object with specified theme.
Definition button_images.h: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.h:77
static xtd::drawing::image cancel(const xtd::string &theme)
Cancel image object with specified theme.
Definition button_images.h:85
static xtd::drawing::image add()
Add image object.
Definition button_images.h:30
static xtd::drawing::image previous(const xtd::string &theme)
Previous image object with specified theme.
Definition button_images.h:136
static xtd::drawing::image apply(const xtd::string &theme)
Apply image object with specified theme.
Definition button_images.h:51
static xtd::drawing::image no()
No image object.
Definition button_images.h:115
static xtd::drawing::image add(const xtd::string &theme)
Add image object with specified theme.
Definition button_images.h:34
static xtd::drawing::image add(const xtd::drawing::size &size)
Add image object with specified size.
Definition button_images.h:38
static xtd::drawing::image ok(const xtd::drawing::size &size)
Ok image object with specified size.
Definition button_images.h:72
static xtd::drawing::image ok(const xtd::string &theme)
Ok image object with specified theme.
Definition button_images.h: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.h:111
static xtd::drawing::image no(const xtd::drawing::size &size)
No image object with specified size.
Definition button_images.h:123
static xtd::drawing::image remove(const xtd::string &theme)
Remove image object with specified theme.
Definition button_images.h: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.h:43
static xtd::drawing::image remove()
Remove image object.
Definition button_images.h:149
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition button_images.h:183
static xtd::drawing::image next(const xtd::string &theme)
Next image object with specified theme.
Definition button_images.h: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.h: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.h:215
static xtd::drawing::image no(const xtd::string &theme)
No image object with specified theme.
Definition button_images.h: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.h:128
static xtd::drawing::image apply()
Apply image object.
Definition button_images.h: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.h:60
static xtd::drawing::image yes()
Yes image object.
Definition button_images.h:166
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition button_images.h: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.h:179
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition images.h:1268
#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 size.h: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.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10