xtd 0.2.0
Loading...
Searching...
No Matches
items_added_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/array>
6#include <xtd/event_args>
7#include <xtd/size>
8
10namespace xtd {
12 namespace forms {
14 namespace layout {
15 template<class item_t>
16 class items_added_event_args : public xtd::event_args {
17 public:
19
21 items_added_event_args(xtd::size index, const xtd::array<item_t>& items) : index_ {index}, items_ {items} {}
23
25
27 xtd::size index() const noexcept {return index_;}
28 const xtd::array<item_t>& items() const noexcept {return items_;}
30
31 private:
32 xtd::size index_;
33 xtd::array<item_t> items_;
34 };
35 }
36 }
37}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:63
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd::forms::layout namespace contains classes for implementing layout behaviors in your form or c...
Definition arranged_element_collection.hpp:25
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