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 {
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);}
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());}
1290 };
1291 }
1292}
Contains xtd::forms::application class.
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::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
static std::vector< xtd::ustring > names() noexcept
Gets the image names.
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
static std::map< xtd::ustring, std::vector< xtd::ustring > > context_names() noexcept
Gets the image context names.
static std::vector< xtd::ustring > contexts() noexcept
Gets the image contexts.
Provides images factories for use by control.
Definition images.h:21
static xtd::drawing::image from_name(const xtd::ustring &name)
Gets image object with specified name.
Definition images.h:1266
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 xtd::drawing::image from_name(const xtd::ustring &theme, const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified theme, name and size.
static xtd::drawing::image from_name(const xtd::ustring &name, const xtd::drawing::size &size)
Gets image object with specified name and size.
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
Definition images.h:28
static xtd::drawing::image image_loading() noexcept
Gets the image loading.
Definition images.h:32
static std::vector< xtd::ustring > names() noexcept
Gets the image names.
Definition images.h:854
static xtd::drawing::size size()
Gets the height and width of the button images.
Definition images.h:1252
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::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(const xtd::drawing::size &size) noexcept
Gets the image missing with specified size.
Definition images.h:46
static std::map< xtd::ustring, std::vector< xtd::ustring > > context_names() noexcept
Gets the image context names.
Definition images.h:461
static std::vector< xtd::drawing::size > sizes() noexcept
Gets standard sizes for image.
Definition images.h:1256
static xtd::drawing::image image_missing() noexcept
Gets the image missing.
Definition images.h:41
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#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 types.h:197
@ 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