xtd 1.0.0
Loading...
Searching...
No Matches
item_check_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include "check_state.hpp"
7#include <xtd/event_args>
8#include <xtd/usize_object>
9#include <cstdint>
10
12namespace xtd {
14 namespace forms {
16 class control;
18
31 public:
33
41
43
48 [[nodiscard]] auto current_value() const noexcept -> xtd::forms::check_state {return current_value_;}
49
53 [[nodiscard]] auto index() const noexcept -> xtd::usize {return index_;}
54
58 [[nodiscard]] auto new_value() const noexcept -> xtd::forms::check_state {return new_value_;}
63 new_value_ = value;
64 return *this;
65 }
66
67
68 private:
72 };
73 }
74}
Contains xtd::forms::check_state enum class.
static constexpr xtd::usize max_value
Definition box_integer.hpp:71
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
item_check_event_args(xtd::usize index, xtd::forms::check_state new_value, xtd::forms::check_state current_value)
Initializes a new instance of the item_check_event_args class.
Definition item_check_event_args.hpp:39
auto new_value(xtd::forms::check_state value) -> item_check_event_args &
Gets a value indicating whether to set the check box for the item to be checked, unchecked,...
Definition item_check_event_args.hpp:62
auto new_value() const noexcept -> xtd::forms::check_state
Gets a value indicating whether to set the check box for the item to be checked, unchecked,...
Definition item_check_event_args.hpp:58
auto index() const noexcept -> xtd::usize
Gets the zero-based index of the item to change.
Definition item_check_event_args.hpp:53
auto current_value() const noexcept -> xtd::forms::check_state
Gets a value indicating the current state of the item's check box.
Definition item_check_event_args.hpp:48
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
check_state
Specifies the state of a control, such as a check box, that can be checked, unchecked,...
Definition check_state.hpp:23
@ unchecked
The control is unchecked.
Definition check_state.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