xtd 0.2.0
Loading...
Searching...
No Matches
image_list.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "component.hpp"
7#include <xtd/any>
8#include <xtd/iequatable>
9#include <xtd/drawing/image>
10
12namespace xtd {
14 namespace forms {
30 class forms_export_ image_list final : public component, public xtd::iequatable<image_list> {
31 struct data;
32
33 public:
35
40
42
46
47 inline static constexpr xtd::size npos = image_collection::npos;
49
51
56
59 image_list(const image_list&) = default;
60 image_list& operator =(const image_list&) = default;
62
64
68 intptr handle() const noexcept;
69
72 bool handle_created() const noexcept;
73
81 const image_collection& images() const noexcept;
82
85 const drawing::size image_size() const noexcept;
91 const image_list& image_size(const drawing::size& value);
92
95 std::any tag() const noexcept;
98 image_list& tag(const std::any& tag);
100
102
104 using object::equals;
105 bool equals(const image_list& value) const noexcept override;
107
108 private:
109 xtd::sptr<data> data_;
110 };
111 }
112}
Contains xtd::forms::layout::arranged_element_collection collection.
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:25
Provides methods to manage a collection of xtd::drawing::image objects. This class cannot be inherite...
Definition image_list.hpp:30
image_list()
Initialize a new instance ao image_list class.
intptr handle() const noexcept
Gets the handle of the image list object.
static image_list empty
Represents an image_list empty.
Definition image_list.hpp:45
Provides images factories for use by control.
Definition images.hpp:23
Represents a collection of objects.
Definition arranged_element_collection.hpp:34
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Contains xtd::forms::component class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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