xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
xtd.forms
include
xtd
forms
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
:
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
37
drawing::size
measure_control
()
const override
;
38
40
std::optional<control_ref> active_control_;
42
};
43
}
44
}
xtd::drawing::size
Stores an ordered pair of integers, which specify a height and width.
Definition:
size.h:25
xtd::forms::container_control
Provides focus-management functionality for controls that can function as a container for other contr...
Definition:
container_control.h:21
xtd::forms::container_control::container_control
container_control()=default
Initializes a new instance of the ContainerControl class.
xtd::forms::container_control::active_control
std::optional< control_ref > active_control() const
Gets the active control on the container control.
Definition:
container_control.h:25
xtd::forms::container_control::active_control
void active_control(std::nullptr_t)
Resets the active control on the container control.
Definition:
container_control.h:31
xtd::forms::container_control::active_control
void active_control(const control &active_control)
Sets the active control on the container control.
xtd::forms::container_control::measure_control
drawing::size measure_control() const override
Measure this control.
xtd::forms::control
Defines the base class for controls, which are components with visual representation.
Definition:
control.h:67
xtd::forms::scrollable_control
Defines a base class for controls that support auto-scrolling behavior.
Definition:
scrollable_control.h:18
forms_export_
#define forms_export_
Define shared library export.
Definition:
forms_export.h:13
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition:
about_box.h:13
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition:
system_report.h:17
scrollable_control.h
Contains xtd::forms::scrollable_control control.
Generated on Mon Jul 17 2023 23:13:05 for xtd - Reference Guide by
Gammasoft
. All rights reserved.