xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
button_images.h
1 #pragma once
2 #include <xtd/static.h>
3 #include <xtd/drawing/system_images.h>
4 #include "theme_images.h"
5 
7 namespace xtd {
9  namespace forms {
10  class button_images static_ {
11  public:
12  static xtd::drawing::image add() {return add(xtd::forms::theme_images::current_theme(), size());}
13  static xtd::drawing::image add(const std::string& theme) {return add(theme, size());}
14  static xtd::drawing::image add(const xtd::drawing::size& size) {return add(xtd::forms::theme_images::current_theme(), size);}
15  static xtd::drawing::image add(const std::string& theme, const xtd::drawing::size& size) {return add(xtd::forms::theme_images::theme_from_name(theme), size);}
16  static xtd::drawing::image add(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "list-add", size);}
17 
18  static xtd::drawing::image apply() {return apply(xtd::forms::theme_images::current_theme(), size());}
19  static xtd::drawing::image apply(const std::string& theme) {return apply(theme, size());}
20  static xtd::drawing::image apply(const xtd::drawing::size& size) {return apply(xtd::forms::theme_images::current_theme(), size);}
21  static xtd::drawing::image apply(const std::string& theme, const xtd::drawing::size& size) {return apply(xtd::forms::theme_images::theme_from_name(theme), size);}
22  static xtd::drawing::image apply(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok-apply", size);}
23 
24  static xtd::drawing::image ok() {return ok(xtd::forms::theme_images::current_theme(), size());}
25  static xtd::drawing::image ok(const std::string& theme) {return ok(theme, size());}
26  static xtd::drawing::image ok(const xtd::drawing::size& size) {return ok(xtd::forms::theme_images::current_theme(), size);}
27  static xtd::drawing::image ok(const std::string& theme, const xtd::drawing::size& size) {return ok(xtd::forms::theme_images::theme_from_name(theme), size);}
28  static xtd::drawing::image ok(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
29 
30  static xtd::drawing::image cancel() {return cancel(xtd::forms::theme_images::current_theme(), size());}
31  static xtd::drawing::image cancel(const std::string& theme) {return cancel(theme, size());}
32  static xtd::drawing::image cancel(const xtd::drawing::size& size) {return cancel(xtd::forms::theme_images::current_theme(), size);}
33  static xtd::drawing::image cancel(const std::string& theme, const xtd::drawing::size& size) {return cancel(xtd::forms::theme_images::theme_from_name(theme), size);}
34  static xtd::drawing::image cancel(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
35 
36  static xtd::drawing::image next() {return next(xtd::forms::theme_images::current_theme(), size());}
37  static xtd::drawing::image next(const std::string& theme) {return next(theme, size());}
38  static xtd::drawing::image next(const xtd::drawing::size& size) {return next(xtd::forms::theme_images::current_theme(), size);}
39  static xtd::drawing::image next(const std::string& theme, const xtd::drawing::size& size) {return next(xtd::forms::theme_images::theme_from_name(theme), size);}
40  static xtd::drawing::image next(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
41 
42  static xtd::drawing::image no() {return no(xtd::forms::theme_images::current_theme(), size());}
43  static xtd::drawing::image no(const std::string& theme) {return no(theme, size());}
44  static xtd::drawing::image no(const xtd::drawing::size& size) {return no(xtd::forms::theme_images::current_theme(), size);}
45  static xtd::drawing::image no(const std::string& theme, const xtd::drawing::size& size) {return no(xtd::forms::theme_images::theme_from_name(theme), size);}
46  static xtd::drawing::image no(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-cancel", size);}
47 
48  static xtd::drawing::image previous() {return previous(xtd::forms::theme_images::current_theme(), size());}
49  static xtd::drawing::image previous(const std::string& theme) {return previous(theme, size());}
50  static xtd::drawing::image previous(const xtd::drawing::size& size) {return previous(xtd::forms::theme_images::current_theme(), size);}
51  static xtd::drawing::image previous(const std::string& theme, const xtd::drawing::size& size) {return previous(xtd::forms::theme_images::theme_from_name(theme), size);}
52  static xtd::drawing::image previous(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
53 
54  static xtd::drawing::image remove() {return remove(xtd::forms::theme_images::current_theme(), size());}
55  static xtd::drawing::image remove(const std::string& theme) {return remove(theme, size());}
56  static xtd::drawing::image remove(const xtd::drawing::size& size) {return remove(xtd::forms::theme_images::current_theme(), size);}
57  static xtd::drawing::image remove(const std::string& theme, const xtd::drawing::size& size) {return remove(xtd::forms::theme_images::theme_from_name(theme), size);}
58  static xtd::drawing::image remove(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "list-remove", size);}
59 
60  static xtd::drawing::image yes() {return yes(xtd::forms::theme_images::current_theme(), size());}
61  static xtd::drawing::image yes(const std::string& theme) {return yes(theme, size());}
62  static xtd::drawing::image yes(const xtd::drawing::size& size) {return yes(xtd::forms::theme_images::current_theme(), size);}
63  static xtd::drawing::image yes(const std::string& theme, const xtd::drawing::size& size) {return yes(xtd::forms::theme_images::theme_from_name(theme), size);}
64  static xtd::drawing::image yes(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "dialog-ok", size);}
65 
66  static xtd::drawing::size size() {return {16, 16};}
67  static xtd::drawing::image from_name(const std::string& name) {return from_name(name, size());}
68  static xtd::drawing::image from_name(const std::string& theme, const std::string& name) {return from_name(theme, name, size());}
69  static xtd::drawing::image from_name(const std::string& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::current_theme(), name, size);}
70  static xtd::drawing::image from_name(const std::string& theme, const std::string& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::theme_from_name(theme), name, size);}
71  static xtd::drawing::image from_name(const xtd::forms::theme_images& theme, const std::string& name, const xtd::drawing::size& size) {return theme.from_name(name, size);}
72  };
73  }
74 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: theme_images.h:11
Definition: theme.h:11
Definition: button_images.h:10