xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
menu_images.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/static.h>
7 #include "theme_images.h"
8 
10 namespace xtd {
12  namespace forms {
19  class menu_images final static_ {
20  public:
22 
26  static xtd::drawing::image file_new() {return file_new(xtd::forms::theme_images::current_theme(), size());}
30  static xtd::drawing::image file_new(const xtd::ustring& theme) {return file_new(theme, size());}
34  static xtd::drawing::image file_new(const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::current_theme(), size);}
39  static xtd::drawing::image file_new(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::theme_from_name(theme), size);}
44  static xtd::drawing::image file_new(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-new", size);}
45 
48  static xtd::drawing::image file_open() {return file_open(xtd::forms::theme_images::current_theme(), size());}
52  static xtd::drawing::image file_open(const xtd::ustring& theme) {return file_open(theme, size());}
56  static xtd::drawing::image file_open(const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::current_theme(), size);}
61  static xtd::drawing::image file_open(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::theme_from_name(theme), size);}
66  static xtd::drawing::image file_open(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-open", size);}
67 
70  static xtd::drawing::image file_save() {return file_save(xtd::forms::theme_images::current_theme(), size());}
74  static xtd::drawing::image file_save(const xtd::ustring& theme) {return file_save(theme, size());}
78  static xtd::drawing::image file_save(const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::current_theme(), size);}
83  static xtd::drawing::image file_save(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::theme_from_name(theme), size);}
88  static xtd::drawing::image file_save(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-save", size);}
89 
92  static xtd::drawing::image file_print() {return file_print(xtd::forms::theme_images::current_theme(), size());}
96  static xtd::drawing::image file_print(const xtd::ustring& theme) {return file_print(theme, size());}
100  static xtd::drawing::image file_print(const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::current_theme(), size);}
105  static xtd::drawing::image file_print(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::theme_from_name(theme), size);}
110  static xtd::drawing::image file_print(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "document-print", size);}
111 
114  static xtd::drawing::image file_print_preview() {return file_print_preview(xtd::forms::theme_images::current_theme(), size());}
122  static xtd::drawing::image file_print_preview(const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::current_theme(), size);}
127  static xtd::drawing::image file_print_preview(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::theme_from_name(theme), size);}
132  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);}
133 
136  static xtd::drawing::image file_exit() {return file_exit(xtd::forms::theme_images::current_theme(), size());}
140  static xtd::drawing::image file_exit(const xtd::ustring& theme) {return file_exit(theme, size());}
144  static xtd::drawing::image file_exit(const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::current_theme(), size);}
149  static xtd::drawing::image file_exit(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::theme_from_name(theme), size);}
154  static xtd::drawing::image file_exit(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "application-exit", size);}
155 
158  static xtd::drawing::image edit_undo() {return edit_undo(xtd::forms::theme_images::current_theme(), size());}
162  static xtd::drawing::image edit_undo(const xtd::ustring& theme) {return edit_undo(theme, size());}
166  static xtd::drawing::image edit_undo(const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::current_theme(), size);}
171  static xtd::drawing::image edit_undo(const xtd::ustring& theme, const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::theme_from_name(theme), size);}
176  static xtd::drawing::image edit_undo(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-undo", size);}
177 
180  static xtd::drawing::image edit_redo() {return edit_redo(xtd::forms::theme_images::current_theme(), size());}
184  static xtd::drawing::image edit_redo(const xtd::ustring& theme) {return edit_redo(theme, size());}
188  static xtd::drawing::image edit_redo(const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::current_theme(), size);}
193  static xtd::drawing::image edit_redo(const xtd::ustring& theme, const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::theme_from_name(theme), size);}
198  static xtd::drawing::image edit_redo(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-redo", size);}
199 
202  static xtd::drawing::image edit_cut() {return edit_cut(xtd::forms::theme_images::current_theme(), size());}
206  static xtd::drawing::image edit_cut(const xtd::ustring& theme) {return edit_cut(theme, size());}
210  static xtd::drawing::image edit_cut(const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::current_theme(), size);}
215  static xtd::drawing::image edit_cut(const xtd::ustring& theme, const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::theme_from_name(theme), size);}
220  static xtd::drawing::image edit_cut(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-cut", size);}
221 
224  static xtd::drawing::image edit_copy() {return edit_copy(xtd::forms::theme_images::current_theme(), size());}
228  static xtd::drawing::image edit_copy(const xtd::ustring& theme) {return edit_copy(theme, size());}
232  static xtd::drawing::image edit_copy(const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::current_theme(), size);}
237  static xtd::drawing::image edit_copy(const xtd::ustring& theme, const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::theme_from_name(theme), size);}
242  static xtd::drawing::image edit_copy(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-copy", size);}
243 
246  static xtd::drawing::image edit_paste() {return edit_paste(xtd::forms::theme_images::current_theme(), size());}
250  static xtd::drawing::image edit_paste(const xtd::ustring& theme) {return edit_paste(theme, size());}
254  static xtd::drawing::image edit_paste(const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::current_theme(), size);}
259  static xtd::drawing::image edit_paste(const xtd::ustring& theme, const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::theme_from_name(theme), size);}
264  static xtd::drawing::image edit_paste(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-paste", size);}
265 
268  static xtd::drawing::image view_back() {return view_back(xtd::forms::theme_images::current_theme(), size());}
272  static xtd::drawing::image view_back(const xtd::ustring& theme) {return view_back(theme, size());}
276  static xtd::drawing::image view_back(const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::current_theme(), size);}
281  static xtd::drawing::image view_back(const xtd::ustring& theme, const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::theme_from_name(theme), size);}
286  static xtd::drawing::image view_back(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
287 
290  static xtd::drawing::image view_forward() {return view_forward(xtd::forms::theme_images::current_theme(), size());}
298  static xtd::drawing::image view_forward(const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::current_theme(), size);}
303  static xtd::drawing::image view_forward(const xtd::ustring& theme, const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::theme_from_name(theme), size);}
308  static xtd::drawing::image view_forward(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
309 
312  static xtd::drawing::image help_about() {return help_about(xtd::forms::theme_images::current_theme(), size());}
316  static xtd::drawing::image help_about(const xtd::ustring& theme) {return help_about(theme, size());}
320  static xtd::drawing::image help_about(const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::current_theme(), size);}
325  static xtd::drawing::image help_about(const xtd::ustring& theme, const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::theme_from_name(theme), size);}
330  static xtd::drawing::image help_about(const xtd::forms::theme_images& theme, const xtd::drawing::size& size) {return from_name(theme, "help-about", size);}
331 
334  static xtd::drawing::size size() {return {16, 16};}
335 
340  static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
347  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
354  static xtd::drawing::image from_name(const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::current_theme(), name, size);}
362  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(xtd::forms::theme_images::theme_from_name(theme), name, size);}
370  static xtd::drawing::image from_name(const xtd::forms::theme_images& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return theme.from_name(name, size);}
372  };
373  }
374 }
static xtd::drawing::image edit_undo(const xtd::ustring &theme, const xtd::drawing::size &size)
Edit undo image object with specified theme and size.
Definition: menu_images.h:171
Contains xtd::static_object class.
static xtd::drawing::image edit_cut()
Edit cut image object.
Definition: menu_images.h:202
static xtd::drawing::image file_print_preview(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File print preview image object with specified theme and size.
Definition: menu_images.h:132
static xtd::drawing::image help_about(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Help about image object with specified theme and size.
Definition: menu_images.h:330
static xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name)
Gets image object with specified theme and name.
Definition: menu_images.h:347
static xtd::drawing::image edit_paste(const xtd::ustring &theme, const xtd::drawing::size &size)
Edit paste image object with specified theme and size.
Definition: menu_images.h:259
static xtd::drawing::image view_forward(const xtd::ustring &theme, const xtd::drawing::size &size)
View forward image object with specified theme and size.
Definition: menu_images.h:303
static xtd::drawing::image file_open(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File open image object with specified theme and size.
Definition: menu_images.h:66
static xtd::drawing::image edit_cut(const xtd::ustring &theme, const xtd::drawing::size &size)
Edit cut image object with specified theme and size.
Definition: menu_images.h:215
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:38
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: menu_images.h:340
static xtd::drawing::image file_new(const xtd::ustring &theme)
File new image object with specified theme.
Definition: menu_images.h:30
static xtd::drawing::image file_new(const xtd::drawing::size &size)
File new image object with specified size.
Definition: menu_images.h:34
static xtd::drawing::image file_print(const xtd::ustring &theme, const xtd::drawing::size &size)
File print image object with specified theme and size.
Definition: menu_images.h:105
static xtd::drawing::image file_new()
File new image object.
Definition: menu_images.h:26
static xtd::drawing::image edit_redo(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Edit undo image object with specified theme and size.
Definition: menu_images.h:198
static xtd::drawing::image edit_paste(const xtd::drawing::size &size)
Edit paste image object with specified size.
Definition: menu_images.h:254
static xtd::drawing::image help_about(const xtd::ustring &theme, const xtd::drawing::size &size)
Help about image object with specified theme and size.
Definition: menu_images.h:325
static xtd::drawing::image file_print(const xtd::drawing::size &size)
File print image object with specified size.
Definition: menu_images.h:100
static xtd::drawing::image file_save(const xtd::drawing::size &size)
File save image object with specified size.
Definition: menu_images.h:78
static xtd::drawing::image edit_copy(const xtd::drawing::size &size)
Edit copy image object with specified size.
Definition: menu_images.h:232
static xtd::drawing::image edit_copy()
Edit copy image object.
Definition: menu_images.h:224
static xtd::drawing::image help_about(const xtd::drawing::size &size)
Help about image object with specified size.
Definition: menu_images.h:320
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
static xtd::drawing::image edit_paste(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Edit paste image object with specified theme and size.
Definition: menu_images.h:264
static xtd::drawing::image help_about()
Help about image object.
Definition: menu_images.h:312
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides a menu images factories for use by a menu control.
Definition: menu_images.h:19
Definition: theme_images.h:14
static xtd::drawing::image view_forward()
View forward image object.
Definition: menu_images.h:290
static xtd::drawing::image file_print_preview(const xtd::ustring &theme, const xtd::drawing::size &size)
File print preview image object with specified theme and size.
Definition: menu_images.h:127
static xtd::drawing::image view_back(const xtd::drawing::size &size)
View back image object with specified size.
Definition: menu_images.h:276
static xtd::drawing::image file_save(const xtd::ustring &theme, const xtd::drawing::size &size)
File save image object with specified theme and size.
Definition: menu_images.h:83
static xtd::drawing::image edit_cut(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Edit cut image object with specified theme and size.
Definition: menu_images.h:220
static xtd::drawing::image file_open(const xtd::ustring &theme, const xtd::drawing::size &size)
File open image object with specified theme and size.
Definition: menu_images.h:61
static xtd::drawing::image from_name(const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
Definition: menu_images.h:354
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
static xtd::drawing::image file_save()
File save image object.
Definition: menu_images.h:70
Definition: theme.h:14
static xtd::drawing::image file_exit(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File exit image object with specified theme and size.
Definition: menu_images.h:154
static xtd::drawing::image edit_redo(const xtd::drawing::size &size)
Edit undo image object with specified size.
Definition: menu_images.h:188
static xtd::drawing::image edit_redo()
Edit undo image object.
Definition: menu_images.h:180
static xtd::drawing::image file_exit(const xtd::ustring &theme)
File exit image object with specified theme.
Definition: menu_images.h:140
static xtd::drawing::image view_forward(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
View forward image object with specified theme and size.
Definition: menu_images.h:308
static xtd::drawing::image file_new(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File new image object with specified theme and size.
Definition: menu_images.h:44
static xtd::drawing::image edit_cut(const xtd::ustring &theme)
Edit cut image object with specified theme.
Definition: menu_images.h:206
static xtd::drawing::image view_back(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
View back image object with specified theme and size.
Definition: menu_images.h:286
static xtd::drawing::image file_print()
File print image object.
Definition: menu_images.h:92
static xtd::drawing::image view_back(const xtd::ustring &theme)
View back image object with specified theme.
Definition: menu_images.h:272
static xtd::drawing::image file_open(const xtd::ustring &theme)
File open image object with specified theme.
Definition: menu_images.h:52
static xtd::drawing::image view_back(const xtd::ustring &theme, const xtd::drawing::size &size)
View back image object with specified theme and size.
Definition: menu_images.h:281
static xtd::drawing::image edit_undo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: menu_images.h:162
static xtd::drawing::image edit_undo(const xtd::drawing::size &size)
Edit undoEdit undo image object with specified size.
Definition: menu_images.h:166
static xtd::drawing::image edit_paste(const xtd::ustring &theme)
Edit paste image object with specified theme.
Definition: menu_images.h:250
static xtd::drawing::image edit_copy(const xtd::ustring &theme, const xtd::drawing::size &size)
Edit copy image object with specified theme and size.
Definition: menu_images.h:237
static xtd::drawing::image file_exit()
File exit image object.
Definition: menu_images.h:136
static xtd::drawing::image edit_redo(const xtd::ustring &theme, const xtd::drawing::size &size)
Edit undo image object with specified theme and size.
Definition: menu_images.h:193
static xtd::drawing::image edit_undo(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Edit undo image object with specified theme and size.
Definition: menu_images.h:176
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:34
static xtd::drawing::image view_back()
View back image object.
Definition: menu_images.h:268
static xtd::drawing::image from_name(const xtd::forms::theme_images &theme, const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
Definition: menu_images.h:370
static xtd::drawing::image edit_copy(const xtd::ustring &theme)
Edit copy image object with specified theme.
Definition: menu_images.h:228
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: menu_images.h:362
static xtd::drawing::image edit_paste()
Edit paste image object.
Definition: menu_images.h:246
static xtd::drawing::image edit_copy(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
Edit copy image object with specified theme and size.
Definition: menu_images.h:242
static xtd::drawing::image file_print_preview(const xtd::ustring &theme)
File print preview image object with specified theme.
Definition: menu_images.h:118
static xtd::drawing::image edit_cut(const xtd::drawing::size &size)
Edit cut image object with specified size.
Definition: menu_images.h:210
static xtd::drawing::image edit_undo()
Edit undo image object.
Definition: menu_images.h:158
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static xtd::drawing::image file_exit(const xtd::ustring &theme, const xtd::drawing::size &size)
File exit image object with specified theme and size.
Definition: menu_images.h:149
static xtd::drawing::image view_forward(const xtd::ustring &theme)
View forward image object with specified theme.
Definition: menu_images.h:294
static xtd::drawing::image help_about(const xtd::ustring &theme)
Help about image object with specified theme.
Definition: menu_images.h:316
static xtd::drawing::image file_print_preview()
File print preview image object.
Definition: menu_images.h:114
static xtd::drawing::image file_save(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File save image object with specified theme and size.
Definition: menu_images.h:88
static xtd::drawing::image file_new(const xtd::ustring &theme, const xtd::drawing::size &size)
File new image object with specified theme and size.
Definition: menu_images.h:39
static xtd::drawing::image file_open(const xtd::drawing::size &size)
File open image object with specified size.
Definition: menu_images.h:56
static xtd::drawing::image file_open()
File open image object.
Definition: menu_images.h:48
static xtd::drawing::image file_print(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File print image object with specified theme and size.
Definition: menu_images.h:110
static xtd::drawing::image file_print_preview(const xtd::drawing::size &size)
File print preview image object with specified size.
Definition: menu_images.h:122
Contains xtd::drawing::system_images factory.
static xtd::drawing::image edit_redo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: menu_images.h:184
static xtd::drawing::image file_print(const xtd::ustring &theme)
File print image object with specified theme.
Definition: menu_images.h:96
static xtd::drawing::image file_save(const xtd::ustring &theme)
File save image object with specified theme.
Definition: menu_images.h:74
static xtd::drawing::image file_exit(const xtd::drawing::size &size)
File exit image object with specified size.
Definition: menu_images.h:144
size_t size
Represents a size of any object in bytes.
Definition: types.h:171
static xtd::drawing::size size()
Gets the height and width of the menu images.
Definition: menu_images.h:334
Contains xtd::forms::theme_images class.
static xtd::drawing::image view_forward(const xtd::drawing::size &size)
View forward image object with specified size.
Definition: menu_images.h:298