xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
container_control.h
Go to the documentation of this file.
1 #pragma once
5 #include "scrollable_control.h"
6 
8 namespace xtd {
10  namespace forms {
21  class forms_export_ container_control : public scrollable_control {
22  public:
24 
28  std::optional<control_ref> active_control() const {return active_control_;}
31  void active_control(const control& active_control);
34  void active_control(std::nullptr_t) {active_control_.reset();}
36 
37  protected:
39 
42  container_control() = default;
44 
46 
48  drawing::size measure_control() const override;
50 
52  std::optional<control_ref> active_control_;
54  };
55  }
56 }
void active_control(std::nullptr_t)
Resets the active control on the container control.
Definition: container_control.h:34
Provides focus-management functionality for controls that can function as a container for other contr...
Definition: container_control.h:21
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::optional< control_ref > active_control() const
Gets the active control on the container control.
Definition: container_control.h:28
Contains xtd::forms::scrollable_control control.
Defines a base class for controls that support auto-scrolling behavior.
Definition: scrollable_control.h:18
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
If true, the control is a container-like control.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13