xtd 1.0.0
Loading...
Searching...
No Matches
container_control.hpp
Go to the documentation of this file.
1
4#pragma once
6
8namespace xtd {
10 namespace forms {
26 public:
28
32 [[nodiscard]] auto active_control() const noexcept -> std::optional<xtd::forms::control_ref>;
35 auto active_control(const xtd::forms::control& value) -> void;
40
41 protected:
43
48
50
52 [[nodiscard]] auto measure_control() const noexcept -> xtd::drawing::size override;
54
56 std::optional<xtd::forms::control_ref> active_control_;
58 };
59 }
60}
auto active_control() const noexcept -> std::optional< xtd::forms::control_ref >
Gets the active control on the container control.
container_control()
Initializes a new instance of the container_control class.
auto measure_control() const noexcept -> xtd::drawing::size override
Measure this control.
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
virtual auto size() const noexcept -> xtd::drawing::size
Gets the height and width of the control.
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.hpp:22
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.hpp:19
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:26
xtd::ref< xtd::forms::control > control_ref
Represents a control reference.
Definition control_ref.hpp:25
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
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
Contains xtd::forms::scrollable_control control.