xtd 0.2.0
image_list.h
Go to the documentation of this file.
1 #pragma once
6 #include "component.h"
7 #include <xtd/any>
8 #include <xtd/iequatable>
9 #include <xtd/drawing/image>
10 
12 namespace xtd {
14  namespace forms {
28  class forms_export_ image_list final : public component, public xtd::iequatable<image_list> {
29  struct data;
30 
31  public:
33 
38 
40 
43  static image_list empty;
44 
45  inline static const size_t npos = image_collection::npos;
47 
49 
52  image_list();
54 
56  ~image_list();
57  image_list(const image_list&) = default;
58  image_list& operator =(const image_list&) = default;
60 
62 
66  intptr handle() const noexcept;
67 
70  bool handle_created() const noexcept;
71 
79  const image_collection& images() const noexcept;
80 
83  const drawing::size image_size() const noexcept;
89  const image_list& image_size(const drawing::size& value);
90 
93  std::any tag() const noexcept;
96  image_list& tag(const std::any& tag);
98 
100 
102  bool equals(const image_list& value) const noexcept override;
104 
105  private:
106  std::shared_ptr<data> data_;
107  };
108  }
109 }
Provides methods to manage a collection of xtd::drawing::image objects. This class cannot be inherite...
Definition: image_list.h:28
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Contains xtd::forms::layout::arranged_element_collection collection.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a collection of objects.
Definition: arranged_element_collection.h:31
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
static image_list empty
Represents an image_list empty.
Definition: image_list.h:43
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::component class.
Provides images factories for use by control.
Definition: images.h:21
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:23
size_t size
Represents a size of any object in bytes.
Definition: types.h:195