xtd 0.2.0
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 const xtd::any_object& tag() const noexcept;
98 image_list& tag(const xtd::any_object& tag);
100
102
107 bool equals(const xtd::object& obj) const noexcept override;
111 bool equals(const image_list& other) const noexcept override;
112
115 xtd::size get_hash_code() const noexcept override;
117
118 private:
119 xtd::sptr<data> data_;
120 };
121 }
122}
Contains xtd::forms::layout::arranged_element_collection collection.
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:26
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:35
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
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
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