xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
xtd::forms::layout::arranged_element_collection< type_t, sorter_t > Class Template Reference

Represents a collection of objects. More...

#include <arranged_element_collection.h>

Classes

class  item_t
 

Public Types

using value_type = item_t
 types More...
 
using allocator_type = std::allocator< item_t >
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = typename std::allocator_traits< allocator_type >::pointer
 
using const_pointer = typename std::allocator_traits< allocator_type >::const_pointer
 
using iterator = typename std::vector< value_type >::iterator
 
using const_iterator = typename std::vector< value_type >::const_iterator
 
using reverse_iterator = typename std::vector< value_type >::reverse_iterator
 
using const_reverse_iterator = typename std::vector< value_type >::const_reverse_iterator
 

Public Member Functions

 arranged_element_collection (const allocator_type &allocator=allocator_type())
 Creats a new object arranged_element_collection More...
 
reference at (size_type pos)
 
const_reference at (size_type pos) const
 
reference back ()
 
const_reference back () const
 
iterator begin ()
 
const_iterator begin () const
 
size_type capacity () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void clear ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
value_typedata ()
 
const value_typedata () const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
iterator erase (const_iterator pos)
 
iterator erase (iterator first, iterator last)
 
iterator erase (const_iterator first, const_iterator last)
 
void erase_at (size_t index)
 
reference front ()
 
const_reference front () const
 
allocator_type get_allocator () const
 
iterator insert (iterator pos, const value_type &value)
 
iterator insert (const_iterator pos, const value_type &value)
 
iterator insert (const_iterator pos, const value_type &&value)
 
void insert_at (size_t index, const value_type &value)
 
size_type max_size () const
 
reference operator[] (size_type pos)
 
const_reference operator[] (size_type pos) const
 
void push_back (const value_type &item)
 
void push_back (value_type &&item)
 
void push_back_range (const arranged_element_collection &collection)
 
void push_back_range (const std::vector< value_type > &collection)
 
void push_back_range (const std::initializer_list< value_type > &collection)
 
template<typename collection_t >
void push_back_range (collection_t collection)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void reserve (size_type size)
 
void shrink_to_fit ()
 
size_type size () const
 
void sort ()
 
bool sorted () const
 
void sorted (bool value)
 
std::vector< type_t > to_array () const
 
std::vector< type_t > to_vector () const
 

Public Attributes

event< arranged_element_collection, delegate< void(size_t, type_t &item)> > item_added
 Occurs when an item is added to the collection. More...
 
event< arranged_element_collection, delegate< void(size_t, type_t &item)> > item_erased
 Occurs when an item is erased from the collection. More...
 
event< arranged_element_collection, delegate< void(size_t, type_t &item)> > item_updated
 Occurs when an item is updated in the collection. More...
 

Detailed Description

template<typename type_t, typename sorter_t = sorter_none>
class xtd::forms::layout::arranged_element_collection< type_t, sorter_t >

Represents a collection of objects.

Remarks
The arranged_element_collection class represents a collection of objects arranged on a design surface or inside a parent xtd.forms::container_control.

Member Typedef Documentation

§ value_type

template<typename type_t, typename sorter_t = sorter_none>
using xtd::forms::layout::arranged_element_collection< type_t, sorter_t >::value_type = item_t

types

Constructor & Destructor Documentation

§ arranged_element_collection()

template<typename type_t, typename sorter_t = sorter_none>
xtd::forms::layout::arranged_element_collection< type_t, sorter_t >::arranged_element_collection ( const allocator_type &  allocator = allocator_type())
inlineexplicit

Creats a new object arranged_element_collection

Member Data Documentation

§ item_added

template<typename type_t, typename sorter_t = sorter_none>
event<arranged_element_collection, delegate<void(size_t, type_t& item)> > xtd::forms::layout::arranged_element_collection< type_t, sorter_t >::item_added

Occurs when an item is added to the collection.

§ item_erased

template<typename type_t, typename sorter_t = sorter_none>
event<arranged_element_collection, delegate<void(size_t, type_t& item)> > xtd::forms::layout::arranged_element_collection< type_t, sorter_t >::item_erased

Occurs when an item is erased from the collection.

§ item_updated

template<typename type_t, typename sorter_t = sorter_none>
event<arranged_element_collection, delegate<void(size_t, type_t& item)> > xtd::forms::layout::arranged_element_collection< type_t, sorter_t >::item_updated

Occurs when an item is updated in the collection.


The documentation for this class was generated from the following file: