xtd 1.0.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 xtd::forms::component, public xtd::iequatable<image_list> {
31 struct data;
32
33 public:
35
40
42
46
49 inline static constexpr xtd::usize npos = image_collection::npos;
50
53 static inline constexpr xtd::usize bpos = image_collection::bpos;
54
59 static inline constexpr xtd::usize epos = image_collection::epos;
61
63
68
72
74
78 [[nodiscard]] auto handle() const noexcept -> xtd::intptr;
79
82 [[nodiscard]] auto handle_created() const noexcept -> bool;
83
87 [[nodiscard]] auto images() -> image_collection&;
91 [[nodiscard]] auto images() const noexcept -> const image_collection&;
92
95 [[nodiscard]] auto image_size() const noexcept -> xtd::drawing::size;
101 auto image_size(const xtd::drawing::size& value) -> image_list&;
102
105 [[nodiscard]] auto tag() const noexcept -> const xtd::any_object&;
108 auto tag(const xtd::any_object& value) -> image_list&;
110
112
117 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
121 [[nodiscard]] auto equals(const image_list& other) const noexcept -> bool override;
122
125 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
127
128 private:
129 xtd::sptr<data> data_;
130 };
131 }
132}
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
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto handle() const noexcept -> xtd::intptr
Gets the handle of the image list object.
static constexpr xtd::usize bpos
Represents the index of the first valid element in a collection.
Definition image_list.hpp:53
auto handle_created() const noexcept -> bool
Gets a value indicating whether the underlying Win32 handle has been created.
auto images() -> image_collection &
Gets the xtd::forms::image_list::image_collection for this image list.
image_list()
Initialize a new instance ao image_list class.
xtd::forms::layout::arranged_element_collection< drawing::image > image_collection
Encapsulates the collection of xtd::drawing::image objects in an image_list.
Definition image_list.hpp:38
static constexpr xtd::usize epos
Represents the index of the last valid element in a collection.
Definition image_list.hpp:59
auto image_size() const noexcept -> xtd::drawing::size
Gets the size of the images in the image list.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto tag() const noexcept -> const xtd::any_object &
Gets an object that contains additional data about the image_list.
static constexpr xtd::usize npos
Represents a value that is not a valid position in a collection.
Definition image_list.hpp:49
static image_list empty
Represents an image_list empty.
Definition image_list.hpp:45
Represents a collection of objects.
Definition arranged_element_collection.hpp:41
static constexpr xtd::usize bpos
Definition arranged_element_collection.hpp:116
static constexpr xtd::usize npos
Definition arranged_element_collection.hpp:106
static constexpr xtd::usize epos
Definition arranged_element_collection.hpp:134
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Contains xtd::forms::component class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
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
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
constexpr auto size() const noexcept -> size_type
Returns the number of elements.
Definition read_only_span.hpp:217