xtd 0.2.0
user_control.h
Go to the documentation of this file.
1 #pragma once
5 #include "border_sides.h"
6 #include "border_style.h"
7 #include "container_control.h"
8 #include <xtd/optional>
9 
11 namespace xtd {
13  namespace forms {
25  class forms_export_ user_control : public container_control {
26  struct data;
27 
28  public:
30 
33  user_control();
35 
37 
41  virtual forms::auto_size_mode auto_size_mode() const noexcept;
46 
49  virtual forms::border_sides border_sides() const noexcept;
53 
57  virtual xtd::forms::border_style border_style() const noexcept;
67  virtual user_control& border_style(std::nullptr_t border_style);
69 
70  protected:
72 
74  forms::create_params create_params() const noexcept override;
76 
78 
80  void on_layout(const event_args& e) override;
81  void on_paint(paint_event_args& e) override;
83 
84  private:
85  std::shared_ptr<data> data_;
86  };
87  }
88 }
Provides focus-management functionality for controls that can function as a container for other contr...
Definition: container_control.h:23
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a standard Windows user control.
Definition: user_control.h:25
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:20
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
Provides data for the xtd::forms::control::paint event.
Definition: paint_event_args.h:28
border_sides
Specifies how a control anchors to the edges of its container.
Definition: border_sides.h:21
Contains xtd::forms::container_control class.
border_style
Specifies the border style for a control.
Definition: border_style.h:20
Contains xtd::forms::border_sides enum class.
xtd::forms::style_sheets::control user_control
The user_control data allows you to specify the box of a user_control control.
Definition: user_control.h:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::border_style enum class.