xtd 1.0.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
30 [[nodiscard]] static auto default_size() noexcept -> xtd::drawing::size {return drawing::system_images::default_size();}
34 [[nodiscard]] static auto image_loading() noexcept -> xtd::drawing::image {return from_name("image-loading");}
39 [[nodiscard]] static auto image_loading(const xtd::drawing::size& size) noexcept -> xtd::drawing::image {return from_name("image-loading", size);}
43 [[nodiscard]] static auto image_missing() noexcept -> xtd::drawing::image {return from_name("image-missing");}
48 [[nodiscard]] static auto image_missing(const xtd::drawing::size& size) noexcept -> xtd::drawing::image {return from_name("image-missing", size);}
49
69 [[nodiscard]] static auto contexts() noexcept -> xtd::array<xtd::string> {return drawing::system_images::contexts();}
463 [[nodiscard]] static auto context_names() noexcept -> std::map<xtd::string, xtd::array<xtd::string>> {return drawing::system_images::context_names();}
464
857 [[nodiscard]] static auto names() noexcept -> xtd::array<xtd::string> {return drawing::system_images::names();}
1252 [[nodiscard]] static auto names(const xtd::string& context) noexcept -> xtd::array<xtd::string> {return drawing::system_images::names(context);}
1255 [[nodiscard]] static auto size() -> xtd::drawing::size {return default_size();}
1259 [[nodiscard]] static auto sizes() noexcept -> xtd::array<xtd::drawing::size> {return drawing::system_images::sizes();}
1261
1263
1269 [[nodiscard]] static auto from_name(const xtd::string& name) -> xtd::drawing::image {return from_name(name, size());}
1276 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name) -> xtd::drawing::image {return from_name(theme, name, size());}
1283 [[nodiscard]] static auto from_name(const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image;
1291 [[nodiscard]] static auto from_name(const xtd::string& theme, const xtd::string& name, const xtd::drawing::size& size) -> xtd::drawing::image;
1293 };
1294 }
1295}
Contains xtd::forms::application class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
static auto default_size() noexcept -> xtd::drawing::size
Gets system image from specified name.
static auto names() noexcept -> xtd::array< xtd::string >
Gets the image names.
static auto sizes() noexcept -> xtd::array< xtd::drawing::size >
Gets standard sizes for image.
static auto contexts() noexcept -> xtd::array< xtd::string >
Gets the image contexts.
static auto context_names() noexcept -> std::map< xtd::string, xtd::array< xtd::string > >
Gets the image context names.
Provides images factories for use by control.
Definition images.hpp:23
static auto from_name(const xtd::string &theme, const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified theme, name and size.
static auto contexts() noexcept -> xtd::array< xtd::string >
Gets the image contexts.
Definition images.hpp:69
static auto from_name(const xtd::string &theme, const xtd::string &name) -> xtd::drawing::image
Gets image object with specified theme and name.
Definition images.hpp:1276
static auto context_names() noexcept -> std::map< xtd::string, xtd::array< xtd::string > >
Gets the image context names.
Definition images.hpp:463
static auto default_size() noexcept -> xtd::drawing::size
Gets system image from specified name.
Definition images.hpp:30
static auto image_loading(const xtd::drawing::size &size) noexcept -> xtd::drawing::image
Gets the image loading with specified size.
Definition images.hpp:39
static auto from_name(const xtd::string &name) -> xtd::drawing::image
Gets image object with specified name.
Definition images.hpp:1269
static auto names() noexcept -> xtd::array< xtd::string >
Gets the image names.
Definition images.hpp:857
static auto from_name(const xtd::string &name, const xtd::drawing::size &size) -> xtd::drawing::image
Gets image object with specified name and size.
static auto image_missing() noexcept -> xtd::drawing::image
Gets the image missing.
Definition images.hpp:43
static auto names(const xtd::string &context) noexcept -> xtd::array< xtd::string >
Gets the image names for the specified context.
Definition images.hpp:1252
static auto image_missing(const xtd::drawing::size &size) noexcept -> xtd::drawing::image
Gets the image missing with specified size.
Definition images.hpp:48
static auto image_loading() noexcept -> xtd::drawing::image
Gets the image loading.
Definition images.hpp:34
static auto size() -> xtd::drawing::size
Gets the height and width of the button images.
Definition images.hpp:1255
static auto sizes() noexcept -> xtd::array< xtd::drawing::size >
Gets standard sizes for image.
Definition images.hpp:1259
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
@ theme
Defines a 3D themed border. The effect depends on the border color value.
Definition border_style.hpp:38
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32