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.
system_icons.h
Go to the documentation of this file.
1 #pragma once
5 #include "icon.h"
6 #include "system_images.h"
7 #include "size.h"
8 #include <map>
9 #include <string>
10 #include <vector>
11 #include <xtd/static.h>
12 
14 namespace xtd {
16  namespace drawing {
24  class system_icons final static_ {
25  public:
27 
29  static xtd::drawing::icon application() {return application(default_size());}
30  static xtd::drawing::icon application(const xtd::drawing::size& size) {return from_name("application-x-executable", size);}
31  static xtd::drawing::icon error() {return error(default_size());}
32  static xtd::drawing::icon error(const xtd::drawing::size& size) {return from_name("dialog-error", size);}
33  static xtd::drawing::icon exclamation() {return exclamation(default_size());}
34  static xtd::drawing::icon exclamation(const xtd::drawing::size& size) {return from_name("dialog-warning", size);}
35  static xtd::drawing::icon information() {return information(default_size());}
36  static xtd::drawing::icon information(const xtd::drawing::size& size) {return from_name("dialog-information", size);}
37  static xtd::drawing::icon question() {return question(default_size());}
38  static xtd::drawing::icon question(const xtd::drawing::size& size) {return from_name("dialog-question", size);}
39  static xtd::drawing::icon shield() {return shield(default_size());}
40  static xtd::drawing::icon shield(const xtd::drawing::size& size) {return from_name("dialog-password", size);}
41  static xtd::drawing::icon win_logo() {return windows_logo(default_size());}
42  static xtd::drawing::icon win_logo(const xtd::drawing::size& size) {return windows_logo(size);}
43 
44  static xtd::drawing::size default_size() {return {32, 32};}
45  static xtd::drawing::icon kde_logo() {return kde_logo(default_size());}
46  static xtd::drawing::icon kde_logo(const xtd::drawing::size& size) {return from_name("kde", "start-here", size);}
47  static xtd::drawing::icon macos_logo() {return macos_logo(default_size());}
48  static xtd::drawing::icon macos_logo(const xtd::drawing::size& size) {return from_name("macos", "start-here", size);}
49  static xtd::drawing::icon gnome_logo() {return gnome_logo(default_size());}
50  static xtd::drawing::icon gnome_logo(const xtd::drawing::size& size) {return from_name("gnome", "start-here", size);}
51  static xtd::drawing::icon symbolic_logo() {return symbolic_logo(default_size());}
52  static xtd::drawing::icon symbolic_logo(const xtd::drawing::size& size) {return from_name("symbolic", "start-here", size);}
53  static xtd::drawing::icon windows_logo() {return windows_logo(default_size());}
54  static xtd::drawing::icon windows_logo(const xtd::drawing::size& size) {return from_name("windows", "start-here", size);}
55  static xtd::drawing::icon gammasoft() {return gammasoft(default_size());}
56  static xtd::drawing::icon gammasoft(const xtd::drawing::size& size) {return from_name("gammasoft", size);}
57  static xtd::drawing::icon xtd_logo() {return xtd_logo(default_size());}
58  static xtd::drawing::icon xtd_logo(const xtd::drawing::size& size) {return from_name("xtd", size);}
59  static xtd::drawing::icon xtd_forms_logo() {return xtd_forms_logo(default_size());}
60  static xtd::drawing::icon xtd_forms_logo(const xtd::drawing::size& size) {return from_name("xtd-forms", size);}
62 
64 
66  static xtd::drawing::icon from_name(const xtd::ustring& name) {return from_name(system_images::default_theme(), name, default_size());}
67  static xtd::drawing::icon from_name(const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(system_images::default_theme(), name, size);}
68  static xtd::drawing::icon from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, default_size());}
69  static xtd::drawing::icon from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size) {return xtd::drawing::icon::from_bitmap(bitmap(system_images::from_name(theme, name, size)));}
71  };
72  }
73 }
74 
Contains xtd::static_object class.
Contains xtd::drawing::icon class.
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:38
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Each property of the xtd::drawing::system_icons class is an xtd::drawing::icon object for Windows sys...
Definition: system_icons.h:24
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes...
Definition: bitmap.h:19
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets system image from specified name.
Definition: system_images.h:54
Contains xtd::drawing::size class.
Contains xtd::drawing::system_images factory.
Represents a Windows icon, which is a small bitmap image that is used to represent an object...
Definition: icon.h:22