xtd 1.0.0
Loading...
Searching...
No Matches
menu_images.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "application.hpp"
6#include "images.hpp"
7#include <xtd/drawing/system_images>
8#include <xtd/static>
9
11namespace xtd {
13 namespace forms {
24 class menu_images final static_ {
25 public:
27
31 [[nodiscard]] static auto file_new() -> xtd::drawing::image {return file_new(application::style_sheet().theme().name(), size());}
35 [[nodiscard]] static auto file_new(const xtd::string& theme) -> xtd::drawing::image {return file_new(theme, size());}
39 [[nodiscard]] static auto file_new(const xtd::drawing::size& size) -> xtd::drawing::image {return file_new(application::style_sheet().theme().name(), size);}
44 [[nodiscard]] static auto file_new(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "document-new", size);}
45
48 [[nodiscard]] static auto file_open() -> xtd::drawing::image {return file_open(application::style_sheet().theme().name(), size());}
52 [[nodiscard]] static auto file_open(const xtd::string& theme) -> xtd::drawing::image {return file_open(theme, size());}
56 [[nodiscard]] static auto file_open(const xtd::drawing::size& size) -> xtd::drawing::image {return file_open(application::style_sheet().theme().name(), size);}
61 [[nodiscard]] static auto file_open(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "document-open", size);}
62
65 [[nodiscard]] static auto file_save() -> xtd::drawing::image {return file_save(application::style_sheet().theme().name(), size());}
69 [[nodiscard]] static auto file_save(const xtd::string& theme) -> xtd::drawing::image {return file_save(theme, size());}
73 [[nodiscard]] static auto file_save(const xtd::drawing::size& size) -> xtd::drawing::image {return file_save(application::style_sheet().theme().name(), size);}
78 [[nodiscard]] static auto file_save(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "document-save", size);}
79
82 [[nodiscard]] static auto file_print() -> xtd::drawing::image {return file_print(application::style_sheet().theme().name(), size());}
86 [[nodiscard]] static auto file_print(const xtd::string& theme) -> xtd::drawing::image {return file_print(theme, size());}
90 [[nodiscard]] static auto file_print(const xtd::drawing::size& size) -> xtd::drawing::image {return file_print(application::style_sheet().theme().name(), size);}
95 [[nodiscard]] static auto file_print(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "document-print", size);}
96
99 [[nodiscard]] static auto file_print_preview() -> xtd::drawing::image {return file_print_preview(application::style_sheet().theme().name(), size());}
103 [[nodiscard]] static auto file_print_preview(const xtd::string& theme) -> xtd::drawing::image {return file_print_preview(theme, size());}
112 [[nodiscard]] static auto file_print_preview(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "document-print-preview", size);}
113
116 [[nodiscard]] static auto file_exit() -> xtd::drawing::image {return file_exit(application::style_sheet().theme().name(), size());}
120 [[nodiscard]] static auto file_exit(const xtd::string& theme) -> xtd::drawing::image {return file_exit(theme, size());}
124 [[nodiscard]] static auto file_exit(const xtd::drawing::size& size) -> xtd::drawing::image {return file_exit(application::style_sheet().theme().name(), size);}
129 [[nodiscard]] static auto file_exit(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "application-exit", size);}
130
133 [[nodiscard]] static auto edit_undo() -> xtd::drawing::image {return edit_undo(application::style_sheet().theme().name(), size());}
137 [[nodiscard]] static auto edit_undo(const xtd::string& theme) -> xtd::drawing::image {return edit_undo(theme, size());}
141 [[nodiscard]] static auto edit_undo(const xtd::drawing::size& size) -> xtd::drawing::image {return edit_undo(application::style_sheet().theme().name(), size);}
146 [[nodiscard]] static auto edit_undo(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "edit-undo", size);}
147
150 [[nodiscard]] static auto edit_redo() -> xtd::drawing::image {return edit_redo(application::style_sheet().theme().name(), size());}
154 [[nodiscard]] static auto edit_redo(const xtd::string& theme) -> xtd::drawing::image {return edit_redo(theme, size());}
158 [[nodiscard]] static auto edit_redo(const xtd::drawing::size& size) -> xtd::drawing::image {return edit_redo(application::style_sheet().theme().name(), size);}
163 [[nodiscard]] static auto edit_redo(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "edit-redo", size);}
164
167 [[nodiscard]] static auto edit_cut() -> xtd::drawing::image {return edit_cut(application::style_sheet().theme().name(), size());}
171 [[nodiscard]] static auto edit_cut(const xtd::string& theme) -> xtd::drawing::image {return edit_cut(theme, size());}
175 [[nodiscard]] static auto edit_cut(const xtd::drawing::size& size) -> xtd::drawing::image {return edit_cut(application::style_sheet().theme().name(), size);}
180 [[nodiscard]] static auto edit_cut(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "edit-cut", size);}
181
184 [[nodiscard]] static auto edit_copy() -> xtd::drawing::image {return edit_copy(application::style_sheet().theme().name(), size());}
188 [[nodiscard]] static auto edit_copy(const xtd::string& theme) -> xtd::drawing::image {return edit_copy(theme, size());}
192 [[nodiscard]] static auto edit_copy(const xtd::drawing::size& size) -> xtd::drawing::image {return edit_copy(application::style_sheet().theme().name(), size);}
197 [[nodiscard]] static auto edit_copy(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "edit-copy", size);}
198
201 [[nodiscard]] static auto edit_paste() -> xtd::drawing::image {return edit_paste(application::style_sheet().theme().name(), size());}
205 [[nodiscard]] static auto edit_paste(const xtd::string& theme) -> xtd::drawing::image {return edit_paste(theme, size());}
209 [[nodiscard]] static auto edit_paste(const xtd::drawing::size& size) -> xtd::drawing::image {return edit_paste(application::style_sheet().theme().name(), size);}
214 [[nodiscard]] static auto edit_paste(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "edit-paste", size);}
215
218 [[nodiscard]] static auto view_back() -> xtd::drawing::image {return view_back(application::style_sheet().theme().name(), size());}
222 [[nodiscard]] static auto view_back(const xtd::string& theme) -> xtd::drawing::image {return view_back(theme, size());}
226 [[nodiscard]] static auto view_back(const xtd::drawing::size& size) -> xtd::drawing::image {return view_back(application::style_sheet().theme().name(), size);}
231 [[nodiscard]] static auto view_back(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "go-previous", size);}
232
235 [[nodiscard]] static auto view_forward() -> xtd::drawing::image {return view_forward(application::style_sheet().theme().name(), size());}
239 [[nodiscard]] static auto view_forward(const xtd::string& theme) -> xtd::drawing::image {return view_forward(theme, size());}
243 [[nodiscard]] static auto view_forward(const xtd::drawing::size& size) -> xtd::drawing::image {return view_forward(application::style_sheet().theme().name(), size);}
248 [[nodiscard]] static auto view_forward(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "go-next", size);}
249
252 [[nodiscard]] static auto help_about() -> xtd::drawing::image {return help_about(application::style_sheet().theme().name(), size());}
256 [[nodiscard]] static auto help_about(const xtd::string& theme) -> xtd::drawing::image {return help_about(theme, size());}
260 [[nodiscard]] static auto help_about(const xtd::drawing::size& size) -> xtd::drawing::image {return help_about(application::style_sheet().theme().name(), size);}
265 [[nodiscard]] static auto help_about(const xtd::string& theme, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(theme, "help-about", size);}
266
269 [[nodiscard]] static auto size() -> xtd::drawing::size {return {16, 16};}
270
275 [[nodiscard]] static auto from_name(const xtd::string& name) -> xtd::drawing::image {return from_name(name, size());}
282 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name) -> xtd::drawing::image {return from_name(theme, name, size());}
289 [[nodiscard]] static auto from_name(const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image {return from_name(application::style_sheet().theme().name(), name, size);}
297 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image {return images::from_name(theme, name, size);}
299 };
300 }
301}
Contains xtd::forms::application class.
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
static auto style_sheet() noexcept -> const xtd::forms::style_sheets::style_sheet &
Gets current xtd::forms::style_sheets::style_sheet style sheet.
static auto from_name(const xtd::string &name) -> xtd::drawing::image
Gets image object with specified name.
Definition images.hpp:1269
Provides a menu images factories for use by a menu control.
Definition menu_images.hpp:24
static auto file_open(const xtd::drawing::size &size) -> xtd::drawing::image
File open image object with specified size.
Definition menu_images.hpp:56
static auto view_forward() -> xtd::drawing::image
View forward image object.
Definition menu_images.hpp:235
static auto file_open() -> xtd::drawing::image
File open image object.
Definition menu_images.hpp:48
static auto file_new() -> xtd::drawing::image
File new image object.
Definition menu_images.hpp:31
static auto file_print(const xtd::string &theme) -> xtd::drawing::image
File print image object with specified theme.
Definition menu_images.hpp:86
static auto file_save(const xtd::string &theme) -> xtd::drawing::image
File save image object with specified theme.
Definition menu_images.hpp:69
static auto edit_cut(const xtd::drawing::size &size) -> xtd::drawing::image
Edit cut image object with specified size.
Definition menu_images.hpp:175
static auto edit_copy(const xtd::string &theme) -> xtd::drawing::image
Edit copy image object with specified theme.
Definition menu_images.hpp:188
static auto file_exit() -> xtd::drawing::image
File exit image object.
Definition menu_images.hpp:116
static auto file_print() -> xtd::drawing::image
File print image object.
Definition menu_images.hpp:82
static auto edit_paste(const xtd::drawing::size &size) -> xtd::drawing::image
Edit paste image object with specified size.
Definition menu_images.hpp:209
static auto edit_cut(const xtd::string &theme) -> xtd::drawing::image
Edit cut image object with specified theme.
Definition menu_images.hpp:171
static auto help_about(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Help about image object with specified theme and size.
Definition menu_images.hpp:265
static auto file_print_preview() -> xtd::drawing::image
File print preview image object.
Definition menu_images.hpp:99
static auto file_save(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File save image object with specified theme and size.
Definition menu_images.hpp:78
static auto edit_redo(const xtd::string &theme) -> xtd::drawing::image
Edit undo image object with specified theme.
Definition menu_images.hpp:154
static auto edit_undo(const xtd::string &theme) -> xtd::drawing::image
Edit undo image object with specified theme.
Definition menu_images.hpp:137
static auto edit_undo(const xtd::drawing::size &size) -> xtd::drawing::image
Edit undoEdit undo image object with specified size.
Definition menu_images.hpp:141
static auto view_forward(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
View forward image object with specified theme and size.
Definition menu_images.hpp:248
static auto edit_copy(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Edit copy image object with specified theme and size.
Definition menu_images.hpp:197
static auto view_forward(const xtd::string &theme) -> xtd::drawing::image
View forward image object with specified theme.
Definition menu_images.hpp:239
static auto file_open(const xtd::string &theme) -> xtd::drawing::image
File open image object with specified theme.
Definition menu_images.hpp:52
static auto from_name(const xtd::string &theme, const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified theme, name and size.
Definition menu_images.hpp:297
static auto file_save() -> xtd::drawing::image
File save image object.
Definition menu_images.hpp:65
static auto help_about(const xtd::drawing::size &size) -> xtd::drawing::image
Help about image object with specified size.
Definition menu_images.hpp:260
static auto file_print_preview(const xtd::string &theme) -> xtd::drawing::image
File print preview image object with specified theme.
Definition menu_images.hpp:103
static auto help_about() -> xtd::drawing::image
Help about image object.
Definition menu_images.hpp:252
static auto from_name(const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified name and size.
Definition menu_images.hpp:289
static auto file_new(const xtd::string &theme) -> xtd::drawing::image
File new image object with specified theme.
Definition menu_images.hpp:35
static auto file_exit(const xtd::string &theme) -> xtd::drawing::image
File exit image object with specified theme.
Definition menu_images.hpp:120
static auto view_back() -> xtd::drawing::image
View back image object.
Definition menu_images.hpp:218
static auto edit_paste(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Edit paste image object with specified theme and size.
Definition menu_images.hpp:214
static auto edit_copy(const xtd::drawing::size &size) -> xtd::drawing::image
Edit copy image object with specified size.
Definition menu_images.hpp:192
static auto from_name(const xtd::string &theme, const xtd::string &name) -> xtd::drawing::image
Gets image object with specified theme and name.
Definition menu_images.hpp:282
static auto edit_redo() -> xtd::drawing::image
Edit undo image object.
Definition menu_images.hpp:150
static auto edit_copy() -> xtd::drawing::image
Edit copy image object.
Definition menu_images.hpp:184
static auto from_name(const xtd::string &name) -> xtd::drawing::image
Gets image object with specified name.
Definition menu_images.hpp:275
static auto view_forward(const xtd::drawing::size &size) -> xtd::drawing::image
View forward image object with specified size.
Definition menu_images.hpp:243
static auto file_open(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File open image object with specified theme and size.
Definition menu_images.hpp:61
static auto view_back(const xtd::string &theme) -> xtd::drawing::image
View back image object with specified theme.
Definition menu_images.hpp:222
static auto file_print_preview(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File print preview image object with specified theme and size.
Definition menu_images.hpp:112
static auto help_about(const xtd::string &theme) -> xtd::drawing::image
Help about image object with specified theme.
Definition menu_images.hpp:256
static auto file_print_preview(const xtd::drawing::size &size) -> xtd::drawing::image
File print preview image object with specified size.
Definition menu_images.hpp:107
static auto file_print(const xtd::drawing::size &size) -> xtd::drawing::image
File print image object with specified size.
Definition menu_images.hpp:90
static auto edit_paste() -> xtd::drawing::image
Edit paste image object.
Definition menu_images.hpp:201
static auto edit_undo() -> xtd::drawing::image
Edit undo image object.
Definition menu_images.hpp:133
static auto view_back(const xtd::drawing::size &size) -> xtd::drawing::image
View back image object with specified size.
Definition menu_images.hpp:226
static auto file_exit(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File exit image object with specified theme and size.
Definition menu_images.hpp:129
static auto file_new(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File new image object with specified theme and size.
Definition menu_images.hpp:44
static auto file_exit(const xtd::drawing::size &size) -> xtd::drawing::image
File exit image object with specified size.
Definition menu_images.hpp:124
static auto edit_cut() -> xtd::drawing::image
Edit cut image object.
Definition menu_images.hpp:167
static auto view_back(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
View back image object with specified theme and size.
Definition menu_images.hpp:231
static auto file_new(const xtd::drawing::size &size) -> xtd::drawing::image
File new image object with specified size.
Definition menu_images.hpp:39
static auto file_save(const xtd::drawing::size &size) -> xtd::drawing::image
File save image object with specified size.
Definition menu_images.hpp:73
static auto edit_paste(const xtd::string &theme) -> xtd::drawing::image
Edit paste image object with specified theme.
Definition menu_images.hpp:205
static auto edit_redo(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Edit undo image object with specified theme and size.
Definition menu_images.hpp:163
static auto edit_redo(const xtd::drawing::size &size) -> xtd::drawing::image
Edit undo image object with specified size.
Definition menu_images.hpp:158
static auto edit_cut(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Edit cut image object with specified theme and size.
Definition menu_images.hpp:180
static auto file_print(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
File print image object with specified theme and size.
Definition menu_images.hpp:95
static auto size() -> xtd::drawing::size
Gets the height and width of the menu images.
Definition menu_images.hpp:269
static auto edit_undo(const xtd::string &theme, const xtd::drawing::size &size) -> xtd::drawing::image
Edit undo image object with specified theme and size.
Definition menu_images.hpp:146
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
@ theme
Defines a 3D themed border. The effect depends on the border color value.
Definition border_style.hpp:38
Contains xtd::forms::images factory.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32