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
system_icons.h
Go to the documentation of this file.
1
4#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
14namespace xtd {
16 namespace drawing {
24 class system_icons final static_ {
25 public:
26 static xtd::drawing::icon application() {return application(default_size());}
27 static xtd::drawing::icon application(const xtd::drawing::size& size) {return from_name("application-x-executable", size);}
28 static xtd::drawing::icon error() {return error(default_size());}
29 static xtd::drawing::icon error(const xtd::drawing::size& size) {return from_name("dialog-error", size);}
30 static xtd::drawing::icon exclamation() {return exclamation(default_size());}
31 static xtd::drawing::icon exclamation(const xtd::drawing::size& size) {return from_name("dialog-warning", size);}
32 static xtd::drawing::icon information() {return information(default_size());}
33 static xtd::drawing::icon information(const xtd::drawing::size& size) {return from_name("dialog-information", size);}
34 static xtd::drawing::icon question() {return question(default_size());}
35 static xtd::drawing::icon question(const xtd::drawing::size& size) {return from_name("dialog-question", size);}
36 static xtd::drawing::icon shield() {return shield(default_size());}
37 static xtd::drawing::icon shield(const xtd::drawing::size& size) {return from_name("dialog-password", size);}
38 static xtd::drawing::icon win_logo() {return windows_logo(default_size());}
39 static xtd::drawing::icon win_logo(const xtd::drawing::size& size) {return windows_logo(size);}
40
41 static xtd::drawing::size default_size() {return {32, 32};}
42 static xtd::drawing::icon kde_logo() {return kde_logo(default_size());}
43 static xtd::drawing::icon kde_logo(const xtd::drawing::size& size) {return from_name("kde", "start-here", size);}
44 static xtd::drawing::icon macos_logo() {return macos_logo(default_size());}
45 static xtd::drawing::icon macos_logo(const xtd::drawing::size& size) {return from_name("macos", "start-here", size);}
46 static xtd::drawing::icon gnome_logo() {return gnome_logo(default_size());}
47 static xtd::drawing::icon gnome_logo(const xtd::drawing::size& size) {return from_name("gnome", "start-here", size);}
48 static xtd::drawing::icon symbolic_logo() {return symbolic_logo(default_size());}
49 static xtd::drawing::icon symbolic_logo(const xtd::drawing::size& size) {return from_name("symbolic", "start-here", size);}
50 static xtd::drawing::icon windows_logo() {return windows_logo(default_size());}
51 static xtd::drawing::icon windows_logo(const xtd::drawing::size& size) {return from_name("windows", "start-here", size);}
52 static xtd::drawing::icon gammasoft() {return gammasoft(default_size());}
53 static xtd::drawing::icon gammasoft(const xtd::drawing::size& size) {return from_name("gammasoft", size);}
54 static xtd::drawing::icon xtd_logo() {return xtd_logo(default_size());}
55 static xtd::drawing::icon xtd_logo(const xtd::drawing::size& size) {return from_name("xtd", size);}
56 static xtd::drawing::icon xtd_forms_logo() {return xtd_forms_logo(default_size());}
57 static xtd::drawing::icon xtd_forms_logo(const xtd::drawing::size& size) {return from_name("xtd-forms", size);}
58
59 static xtd::drawing::icon from_name(const xtd::ustring& name) {return from_name(system_images::default_theme(), name, default_size());}
60 static xtd::drawing::icon from_name(const xtd::ustring& name, const xtd::drawing::size& size) {return from_name(system_images::default_theme(), name, size);}
61 static xtd::drawing::icon from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, default_size());}
62 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)));}
63 };
64 }
65}
66
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.h:19
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.h:22
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:25
Each property of the xtd::drawing::system_icons class is an xtd::drawing::icon object for Windows sys...
Definition system_icons.h:24
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
Contains xtd::drawing::icon class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::drawing::size class.
Contains xtd::static_object class.
Contains xtd::drawing::system_images factory.