xtd - Reference Guide 0.2.0
system_images.h
Go to the documentation of this file.
1 #pragma once
5 #include <map>
6 #include <xtd/static.h>
7 #include "../drawing_export.h"
8 #include "bitmap.h"
9 #include "size.h"
10 
12 namespace xtd {
14  namespace drawing {
16  class system_icons;
18 
31  class drawing_export_ system_images final static_ {
32  public:
34 
38  static xtd::drawing::size default_size() noexcept;
42  static xtd::drawing::image image_loading() noexcept;
47  static xtd::drawing::image image_loading(const xtd::drawing::size& size) noexcept ;
51  static xtd::drawing::image image_missing() noexcept;
56  static xtd::drawing::image image_missing(const xtd::drawing::size& size) noexcept;
57 
77  static std::vector<xtd::ustring> contexts() noexcept;
471  static std::map<xtd::ustring, std::vector<xtd::ustring>> context_names() noexcept;
864  static std::vector<xtd::ustring> names() noexcept;
1259  static std::vector<xtd::ustring> names(const xtd::ustring& context) noexcept;
1263  static std::vector<xtd::drawing::size> sizes() noexcept;
1265 
1267 
1274  static xtd::drawing::image from_name(const xtd::ustring& name);
1280  static xtd::drawing::image from_name(const xtd::ustring& name, const xtd::drawing::size& size);
1286  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name);
1292  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size);
1294 
1295  private:
1296  friend class system_icons;
1297  static xtd::ustring default_theme() noexcept;
1298  static xtd::ustring fallback_theme() noexcept;
1299  static std::vector<xtd::ustring> themes() noexcept;
1300  };
1301  }
1302 }
1303 
Contains xtd::static_object 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
Each property of the xtd::drawing::system_images class is an xtd::drawing::image object for Windows s...
Definition: system_images.h:31
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:30
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:51
Each property of the xtd::drawing::system_icons class is an xtd::drawing::icon object for Windows sys...
Definition: system_icons.h:29
Contains xtd::drawing::size class.
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:47
Contains xtd::drawing::bitmap class.