xtd 0.2.0
Loading...
Searching...
No Matches
system_images_base.h
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.h"
6#include "bitmap.h"
7#include "size.h"
8#include <xtd/static>
9#include <xtd/target_id>
10#include <map>
11
13namespace xtd {
15 namespace drawing {
17 class system_icons;
19
33 protected:
35
40
60 static std::vector<xtd::string> contexts() noexcept;
454 static std::map<xtd::string, std::vector<xtd::string>> context_names() noexcept;
847 static std::vector<xtd::string> names() noexcept;
1242 static std::vector<xtd::string> names(const xtd::string& context) noexcept;
1246 static std::vector<xtd::drawing::size> sizes() noexcept;
1248
1250
1257 static xtd::drawing::image from_name(const xtd::string& name);
1263 static xtd::drawing::image from_name(const xtd::string& name, const xtd::drawing::size& size);
1269 static xtd::drawing::image from_name(const xtd::string& theme, const xtd::string& name);
1275 static xtd::drawing::image from_name(const xtd::string& theme, const xtd::string& name, const xtd::drawing::size& size);
1277
1278 private:
1279 // This method is only needed to disable the native::system::image::form_name function during unit testing.
1280 static bool native_system_images_from_name_enabled() noexcept {return __XTD_CURRENT_TARGET_ID__ != __XTD_TARGET_ID_TEST_APPLICATION__;}
1281 friend class system_icons;
1282 static xtd::string default_theme() noexcept;
1283 static xtd::string fallback_theme() noexcept;
1284 static std::vector<xtd::string> themes() noexcept;
1285 };
1286 }
1287}
1288
Contains xtd::drawing::bitmap class.
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
Each property of the xtd::drawing::system_icons class is an xtd::drawing::icon object for Windows sys...
Definition system_icons.h:28
Represents the base for all system_images clases (xtd::drawing::system_images).
Definition system_images_base.h:32
static xtd::drawing::size default_size() noexcept
Gets system image from specified name.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::drawing::size class.