xtd 0.2.0
Loading...
Searching...
No Matches
images.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "application.hpp"
6#include <xtd/static>
7#include <xtd/drawing/system_images>
8
10namespace xtd {
12 namespace forms {
23 class images final static_ {
24 public:
26
34 static xtd::drawing::image image_loading() noexcept {return from_name("image-loading");}
39 static xtd::drawing::image image_loading(const xtd::drawing::size& size) noexcept {return from_name("image-loading", size);}
43 static xtd::drawing::image image_missing() noexcept {return from_name("image-missing");}
48 static xtd::drawing::image image_missing(const xtd::drawing::size& size) noexcept {return from_name("image-missing", size);}
49
69 static std::vector<xtd::string> contexts() noexcept {return drawing::system_images::contexts();}
463 static std::map<xtd::string, std::vector<xtd::string>> context_names() noexcept {return drawing::system_images::context_names();}
856 static std::vector<xtd::string> names() noexcept {return drawing::system_images::names();}
1251 static std::vector<xtd::string> names(const xtd::string& context) noexcept {return drawing::system_images::names(context);}
1258 static std::vector<xtd::drawing::size> sizes() noexcept {return drawing::system_images::sizes();}
1260
1262
1268 static xtd::drawing::image from_name(const xtd::string& name) {return from_name(name, size());}
1275 static xtd::drawing::image from_name(const xtd::string& theme, const xtd::string& name) {return from_name(theme, name, size());}
1292 };
1293 }
1294}
Contains xtd::forms::application class.
Represents text as a sequence of character units.
Definition basic_string.hpp:79
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
static std::map< xtd::string, std::vector< xtd::string > > context_names() noexcept
Gets the image context names.
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
static std::vector< xtd::string > names() noexcept
Gets the image names.
static std::vector< xtd::string > contexts() noexcept
Gets the image contexts.
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
Provides images factories for use by control.
Definition images.hpp:23
static xtd::drawing::image image_loading(const xtd::drawing::size &size) noexcept
Gets the image loading with specified size.
Definition images.hpp:39
static xtd::drawing::image from_name(const xtd::string &theme, const xtd::string &name)
Gets image object with specified theme and name.
Definition images.hpp:1275
static xtd::drawing::image from_name(const xtd::string &theme, const xtd::string &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
static xtd::drawing::image from_name(const xtd::string &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
static std::vector< xtd::string > contexts() noexcept
Gets the image contexts.
Definition images.hpp:69
static std::map< xtd::string, std::vector< xtd::string > > context_names() noexcept
Gets the image context names.
Definition images.hpp:463
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
Definition images.hpp:30
static xtd::drawing::image image_loading() noexcept
Gets the image loading.
Definition images.hpp:34
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition images.hpp:1254
static std::vector< xtd::string > names(const xtd::string &context) noexcept
Gets the image names for the specified context.
Definition images.hpp:1251
static std::vector< xtd::string > names() noexcept
Gets the image names.
Definition images.hpp:856
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition images.hpp:1268
static xtd::drawing::image image_missing(const xtd::drawing::size &size) noexcept
Gets the image missing with specified size.
Definition images.hpp:48
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
Definition images.hpp:1258
static xtd::drawing::image image_missing() noexcept
Gets the image missing.
Definition images.hpp:43
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
@ theme
Defines a 3D themed border. The effect depends on the border color value.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10