xtd 0.2.0
button_images.h
Go to the documentation of this file.
1 #pragma once
5 #include "images.h"
6 #include <xtd/static>
7 #include <xtd/drawing/system_images>
8 
10 namespace 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 
49  static xtd::drawing::image apply(const xtd::ustring& theme) {return apply(theme, size());}
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 
83  static xtd::drawing::image cancel(const xtd::ustring& theme) {return cancel(theme, size());}
92  static xtd::drawing::image cancel(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
93 
100  static xtd::drawing::image next(const xtd::ustring& theme) {return next(theme, size());}
109  static xtd::drawing::image next(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
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 
134  static xtd::drawing::image previous(const xtd::ustring& theme) {return previous(theme, size());}
143  static xtd::drawing::image previous(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
144 
147  static xtd::drawing::image remove() {return remove(xtd::forms::application::style_sheet().theme().name(), size());}
151  static xtd::drawing::image remove(const xtd::ustring& theme) {return remove(theme, size());}
160  static xtd::drawing::image remove(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "list-remove", size);}
161 
168  static xtd::drawing::image yes(const xtd::ustring& theme) {return yes(theme, size());}
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());}
213  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return images::from_name(theme, name, size);}
215  };
216  }
217 }
static xtd::drawing::image ok(const xtd::ustring &theme)
Ok image object with specified theme.
Definition: button_images.h:66
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 no(const xtd::ustring &theme, const xtd::drawing::size &size)
No image object with specified theme and size.
Definition: button_images.h:126
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
static xtd::drawing::image previous()
Previous image object.
Definition: button_images.h:130
static xtd::drawing::image ok()
Ok image object.
Definition: button_images.h:62
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 yes(const xtd::drawing::size &size)
Yes image object with specified size.
Definition: button_images.h:172
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:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::images factory.
static xtd::drawing::image next()
Next image object.
Definition: button_images.h:96
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition: button_images.h:181
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 yes(const xtd::ustring &theme)
Yes image object with specified theme.
Definition: button_images.h:168
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
static xtd::drawing::image cancel()
Cancel image object.
Definition: button_images.h:79
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: images.h:1266
static xtd::drawing::image no(const xtd::ustring &theme)
No image object with specified theme.
Definition: button_images.h:117
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 apply()
Apply image object.
Definition: button_images.h:45
const xtd::forms::style_sheets::theme & theme() const noexcept
Gets The style sheet theme of this instance.
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:164
static xtd::drawing::image add()
Add image object.
Definition: button_images.h:28
static const xtd::forms::style_sheets::style_sheet & style_sheet() noexcept
Gets current xtd::forms::style_sheets::style_sheet style sheet.
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 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 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 next(const xtd::ustring &theme)
Next image object with specified theme.
Definition: button_images.h:100
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
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 no()
No image object.
Definition: button_images.h:113
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 add(const xtd::ustring &theme)
Add image object with specified theme.
Definition: button_images.h:32
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 add(const xtd::drawing::size &size)
Add image object with specified size.
Definition: button_images.h:36
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 yes(const xtd::ustring &theme, const xtd::drawing::size &size)
Yes image object with specified theme and size.
Definition: button_images.h:177
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:134
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: button_images.h:191
Defines a 3D themed border. The effect depends on the border color value.
const xtd::ustring & name() const noexcept
Gets the theme name.
Provides a button images factories for use by a button control.
Definition: button_images.h:21
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 cancel(const xtd::ustring &theme)
Cancel image object with specified theme.
Definition: button_images.h:83
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:213
size_t size
Represents a size of any object in bytes.
Definition: types.h:195