xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
container_control.h
Go to the documentation of this file.
1
4#pragma once
6
8namespace xtd {
10 namespace forms {
22 public:
25 std::optional<control_ref> active_control() const {return active_control_;}
28 void active_control(const control& active_control);
31 void active_control(std::nullptr_t) {active_control_.reset();}
32
33 protected:
35 container_control() = default;
36
38
40 std::optional<control_ref> active_control_;
42 };
43 }
44}
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:25
Provides focus-management functionality for controls that can function as a container for other contr...
Definition container_control.h:21
container_control()=default
Initializes a new instance of the ContainerControl class.
std::optional< control_ref > active_control() const
Gets the active control on the container control.
Definition container_control.h:25
void active_control(std::nullptr_t)
Resets the active control on the container control.
Definition container_control.h:31
void active_control(const control &active_control)
Sets the active control on the container control.
drawing::size measure_control() const override
Measure this control.
Defines the base class for controls, which are components with visual representation.
Definition control.h:67
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:18
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::forms::scrollable_control control.