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.
tool_bar_images.h
1 #pragma once
2 #include <xtd/environment.h>
3 #include <xtd/static.h>
4 #include <xtd/drawing/system_images.h>
5 #include "theme_images.h"
6 
8 namespace xtd {
10  namespace forms {
11  class tool_bar_images static_ {
12  public:
13  static xtd::drawing::image file_new() {return file_new(xtd::forms::theme_images::current_theme(), size());}
14  static xtd::drawing::image file_new(const std::string& theme) {return file_new(theme, size());}
15  static xtd::drawing::image file_new(const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::current_theme(), size);}
16  static xtd::drawing::image file_new(const std::string& theme, const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::theme_from_name(theme), size);}
17  static xtd::drawing::image file_new(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-new", size);}
18 
19  static xtd::drawing::image file_open() {return file_open(xtd::forms::theme_images::current_theme(), size());}
20  static xtd::drawing::image file_open(const std::string& theme) {return file_open(theme, size());}
21  static xtd::drawing::image file_open(const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::current_theme(), size);}
22  static xtd::drawing::image file_open(const std::string& theme, const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::theme_from_name(theme), size);}
23  static xtd::drawing::image file_open(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-open", size);}
24 
25  static xtd::drawing::image file_save() {return file_save(xtd::forms::theme_images::current_theme(), size());}
26  static xtd::drawing::image file_save(const std::string& theme) {return file_save(theme, size());}
27  static xtd::drawing::image file_save(const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::current_theme(), size);}
28  static xtd::drawing::image file_save(const std::string& theme, const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::theme_from_name(theme), size);}
29  static xtd::drawing::image file_save(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-save", size);}
30 
31  static xtd::drawing::image file_save_as() {return file_save_as(xtd::forms::theme_images::current_theme(), size());}
32  static xtd::drawing::image file_save_as(const std::string& theme) {return file_save_as(theme, size());}
33  static xtd::drawing::image file_save_as(const xtd::drawing::size& size) {return file_save_as(xtd::forms::theme_images::current_theme(), size);}
34  static xtd::drawing::image file_save_as(const std::string& theme, const xtd::drawing::size& size) {return file_save_as(xtd::forms::theme_images::theme_from_name(theme), size);}
35  static xtd::drawing::image file_save_as(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-save-as", size);}
36 
37  static xtd::drawing::image file_print() {return file_print(xtd::forms::theme_images::current_theme(), size());}
38  static xtd::drawing::image file_print(const std::string& theme) {return file_print(theme, size());}
39  static xtd::drawing::image file_print(const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::current_theme(), size);}
40  static xtd::drawing::image file_print(const std::string& theme, const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::theme_from_name(theme), size);}
41  static xtd::drawing::image file_print(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-print", size);}
42 
43  static xtd::drawing::image file_print_preview() {return file_print_preview(xtd::forms::theme_images::current_theme(), size());}
44  static xtd::drawing::image file_print_preview(const std::string& theme) {return file_print_preview(theme, size());}
45  static xtd::drawing::image file_print_preview(const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::current_theme(), size);}
46  static xtd::drawing::image file_print_preview(const std::string& theme, const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::theme_from_name(theme), size);}
47  static xtd::drawing::image file_print_preview(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-print-preview", size);}
48 
49  static xtd::drawing::image file_page_setup() {return file_page_setup(xtd::forms::theme_images::current_theme(), size());}
50  static xtd::drawing::image file_page_setup(const std::string& theme) {return file_page_setup(theme, size());}
51  static xtd::drawing::image file_page_setup(const xtd::drawing::size& size) {return file_page_setup(xtd::forms::theme_images::current_theme(), size);}
52  static xtd::drawing::image file_page_setup(const std::string& theme, const xtd::drawing::size& size) {return file_page_setup(xtd::forms::theme_images::theme_from_name(theme), size);}
53  static xtd::drawing::image file_page_setup(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-page-setup", size);}
54 
55  static xtd::drawing::image file_exit() {return file_exit(xtd::forms::theme_images::current_theme(), size());}
56  static xtd::drawing::image file_exit(const std::string& theme) {return file_exit(theme, size());}
57  static xtd::drawing::image file_exit(const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::current_theme(), size);}
58  static xtd::drawing::image file_exit(const std::string& theme, const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::theme_from_name(theme), size);}
59  static xtd::drawing::image file_exit(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "application-exit", size);}
60 
61  static xtd::drawing::image edit_undo() {return edit_undo(xtd::forms::theme_images::current_theme(), size());}
62  static xtd::drawing::image edit_undo(const std::string& theme) {return edit_undo(theme, size());}
63  static xtd::drawing::image edit_undo(const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::current_theme(), size);}
64  static xtd::drawing::image edit_undo(const std::string& theme, const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::theme_from_name(theme), size);}
65  static xtd::drawing::image edit_undo(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-undo", size);}
66 
67  static xtd::drawing::image edit_redo() {return edit_redo(xtd::forms::theme_images::current_theme(), size());}
68  static xtd::drawing::image edit_redo(const std::string& theme) {return edit_redo(theme, size());}
69  static xtd::drawing::image edit_redo(const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::current_theme(), size);}
70  static xtd::drawing::image edit_redo(const std::string& theme, const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::theme_from_name(theme), size);}
71  static xtd::drawing::image edit_redo(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-redo", size);}
72 
73  static xtd::drawing::image edit_cut() {return edit_cut(xtd::forms::theme_images::current_theme(), size());}
74  static xtd::drawing::image edit_cut(const std::string& theme) {return edit_cut(theme, size());}
75  static xtd::drawing::image edit_cut(const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::current_theme(), size);}
76  static xtd::drawing::image edit_cut(const std::string& theme, const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::theme_from_name(theme), size);}
77  static xtd::drawing::image edit_cut(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-cut", size);}
78 
79  static xtd::drawing::image edit_copy() {return edit_copy(xtd::forms::theme_images::current_theme(), size());}
80  static xtd::drawing::image edit_copy(const std::string& theme) {return edit_copy(theme, size());}
81  static xtd::drawing::image edit_copy(const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::current_theme(), size);}
82  static xtd::drawing::image edit_copy(const std::string& theme, const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::theme_from_name(theme), size);}
83  static xtd::drawing::image edit_copy(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-copy", size);}
84 
85  static xtd::drawing::image edit_paste() {return edit_paste(xtd::forms::theme_images::current_theme(), size());}
86  static xtd::drawing::image edit_paste(const std::string& theme) {return edit_paste(theme, size());}
87  static xtd::drawing::image edit_paste(const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::current_theme(), size);}
88  static xtd::drawing::image edit_paste(const std::string& theme, const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::theme_from_name(theme), size);}
89  static xtd::drawing::image edit_paste(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-paste", size);}
90 
91  static xtd::drawing::image view_back() {return view_back(xtd::forms::theme_images::current_theme(), size());}
92  static xtd::drawing::image view_back(const std::string& theme) {return view_back(theme, size());}
93  static xtd::drawing::image view_back(const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::current_theme(), size);}
94  static xtd::drawing::image view_back(const std::string& theme, const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::theme_from_name(theme), size);}
95  static xtd::drawing::image view_back(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
96 
97  static xtd::drawing::image view_forward() {return view_forward(xtd::forms::theme_images::current_theme(), size());}
98  static xtd::drawing::image view_forward(const std::string& theme) {return view_forward(theme, size());}
99  static xtd::drawing::image view_forward(const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::current_theme(), size);}
100  static xtd::drawing::image view_forward(const std::string& theme, const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::theme_from_name(theme), size);}
101  static xtd::drawing::image view_forward(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
102 
103  static xtd::drawing::image help_about() {return help_about(xtd::forms::theme_images::current_theme(), size());}
104  static xtd::drawing::image help_about(const std::string& theme) {return help_about(theme, size());}
105  static xtd::drawing::image help_about(const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::current_theme(), size);}
106  static xtd::drawing::image help_about(const std::string& theme, const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::theme_from_name(theme), size);}
107  static xtd::drawing::image help_about(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "help-about", size);}
108 
109  static xtd::drawing::size size() {return xtd::environment::os_version().is_windows_platform() ? xtd::drawing::size {16, 16} : xtd::drawing::size {24, 24};}
110 
111  static xtd::drawing::image from_name(const std::string& name) {return from_name(name, size());}
112  static xtd::drawing::image from_name(const std::string& theme, const std::string& name) {return from_name(theme, name, size());}
113  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);}
114  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);}
115  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);}
116  };
117  }
118 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: theme_images.h:11
Definition: theme.h:11
Definition: tool_bar_images.h:11