xtd 0.2.0
Loading...
Searching...
No Matches
images.h
Go to the documentation of this file.
1
4#pragma once
5#include "application.h"
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}
Represents text as a sequence of character units.
Definition basic_string.h:79
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores an ordered pair of integers, which specify a height and width.
Definition size.h: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.h:23
static xtd::drawing::image image_loading(const xtd::drawing::size &size) noexcept
Gets the image loading with specified size.
Definition images.h: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.h: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.h:69
static std::map< xtd::string, std::vector< xtd::string > > context_names() noexcept
Gets the image context names.
Definition images.h:463
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
Definition images.h:30
static xtd::drawing::image image_loading() noexcept
Gets the image loading.
Definition images.h:34
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition images.h:1254
static std::vector< xtd::string > names(const xtd::string &context) noexcept
Gets the image names for the specified context.
Definition images.h:1251
static std::vector< xtd::string > names() noexcept
Gets the image names.
Definition images.h:856
static xtd::drawing::image from_name(const xtd::string &name)
Gets image object with specified name.
Definition images.h:1268
static xtd::drawing::image image_missing(const xtd::drawing::size &size) noexcept
Gets the image missing with specified size.
Definition images.h:48
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
Definition images.h:1258
static xtd::drawing::image image_missing() noexcept
Gets the image missing.
Definition images.h:43
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
size_t size
Represents a size of any object in bytes.
Definition size.h: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.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::application class.