xtd 1.0.0
Loading...
Searching...
No Matches
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 [[nodiscard]] virtual auto auto_scroll() const noexcept -> bool;
35 virtual auto auto_scroll(bool value) -> scrollable_control&;
36
39 [[nodiscard]] auto auto_scroll_margin() const noexcept -> xtd::drawing::size;
44
47 [[nodiscard]] auto display_rectangle() const noexcept -> xtd::drawing::rectangle override;
48
51 [[nodiscard]] virtual auto h_scroll() const noexcept -> bool;
55 virtual auto h_scroll(bool value) -> scrollable_control&;
56
59 [[nodiscard]] virtual auto v_scroll() const noexcept -> bool;
63 virtual auto v_scroll(bool value) -> scrollable_control&;
65
66 protected:
68
73
75
77 [[nodiscard]] auto create_params() const noexcept -> xtd::forms::create_params override;
79
81
83 auto on_layout(const event_args& e) -> void 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
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
virtual auto size() const noexcept -> xtd::drawing::size
Gets the height and width of the control.
auto display_rectangle() const noexcept -> xtd::drawing::rectangle override
Gets the rectangle that represents the virtual display area of the control.
virtual auto auto_scroll() const noexcept -> bool
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
virtual auto h_scroll() const noexcept -> bool
Gets a value indicating whether the horizontal scroll bar is visible.
auto create_params() const noexcept -> xtd::forms::create_params override
Gets the required creation parameters when the control handle is created.
auto auto_scroll_margin() const noexcept -> xtd::drawing::size
Gets the size of the auto-scroll margin.
virtual auto v_scroll() const noexcept -> bool
Gets a value indicating whether the vertical scroll bar is visible.
auto on_layout(const event_args &e) -> void override
Raises the xtd::forms::control::layout event.
scrollable_control()
Initialize a new instance of scrollable_control class.
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
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
Contains xtd::forms::system_information class.