xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <image_list.h>
Provides methods to manage a collection of xtd::drawing::image objects. This class cannot be inherited.
Inherits xtd::forms::component.
Public Types | |
using | image_collection = layout::arranged_element_collection< drawing::image > |
Encapsulates the collection of xtd::drawing::image objects in an image_list. More... | |
Static Public Attributes | |
static image_list | empty |
Represents an image_list empty. More... | |
Public Member Functions | |
image_list () | |
Initialize a new instance ao image_list class. More... | |
intptr_t | handle () const |
Gets the handle of the image list object. More... | |
bool | handle_created () const |
Gets a value indicating whether the underlying Win32 handle has been created. More... | |
const drawing::size | image_size () const |
Gets the size of the images in the image list. More... | |
const image_list & | image_size (const drawing::size &value) |
Sets the size of the images in the image list. More... | |
image_collection & | images () |
Gets the xtd::forms::image_list::image_collection for this image list. More... | |
const image_collection & | images () const |
Gets the xtd::forms::image_list::image_collection for this image list. More... | |
std::any | tag () const |
Gets an object that contains additional data about the image_list. More... | |
const image_list & | tag (std::any &tag) |
Sets an object that contains additional data about the image_list. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. More... | |
virtual bool | can_raise_events () const |
Gets a value indicating whether the component can raise an event. More... | |
bool | design_mode () const |
Gets a value that indicates whether the component is currently in design mode. More... | |
using xtd::forms::image_list::image_collection = layout::arranged_element_collection<drawing::image> |
Encapsulates the collection of xtd::drawing::image objects in an image_list.
xtd::forms::image_list::image_list | ( | ) |
Initialize a new instance ao image_list class.
|
inline |
Gets the handle of the image list object.
|
inline |
Gets a value indicating whether the underlying Win32 handle has been created.
|
inline |
Gets the size of the images in the image list.
const image_list& xtd::forms::image_list::image_size | ( | const drawing::size & | value | ) |
Sets the size of the images in the image list.
value | The xtd::drawing::size that defines the height and width, in pixels, of the images in the list. The default size is 16 by 16. The maximum size is 256 by 256. |
|
inline |
Gets the xtd::forms::image_list::image_collection for this image list.
|
inline |
Gets the xtd::forms::image_list::image_collection for this image list.
|
inline |
Gets an object that contains additional data about the image_list.
|
inline |
Sets an object that contains additional data about the image_list.
tag | A object that contains additional data about the image_list. |
|
static |
Represents an image_list empty.