xtd 0.2.0
scrollable_control.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "control.hpp"
7
9namespace xtd {
11 namespace forms {
23 struct data;
24
25 public:
27
31 virtual bool auto_scroll() const noexcept;
36
39 drawing::size auto_scroll_margin() const noexcept;
44
47 drawing::rectangle display_rectangle() const noexcept override;
48
51 virtual bool h_scroll() const noexcept;
56
59 virtual bool v_scroll() const noexcept;
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.hpp:18
control()
Initializes a new instance of the xtd::forms::control class with default settings.
virtual drawing::size size() const noexcept
Gets the height and width of the control.
forms::create_params create_params() const noexcept override
Gets the required creation parameters when the control handle is created.
virtual bool auto_scroll() const noexcept
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
void on_layout(const event_args &e) override
Raises the xtd::forms::control::layout event.
drawing::size auto_scroll_margin() const noexcept
Gets the size of the auto-scroll margin.
virtual bool v_scroll() const noexcept
Gets a value indicating whether the vertical scroll bar is visible.
virtual bool h_scroll() const noexcept
Gets a value indicating whether the horizontal scroll bar is visible.
scrollable_control()
Initialize a new instance of scrollable_control class.
drawing::rectangle display_rectangle() const noexcept override
Gets the rectangle that represents the virtual display area of the control.
Contains xtd::forms::control control.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ e
The E key.
Definition keys.hpp:207
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::system_information class.