xtd 0.2.0
menu_images.h
Go to the documentation of this file.
1 #pragma once
5 #include "application.h"
6 #include "images.h"
7 #include <xtd/drawing/system_images>
8 #include <xtd/static>
9 
11 namespace xtd {
13  namespace forms {
22  class menu_images final static_ {
23  public:
25 
33  static xtd::drawing::image file_new(const xtd::ustring& theme) {return file_new(theme, size());}
42  static xtd::drawing::image file_new(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "document-new", size);}
43 
50  static xtd::drawing::image file_open(const xtd::ustring& theme) {return file_open(theme, size());}
59  static xtd::drawing::image file_open(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "document-open", size);}
60 
67  static xtd::drawing::image file_save(const xtd::ustring& theme) {return file_save(theme, size());}
76  static xtd::drawing::image file_save(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "document-save", size);}
77 
84  static xtd::drawing::image file_print(const xtd::ustring& theme) {return file_print(theme, size());}
93  static xtd::drawing::image file_print(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "document-print", size);}
94 
110  static xtd::drawing::image file_print_preview(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "document-print-preview", size);}
111 
118  static xtd::drawing::image file_exit(const xtd::ustring& theme) {return file_exit(theme, size());}
127  static xtd::drawing::image file_exit(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "application-exit", size);}
128 
135  static xtd::drawing::image edit_undo(const xtd::ustring& theme) {return edit_undo(theme, size());}
144  static xtd::drawing::image edit_undo(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-undo", size);}
145 
152  static xtd::drawing::image edit_redo(const xtd::ustring& theme) {return edit_redo(theme, size());}
161  static xtd::drawing::image edit_redo(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-redo", size);}
162 
169  static xtd::drawing::image edit_cut(const xtd::ustring& theme) {return edit_cut(theme, size());}
178  static xtd::drawing::image edit_cut(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-cut", size);}
179 
186  static xtd::drawing::image edit_copy(const xtd::ustring& theme) {return edit_copy(theme, size());}
195  static xtd::drawing::image edit_copy(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-copy", size);}
196 
203  static xtd::drawing::image edit_paste(const xtd::ustring& theme) {return edit_paste(theme, size());}
212  static xtd::drawing::image edit_paste(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "edit-paste", size);}
213 
220  static xtd::drawing::image view_back(const xtd::ustring& theme) {return view_back(theme, size());}
229  static xtd::drawing::image view_back(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "go-previous", size);}
230 
246  static xtd::drawing::image view_forward(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "go-next", size);}
247 
254  static xtd::drawing::image help_about(const xtd::ustring& theme) {return help_about(theme, size());}
263  static xtd::drawing::image help_about(const xtd::ustring& theme, const xtd::drawing::size& size) {return from_name(theme, "help-about", size);}
264 
267  static xtd::drawing::size size() {return {16, 16};}
268 
273  static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
280  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
287  static xtd::drawing::image from_name(const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(application::style_sheet().theme().name(), name, size);}
295  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);}
297  };
298  }
299 }
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:144
static xtd::drawing::image edit_cut()
Edit cut image object.
Definition: menu_images.h:165
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:280
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:212
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:246
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:178
Contains xtd::forms::application class.
#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 from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: menu_images.h:273
static xtd::drawing::image file_new(const xtd::ustring &theme)
File new image object with specified theme.
Definition: menu_images.h:33
static xtd::drawing::image file_new(const xtd::drawing::size &size)
File new image object with specified size.
Definition: menu_images.h:37
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:93
static xtd::drawing::image file_new()
File new image object.
Definition: menu_images.h:29
static xtd::drawing::image edit_paste(const xtd::drawing::size &size)
Edit paste image object with specified size.
Definition: menu_images.h:207
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:263
static xtd::drawing::image file_print(const xtd::drawing::size &size)
File print image object with specified size.
Definition: menu_images.h:88
static xtd::drawing::image file_save(const xtd::drawing::size &size)
File save image object with specified size.
Definition: menu_images.h:71
static xtd::drawing::image edit_copy(const xtd::drawing::size &size)
Edit copy image object with specified size.
Definition: menu_images.h:190
static xtd::drawing::image edit_copy()
Edit copy image object.
Definition: menu_images.h:182
static xtd::drawing::image help_about(const xtd::drawing::size &size)
Help about image object with specified size.
Definition: menu_images.h:258
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
static xtd::drawing::image help_about()
Help about image object.
Definition: menu_images.h:250
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::images factory.
Provides a menu images factories for use by a menu control.
Definition: menu_images.h:22
static xtd::drawing::image view_forward()
View forward image object.
Definition: menu_images.h:233
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:110
static xtd::drawing::image view_back(const xtd::drawing::size &size)
View back image object with specified size.
Definition: menu_images.h:224
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:76
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:59
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:287
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
static xtd::drawing::image file_save()
File save image object.
Definition: menu_images.h:63
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: images.h:1266
static xtd::drawing::image edit_redo(const xtd::drawing::size &size)
Edit undo image object with specified size.
Definition: menu_images.h:156
static xtd::drawing::image edit_redo()
Edit undo image object.
Definition: menu_images.h:148
static xtd::drawing::image file_exit(const xtd::ustring &theme)
File exit image object with specified theme.
Definition: menu_images.h:118
static xtd::drawing::image edit_cut(const xtd::ustring &theme)
Edit cut image object with specified theme.
Definition: menu_images.h:169
static xtd::drawing::image file_print()
File print image object.
Definition: menu_images.h:80
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 view_back(const xtd::ustring &theme)
View back image object with specified theme.
Definition: menu_images.h:220
static xtd::drawing::image file_open(const xtd::ustring &theme)
File open image object with specified theme.
Definition: menu_images.h:50
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:229
static xtd::drawing::image edit_undo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: menu_images.h:135
static xtd::drawing::image edit_undo(const xtd::drawing::size &size)
Edit undoEdit undo image object with specified size.
Definition: menu_images.h:139
static xtd::drawing::image edit_paste(const xtd::ustring &theme)
Edit paste image object with specified theme.
Definition: menu_images.h:203
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:195
static xtd::drawing::image file_exit()
File exit image object.
Definition: menu_images.h:114
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:161
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
static xtd::drawing::image view_back()
View back image object.
Definition: menu_images.h:216
static xtd::drawing::image edit_copy(const xtd::ustring &theme)
Edit copy image object with specified theme.
Definition: menu_images.h:186
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:295
static xtd::drawing::image edit_paste()
Edit paste image object.
Definition: menu_images.h:199
static xtd::drawing::image file_print_preview(const xtd::ustring &theme)
File print preview image object with specified theme.
Definition: menu_images.h:101
static xtd::drawing::image edit_cut(const xtd::drawing::size &size)
Edit cut image object with specified size.
Definition: menu_images.h:173
static xtd::drawing::image edit_undo()
Edit undo image object.
Definition: menu_images.h:131
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:127
static xtd::drawing::image view_forward(const xtd::ustring &theme)
View forward image object with specified theme.
Definition: menu_images.h:237
static xtd::drawing::image help_about(const xtd::ustring &theme)
Help about image object with specified theme.
Definition: menu_images.h:254
static xtd::drawing::image file_print_preview()
File print preview image object.
Definition: menu_images.h:97
Defines a 3D themed border. The effect depends on the border color value.
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:42
static xtd::drawing::image file_open(const xtd::drawing::size &size)
File open image object with specified size.
Definition: menu_images.h:54
static xtd::drawing::image file_open()
File open image object.
Definition: menu_images.h:46
static xtd::drawing::image file_print_preview(const xtd::drawing::size &size)
File print preview image object with specified size.
Definition: menu_images.h:105
static xtd::drawing::image edit_redo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: menu_images.h:152
static xtd::drawing::image file_print(const xtd::ustring &theme)
File print image object with specified theme.
Definition: menu_images.h:84
static xtd::drawing::image file_save(const xtd::ustring &theme)
File save image object with specified theme.
Definition: menu_images.h:67
static xtd::drawing::image file_exit(const xtd::drawing::size &size)
File exit image object with specified size.
Definition: menu_images.h:122
size_t size
Represents a size of any object in bytes.
Definition: types.h:195
static xtd::drawing::size size()
Gets the height and width of the menu images.
Definition: menu_images.h:267
static xtd::drawing::image view_forward(const xtd::drawing::size &size)
View forward image object with specified size.
Definition: menu_images.h:241