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 {
23 struct data;
24
25 public:
27
31 virtual bool auto_scroll() const noexcept;
35 virtual scrollable_control& auto_scroll(bool auto_scroll);
36
39 drawing::size auto_scroll_margin() const noexcept;
43 scrollable_control& auto_scroll_margin(const drawing::size& value);
44
47 drawing::rectangle display_rectangle() const noexcept override;
48
51 virtual bool h_scroll() const noexcept;
55 virtual scrollable_control& h_scroll(bool h_scroll);
56
59 virtual bool v_scroll() const noexcept;
63 virtual scrollable_control& v_scroll(bool v_scroll);
65
66 protected:
68
73
75
77 forms::create_params create_params() const noexcept override;
79
81
83 void on_layout(const event_args& e) override;
85
86 private:
87 xtd::sptr<data> data_;
88 };
89 }
90}
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:81
Encapsulates the information needed when creating a control.
Definition create_params.h:29
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:22
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 size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
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.