xtd 0.2.0
Loading...
Searching...
No Matches
scrollable_control.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
7
9namespace xtd {
11 namespace forms {
21 struct data;
22
23 public:
25
29 virtual bool auto_scroll() const noexcept;
33 virtual scrollable_control& auto_scroll(bool auto_scroll);
34
37 drawing::size auto_scroll_margin() const noexcept;
41 scrollable_control& auto_scroll_margin(const drawing::size& value);
42
45 drawing::rectangle display_rectangle() const noexcept override;
46
49 virtual bool h_scroll() const noexcept;
53 virtual scrollable_control& h_scroll(bool h_scroll);
54
57 virtual bool v_scroll() const noexcept;
61 virtual scrollable_control& v_scroll(bool v_scroll);
63
64 protected:
66
71
73
75 forms::create_params create_params() const noexcept override;
77
79
81 void on_layout(const event_args& e) override;
83
84 private:
85 std::shared_ptr<data> data_;
86 };
87 }
88}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:20
virtual bool auto_scroll() const noexcept
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
#define forms_export_
Define shared library export.
Definition forms_export.h:13
size_t size
Represents a size of any object in bytes.
Definition types.h:197
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::control class.
Contains xtd::forms::system_information class.