xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
tool_bar_images.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/environment.h>
6#include <xtd/static.h>
8#include "theme_images.h"
9
11namespace xtd {
13 namespace forms {
21 public:
24 static xtd::drawing::image file_new() {return file_new(xtd::forms::theme_images::current_theme(), size());}
32 static xtd::drawing::image file_new(const xtd::drawing::size& size) {return file_new(xtd::forms::theme_images::current_theme(), size);}
37 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);}
43
46 static xtd::drawing::image file_open() {return file_open(xtd::forms::theme_images::current_theme(), size());}
54 static xtd::drawing::image file_open(const xtd::drawing::size& size) {return file_open(xtd::forms::theme_images::current_theme(), size);}
59 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);}
65
68 static xtd::drawing::image file_save() {return file_save(xtd::forms::theme_images::current_theme(), size());}
76 static xtd::drawing::image file_save(const xtd::drawing::size& size) {return file_save(xtd::forms::theme_images::current_theme(), size);}
81 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);}
87
90 static xtd::drawing::image file_save_as() {return file_save_as(xtd::forms::theme_images::current_theme(), size());}
98 static xtd::drawing::image file_save_as(const xtd::drawing::size& size) {return file_save_as(xtd::forms::theme_images::current_theme(), size);}
103 static xtd::drawing::image file_save_as(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_save_as(xtd::forms::theme_images::theme_from_name(theme), size);}
109
112 static xtd::drawing::image file_print() {return file_print(xtd::forms::theme_images::current_theme(), size());}
120 static xtd::drawing::image file_print(const xtd::drawing::size& size) {return file_print(xtd::forms::theme_images::current_theme(), size);}
125 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);}
131
134 static xtd::drawing::image file_print_preview() {return file_print_preview(xtd::forms::theme_images::current_theme(), size());}
142 static xtd::drawing::image file_print_preview(const xtd::drawing::size& size) {return file_print_preview(xtd::forms::theme_images::current_theme(), size);}
147 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);}
153
156 static xtd::drawing::image file_page_setup() {return file_page_setup(xtd::forms::theme_images::current_theme(), size());}
164 static xtd::drawing::image file_page_setup(const xtd::drawing::size& size) {return file_page_setup(xtd::forms::theme_images::current_theme(), size);}
169 static xtd::drawing::image file_page_setup(const xtd::ustring& theme, const xtd::drawing::size& size) {return file_page_setup(xtd::forms::theme_images::theme_from_name(theme), size);}
175
178 static xtd::drawing::image file_exit() {return file_exit(xtd::forms::theme_images::current_theme(), size());}
186 static xtd::drawing::image file_exit(const xtd::drawing::size& size) {return file_exit(xtd::forms::theme_images::current_theme(), size);}
191 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);}
197
200 static xtd::drawing::image edit_undo() {return edit_undo(xtd::forms::theme_images::current_theme(), size());}
208 static xtd::drawing::image edit_undo(const xtd::drawing::size& size) {return edit_undo(xtd::forms::theme_images::current_theme(), size);}
213 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);}
219
222 static xtd::drawing::image edit_redo() {return edit_redo(xtd::forms::theme_images::current_theme(), size());}
230 static xtd::drawing::image edit_redo(const xtd::drawing::size& size) {return edit_redo(xtd::forms::theme_images::current_theme(), size);}
235 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);}
241
244 static xtd::drawing::image edit_cut() {return edit_cut(xtd::forms::theme_images::current_theme(), size());}
252 static xtd::drawing::image edit_cut(const xtd::drawing::size& size) {return edit_cut(xtd::forms::theme_images::current_theme(), size);}
257 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);}
263
266 static xtd::drawing::image edit_copy() {return edit_copy(xtd::forms::theme_images::current_theme(), size());}
274 static xtd::drawing::image edit_copy(const xtd::drawing::size& size) {return edit_copy(xtd::forms::theme_images::current_theme(), size);}
279 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);}
285
288 static xtd::drawing::image edit_paste() {return edit_paste(xtd::forms::theme_images::current_theme(), size());}
296 static xtd::drawing::image edit_paste(const xtd::drawing::size& size) {return edit_paste(xtd::forms::theme_images::current_theme(), size);}
301 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);}
307
310 static xtd::drawing::image view_back() {return view_back(xtd::forms::theme_images::current_theme(), size());}
318 static xtd::drawing::image view_back(const xtd::drawing::size& size) {return view_back(xtd::forms::theme_images::current_theme(), size);}
323 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);}
329
332 static xtd::drawing::image view_forward() {return view_forward(xtd::forms::theme_images::current_theme(), size());}
340 static xtd::drawing::image view_forward(const xtd::drawing::size& size) {return view_forward(xtd::forms::theme_images::current_theme(), size);}
345 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);}
351
354 static xtd::drawing::image help_about() {return help_about(xtd::forms::theme_images::current_theme(), size());}
362 static xtd::drawing::image help_about(const xtd::drawing::size& size) {return help_about(xtd::forms::theme_images::current_theme(), size);}
367 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);}
373
377
382 static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
389 static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
396 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);}
404 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);}
412 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);}
413 };
414 }
415}
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
static xtd::operating_system os_version()
Gets an operating_system object that contains the current platform identifier and version number.
Definition: theme_images.h:14
Definition: theme.h:14
Provides a tool bar images factories for use by a tool_bar control.
Definition: tool_bar_images.h:20
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: tool_bar_images.h:367
static xtd::drawing::image file_save(const xtd::ustring &theme)
File save image object with specified theme.
Definition: tool_bar_images.h:72
static xtd::drawing::image file_save_as()
File save as image object.
Definition: tool_bar_images.h:90
static xtd::drawing::image file_print(const xtd::ustring &theme)
File print image object with specified theme.
Definition: tool_bar_images.h:116
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: tool_bar_images.h:147
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: tool_bar_images.h:257
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: tool_bar_images.h:59
static xtd::drawing::image file_new()
File new image object.
Definition: tool_bar_images.h:24
static xtd::drawing::image file_new(const xtd::ustring &theme)
File new image object with specified theme.
Definition: tool_bar_images.h:28
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: tool_bar_images.h:328
static xtd::drawing::image view_back(const xtd::ustring &theme)
View back image object with specified theme.
Definition: tool_bar_images.h:314
static xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name)
Gets image object with specified theme and name.
Definition: tool_bar_images.h:389
static xtd::drawing::image edit_copy(const xtd::drawing::size &size)
Edit copy image object with specified size.
Definition: tool_bar_images.h:274
static xtd::drawing::image edit_redo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: tool_bar_images.h:226
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: tool_bar_images.h:240
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: tool_bar_images.h:262
static xtd::drawing::image file_open()
File open image object.
Definition: tool_bar_images.h:46
static xtd::drawing::image edit_paste(const xtd::drawing::size &size)
Edit paste image object with specified size.
Definition: tool_bar_images.h:296
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: tool_bar_images.h:191
static xtd::drawing::image file_page_setup()
File page setup image object.
Definition: tool_bar_images.h:156
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: tool_bar_images.h:301
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: tool_bar_images.h:345
static xtd::drawing::image edit_cut()
Edit cut image object.
Definition: tool_bar_images.h:244
static xtd::drawing::image edit_cut(const xtd::drawing::size &size)
Edit cut image object with specified size.
Definition: tool_bar_images.h:252
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: tool_bar_images.h:372
static xtd::drawing::image file_save()
File save image object.
Definition: tool_bar_images.h:68
static xtd::drawing::image file_page_setup(const xtd::ustring &theme)
File page setup image object with specified theme.
Definition: tool_bar_images.h:160
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: tool_bar_images.h:37
static xtd::drawing::image file_open(const xtd::drawing::size &size)
File open image object with specified size.
Definition: tool_bar_images.h:54
static xtd::drawing::image edit_undo(const xtd::drawing::size &size)
Edit undoEdit undo image object with specified size.
Definition: tool_bar_images.h:208
static xtd::drawing::image file_print(const xtd::drawing::size &size)
File print image object with specified size.
Definition: tool_bar_images.h:120
static xtd::drawing::image from_name(const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
Definition: tool_bar_images.h:396
static xtd::drawing::image file_save_as(const xtd::ustring &theme)
File save as image object with specified theme.
Definition: tool_bar_images.h:94
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: tool_bar_images.h:86
static xtd::drawing::image edit_paste(const xtd::ustring &theme)
Edit paste image object with specified theme.
Definition: tool_bar_images.h:292
static xtd::drawing::image file_save_as(const xtd::ustring &theme, const xtd::drawing::size &size)
File save as image object with specified theme and size.
Definition: tool_bar_images.h:103
static xtd::drawing::image view_forward(const xtd::ustring &theme)
View forward image object with specified theme.
Definition: tool_bar_images.h:336
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: tool_bar_images.h:81
static xtd::drawing::image file_print_preview(const xtd::drawing::size &size)
File print preview image object with specified size.
Definition: tool_bar_images.h:142
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: tool_bar_images.h:404
static xtd::drawing::image file_save(const xtd::drawing::size &size)
File save image object with specified size.
Definition: tool_bar_images.h:76
static xtd::drawing::image file_new(const xtd::drawing::size &size)
File new image object with specified size.
Definition: tool_bar_images.h:32
static xtd::drawing::image view_back(const xtd::drawing::size &size)
View back image object with specified size.
Definition: tool_bar_images.h:318
static xtd::drawing::image file_print_preview(const xtd::ustring &theme)
File print preview image object with specified theme.
Definition: tool_bar_images.h:138
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: tool_bar_images.h:218
static xtd::drawing::image file_page_setup(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File page setup image object with specified theme and size.
Definition: tool_bar_images.h:174
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: tool_bar_images.h:306
static xtd::drawing::image file_save_as(const xtd::forms::theme_images &theme, const xtd::drawing::size &size)
File save as image object with specified theme and size.
Definition: tool_bar_images.h:108
static xtd::drawing::image view_back()
View back image object.
Definition: tool_bar_images.h:310
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: tool_bar_images.h:412
static xtd::drawing::image file_exit(const xtd::drawing::size &size)
File exit image object with specified size.
Definition: tool_bar_images.h:186
static xtd::drawing::image help_about(const xtd::drawing::size &size)
Help about image object with specified size.
Definition: tool_bar_images.h:362
static xtd::drawing::image file_page_setup(const xtd::drawing::size &size)
File page setup image object with specified size.
Definition: tool_bar_images.h:164
static xtd::drawing::image help_about(const xtd::ustring &theme)
Help about image object with specified theme.
Definition: tool_bar_images.h:358
static xtd::drawing::image file_exit()
File exit image object.
Definition: tool_bar_images.h:178
static xtd::drawing::image edit_copy(const xtd::ustring &theme)
Edit copy image object with specified theme.
Definition: tool_bar_images.h:270
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: tool_bar_images.h:279
static xtd::drawing::image edit_cut(const xtd::ustring &theme)
Edit cut image object with specified theme.
Definition: tool_bar_images.h:248
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: tool_bar_images.h:284
static xtd::drawing::image file_print()
File print image object.
Definition: tool_bar_images.h:112
static xtd::drawing::image file_print_preview()
File print preview image object.
Definition: tool_bar_images.h:134
static xtd::drawing::image edit_undo(const xtd::ustring &theme)
Edit undo image object with specified theme.
Definition: tool_bar_images.h:204
static xtd::drawing::image file_open(const xtd::ustring &theme)
File open image object with specified theme.
Definition: tool_bar_images.h:50
static xtd::drawing::image view_forward(const xtd::drawing::size &size)
View forward image object with specified size.
Definition: tool_bar_images.h:340
static xtd::drawing::image file_page_setup(const xtd::ustring &theme, const xtd::drawing::size &size)
File page setup image object with specified theme and size.
Definition: tool_bar_images.h:169
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: tool_bar_images.h:196
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: tool_bar_images.h:64
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: tool_bar_images.h:323
static xtd::drawing::image edit_paste()
Edit paste image object.
Definition: tool_bar_images.h:288
static xtd::drawing::image file_save_as(const xtd::drawing::size &size)
File save as image object with specified size.
Definition: tool_bar_images.h:98
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: tool_bar_images.h:213
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: tool_bar_images.h:42
static xtd::drawing::image help_about()
Help about image object.
Definition: tool_bar_images.h:354
static xtd::drawing::image edit_redo()
Edit undo image object.
Definition: tool_bar_images.h:222
static xtd::drawing::image view_forward()
View forward image object.
Definition: tool_bar_images.h:332
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: tool_bar_images.h:130
static xtd::drawing::image edit_redo(const xtd::drawing::size &size)
Edit undo image object with specified size.
Definition: tool_bar_images.h:230
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: tool_bar_images.h:152
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: tool_bar_images.h:235
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: tool_bar_images.h:382
static xtd::drawing::size size()
Gets the height and width of the menu images.
Definition: tool_bar_images.h:376
static xtd::drawing::image file_exit(const xtd::ustring &theme)
File exit image object with specified theme.
Definition: tool_bar_images.h:182
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: tool_bar_images.h:350
static xtd::drawing::image edit_copy()
Edit copy image object.
Definition: tool_bar_images.h:266
static xtd::drawing::image edit_undo()
Edit undo image object.
Definition: tool_bar_images.h:200
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: tool_bar_images.h:125
bool is_windows_platform() const noexcept
Determines whether the current platform is Windows family.
Definition: operating_system.h:86
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Contains xtd::environment class.
#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.