xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
menu_images.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/static.h>
7#include "theme_images.h"
8
10namespace xtd {
12 namespace forms {
19 class menu_images final static_ {
20 public:
23 static xtd::drawing::image file_new() {return file_new(xtd::forms::theme_images::current_theme(), size());}
31 static xtd::drawing::image file_new(const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::current_theme(), size);}
36 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);}
42
45 static xtd::drawing::image file_open() {return file_open(xtd::forms::theme_images::current_theme(), size());}
53 static xtd::drawing::image file_open(const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::current_theme(), size);}
58 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);}
64
67 static xtd::drawing::image file_save() {return file_save(xtd::forms::theme_images::current_theme(), size());}
75 static xtd::drawing::image file_save(const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::current_theme(), size);}
80 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);}
86
89 static xtd::drawing::image file_print() {return file_print(xtd::forms::theme_images::current_theme(), size());}
97 static xtd::drawing::image file_print(const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::current_theme(), size);}
102 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);}
108
111 static xtd::drawing::image file_print_preview() {return file_print_preview(xtd::forms::theme_images::current_theme(), size());}
119 static xtd::drawing::image file_print_preview(const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::current_theme(), size);}
124 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);}
130
133 static xtd::drawing::image file_exit() {return file_exit(xtd::forms::theme_images::current_theme(), size());}
141 static xtd::drawing::image file_exit(const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::current_theme(), size);}
146 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);}
152
155 static xtd::drawing::image edit_undo() {return edit_undo(xtd::forms::theme_images::current_theme(), size());}
163 static xtd::drawing::image edit_undo(const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::current_theme(), size);}
168 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);}
174
177 static xtd::drawing::image edit_redo() {return edit_redo(xtd::forms::theme_images::current_theme(), size());}
185 static xtd::drawing::image edit_redo(const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::current_theme(), size);}
190 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);}
196
199 static xtd::drawing::image edit_cut() {return edit_cut(xtd::forms::theme_images::current_theme(), size());}
207 static xtd::drawing::image edit_cut(const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::current_theme(), size);}
212 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);}
218
221 static xtd::drawing::image edit_copy() {return edit_copy(xtd::forms::theme_images::current_theme(), size());}
229 static xtd::drawing::image edit_copy(const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::current_theme(), size);}
234 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);}
240
243 static xtd::drawing::image edit_paste() {return edit_paste(xtd::forms::theme_images::current_theme(), size());}
251 static xtd::drawing::image edit_paste(const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::current_theme(), size);}
256 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);}
262
265 static xtd::drawing::image view_back() {return view_back(xtd::forms::theme_images::current_theme(), size());}
273 static xtd::drawing::image view_back(const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::current_theme(), size);}
278 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);}
284
287 static xtd::drawing::image view_forward() {return view_forward(xtd::forms::theme_images::current_theme(), size());}
295 static xtd::drawing::image view_forward(const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::current_theme(), size);}
300 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);}
306
309 static xtd::drawing::image help_about() {return help_about(xtd::forms::theme_images::current_theme(), size());}
317 static xtd::drawing::image help_about(const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::current_theme(), size);}
322 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);}
328
331 static xtd::drawing::size size() {return {16, 16};}
332
337 static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
344 static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
351 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);}
359 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);}
367 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);}
368 };
369 }
370}
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:34
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:25
Provides a menu images factories for use by a menu control.
Definition menu_images.h:19
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:85
static xtd::drawing::image edit_redo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition menu_images.h:181
static xtd::drawing::image edit_copy()
Edit copy image object.
Definition menu_images.h:221
static xtd::drawing::image file_print_preview(const xtd::drawing::size &size)
File print preview image object with specified size.
Definition menu_images.h:119
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:129
static xtd::drawing::image edit_paste(const xtd::drawing::size &size)
Edit paste image object with specified size.
Definition menu_images.h:251
static xtd::drawing::image help_about(const xtd::ustring &theme)
Help about image object with specified theme.
Definition menu_images.h:313
static xtd::drawing::image view_back(const xtd::ustring &theme)
View back image object with specified theme.
Definition menu_images.h:269
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:283
static xtd::drawing::image edit_paste(const xtd::ustring &theme)
Edit paste image object with specified theme.
Definition menu_images.h:247
static xtd::drawing::image file_print()
File print image object.
Definition menu_images.h:89
static xtd::drawing::image edit_undo(const xtd::drawing::size &size)
Edit undoEdit undo image object with specified size.
Definition menu_images.h:163
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:168
static xtd::drawing::size size()
Gets the height and width of the menu images.
Definition menu_images.h:331
static xtd::drawing::image file_print(const xtd::ustring &theme)
File print image object with specified theme.
Definition menu_images.h:93
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:124
static xtd::drawing::image edit_redo(const xtd::drawing::size &size)
Edit undo image object with specified size.
Definition menu_images.h:185
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:217
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:63
static xtd::drawing::image file_print_preview(const xtd::ustring &theme)
File print preview image object with specified theme.
Definition menu_images.h:115
static xtd::drawing::image file_print_preview()
File print preview image object.
Definition menu_images.h:111
static xtd::drawing::image edit_copy(const xtd::drawing::size &size)
Edit copy image object with specified size.
Definition menu_images.h:229
static xtd::drawing::image file_save(const xtd::ustring &theme)
File save image object with specified theme.
Definition menu_images.h:71
static xtd::drawing::image file_save()
File save image object.
Definition menu_images.h:67
static xtd::drawing::image file_exit()
File exit image object.
Definition menu_images.h:133
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:278
static xtd::drawing::image file_exit(const xtd::drawing::size &size)
File exit image object with specified size.
Definition menu_images.h:141
static xtd::drawing::image file_new()
File new image object.
Definition menu_images.h:23
static xtd::drawing::image file_new(const xtd::ustring &theme)
File new image object with specified theme.
Definition menu_images.h:27
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:58
static xtd::drawing::image file_open()
File open image object.
Definition menu_images.h:45
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:102
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:151
static xtd::drawing::image help_about(const xtd::drawing::size &size)
Help about image object with specified size.
Definition menu_images.h:317
static xtd::drawing::image view_forward(const xtd::drawing::size &size)
View forward image object with specified size.
Definition menu_images.h:295
static xtd::drawing::image help_about()
Help about image object.
Definition menu_images.h:309
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:351
static xtd::drawing::image edit_cut()
Edit cut image object.
Definition menu_images.h:199
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:305
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:146
static xtd::drawing::image edit_redo()
Edit undo image object.
Definition menu_images.h:177
static xtd::drawing::image file_print(const xtd::drawing::size &size)
File print image object with specified size.
Definition menu_images.h:97
static xtd::drawing::image edit_paste()
Edit paste image object.
Definition menu_images.h:243
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:256
static xtd::drawing::image view_forward()
View forward image object.
Definition menu_images.h:287
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:36
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:41
static xtd::drawing::image edit_copy(const xtd::ustring &theme)
Edit copy image object with specified theme.
Definition menu_images.h:225
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:239
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:322
static xtd::drawing::image file_new(const xtd::drawing::size &size)
File new image object with specified size.
Definition menu_images.h:31
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:173
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:344
static xtd::drawing::image view_forward(const xtd::ustring &theme)
View forward image object with specified theme.
Definition menu_images.h:291
static xtd::drawing::image file_exit(const xtd::ustring &theme)
File exit image object with specified theme.
Definition menu_images.h:137
static xtd::drawing::image edit_undo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition menu_images.h:159
static xtd::drawing::image edit_cut(const xtd::drawing::size &size)
Edit cut image object with specified size.
Definition menu_images.h:207
static xtd::drawing::image file_open(const xtd::drawing::size &size)
File open image object with specified size.
Definition menu_images.h:53
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:327
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:107
static xtd::drawing::image file_open(const xtd::ustring &theme)
File open image object with specified theme.
Definition menu_images.h:49
static xtd::drawing::image edit_cut(const xtd::ustring &theme)
Edit cut image object with specified theme.
Definition menu_images.h:203
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:367
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:359
static xtd::drawing::image view_back(const xtd::drawing::size &size)
View back image object with specified size.
Definition menu_images.h:273
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition menu_images.h:337
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:195
static xtd::drawing::image view_back()
View back image object.
Definition menu_images.h:265
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:234
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:300
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:261
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:212
static xtd::drawing::image edit_undo()
Edit undo image object.
Definition menu_images.h:155
static xtd::drawing::image file_save(const xtd::drawing::size &size)
File save image object with specified size.
Definition menu_images.h:75
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:80
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:190
Definition theme_images.h:14
Definition theme.h:14
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:38
size_t size
Represents a size of any object in bytes.
Definition types.h:171
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::static_object class.
Contains xtd::drawing::system_images factory.
Contains xtd::forms::theme_images class.