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;
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
component()
Initialises a new instance of the component class.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
const drawing::size image_size() const noexcept
Gets the size of the images in the image list.
image_list()
Initialize a new instance ao image_list class.
const xtd::any_object & tag() const noexcept
Gets an object that contains additional data about the image_list.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
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
intptr handle() const noexcept
Gets the handle of the image list object.
image_collection & images()
Gets the xtd::forms::image_list::image_collection for this image list.
static image_list empty
Represents an image_list empty.
Definition image_list.hpp:45
bool handle_created() const noexcept
Gets a value indicating whether the underlying Win32 handle has been created.
Represents a collection of objects.
Definition arranged_element_collection.hpp:35
static constexpr xtd::size npos
Definition arranged_element_collection.hpp:99
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
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
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 const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201