xtd 0.2.0
images.h
Go to the documentation of this file.
1 #pragma once
5 #include "application.h"
6 #include <xtd/static>
7 #include <xtd/drawing/system_images>
8 
10 namespace xtd {
12  namespace forms {
21  class images final static_ {
22  public:
24 
32  static xtd::drawing::image image_loading() noexcept {return from_name("image-loading");}
37  static xtd::drawing::image image_loading(const xtd::drawing::size& size) noexcept {return from_name("image-loading", size);}
41  static xtd::drawing::image image_missing() noexcept {return from_name("image-missing");}
46  static xtd::drawing::image image_missing(const xtd::drawing::size& size) noexcept {return from_name("image-missing", size);}
47 
67  static std::vector<xtd::ustring> contexts() noexcept {return drawing::system_images::contexts();}
461  static std::map<xtd::ustring, std::vector<xtd::ustring>> context_names() noexcept {return drawing::system_images::context_names();}
854  static std::vector<xtd::ustring> names() noexcept {return drawing::system_images::names();}
1249  static std::vector<xtd::ustring> names(const xtd::ustring& context) noexcept {return drawing::system_images::names(context);}
1252  static xtd::drawing::size size() {return default_size();}
1256  static std::vector<xtd::drawing::size> sizes() noexcept {return drawing::system_images::sizes();}
1258 
1260 
1266  static xtd::drawing::image from_name(const xtd::ustring& name) {return from_name(name, size());}
1273  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name) {return from_name(theme, name, size());}
1288  static xtd::drawing::image from_name(const xtd::ustring& theme, const xtd::ustring& name, const xtd::drawing::size& size);
1290  };
1291  }
1292 }
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
Definition: images.h:1256
static xtd::drawing::image image_missing(const xtd::drawing::size &size) noexcept
Gets the image missing with specified size.
Definition: images.h:46
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition: images.h:1252
static std::map< xtd::ustring, std::vector< xtd::ustring > > context_names() noexcept
Gets the image context names.
Definition: images.h:461
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
Definition: images.h:28
Contains xtd::forms::application class.
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
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:46
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition: images.h:1266
static std::vector< xtd::ustring > contexts() noexcept
Gets the image contexts.
static xtd::drawing::image image_loading() noexcept
Gets the image loading.
Definition: images.h:32
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
static xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name)
Gets image object with specified theme and name.
Definition: images.h:1273
static xtd::drawing::image image_missing() noexcept
Gets the image missing.
Definition: images.h:41
static xtd::drawing::image image_loading(const xtd::drawing::size &size) noexcept
Gets the image loading with specified size.
Definition: images.h:37
static std::vector< xtd::ustring > contexts() noexcept
Gets the image contexts.
Definition: images.h:67
static std::vector< xtd::ustring > names() noexcept
Gets the image names.
Definition: images.h:854
static std::vector< xtd::ustring > names() noexcept
Gets the image names.
static std::map< xtd::ustring, std::vector< xtd::ustring > > context_names() noexcept
Gets the image context names.
static std::vector< xtd::ustring > names(const xtd::ustring &context) noexcept
Gets the image names for the specified context.
Definition: images.h:1249
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides images factories for use by control.
Definition: images.h:21
Defines a 3D themed border. The effect depends on the border color value.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195