xtd 1.0.0
Loading...
Searching...
No Matches
tab_page.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "image_list.hpp"
6#include "panel.hpp"
7
9namespace xtd {
11 namespace forms {
34 struct data;
35
36 public:
38
43
45 //~tab_page() -> tab_page;
47
49
55 auto auto_scroll(bool value) -> xtd::forms::scrollable_control& override;
56
62 [[nodiscard]] virtual auto image_index() const noexcept -> xtd::usize;
68 virtual auto image_index(xtd::usize value) -> tab_page&;
69
70 using xtd::forms::panel::parent;
71 auto parent(const xtd::forms::control& parent) -> xtd::forms::control& override;
72 auto parent(xtd::null_ptr) -> xtd::forms::control& override;
73
74 using xtd::forms::panel::text;
78 auto text(const xtd::string& text) -> xtd::forms::control& override;
80
82
86 auto destroy_handle() -> void override;
88
90
92 [[nodiscard]] static auto create() -> tab_page;
96 [[nodiscard]] static auto create(const xtd::drawing::point& location) -> tab_page;
101 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size) -> tab_page;
107 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> tab_page;
111 [[nodiscard]] static auto create(const xtd::string& text) -> tab_page;
116 [[nodiscard]] static auto create(const xtd::string& text, const xtd::drawing::point& location) -> tab_page;
122 [[nodiscard]] static auto create(const xtd::string& text, const xtd::drawing::point& location, const xtd::drawing::size& size) -> tab_page;
129 [[nodiscard]] static auto create(const xtd::string& text, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> tab_page;
133 [[nodiscard]] static auto create(const xtd::forms::control& parent) -> tab_page;
138 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location) -> tab_page;
144 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size) -> tab_page;
151 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> tab_page;
156 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::string& text) -> tab_page;
162 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::string& text, const xtd::drawing::point& location) -> tab_page;
169 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::string& text, const xtd::drawing::point& location, const xtd::drawing::size& size) -> tab_page;
177 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::string& text, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> tab_page;
179
180 protected:
182
184 [[nodiscard]] auto create_params() const noexcept -> xtd::forms::create_params override;
186
188
190 auto on_handle_created(const event_args& e) -> void override;
192
193 private:
194 xtd::sptr<data> data_;
195 };
196 }
197}
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.
virtual auto name() const noexcept -> const xtd::string &
Gets the name of the control.
virtual auto location() const noexcept -> xtd::drawing::point
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
Used to group collections of controls.
Definition panel.hpp:32
panel()
Initialises a new instance of panel class.
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.hpp:22
virtual auto auto_scroll() const noexcept -> bool
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
auto text(const xtd::string &text) -> xtd::forms::control &override
Sets the text associated with this control.
virtual auto image_index() const noexcept -> xtd::usize
Gets the image list index value of the image displayed on the tab_page control.
auto create_params() const noexcept -> xtd::forms::create_params override
Gets the required creation parameters when the control handle is created.
auto destroy_handle() -> void override
A factory to create an xtd::forms::tab_page.
auto auto_scroll(bool value) -> xtd::forms::scrollable_control &override
Sets a value indicating whether the container enables the user to scroll to any controls placed outsi...
tab_page()
Initializes a new instance of the tab_page class.
auto parent(const xtd::forms::control &parent) -> xtd::forms::control &override
Sets the parent container of the control.
auto on_handle_created(const event_args &e) -> void override
Raises the xtd::forms::control::handle_created event.
#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
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.hpp:19
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
Contains xtd::forms::image_list component.
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::panel container.