xtd 0.2.0
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 {
33 class forms_export_ tab_page : public panel {
34 struct data;
35
36 public:
38
43
45 //~tab_page();
47
49
55 scrollable_control& auto_scroll(bool value) override;
56
62 virtual size_t image_index() const noexcept;
68 virtual tab_page& image_index(size_t value);
69
70 using panel::parent;
71 control& parent(const control& parent) override;
72 control& parent(std::nullptr_t) override;
73
74 using panel::text;
78 control& text(const xtd::string& text) override;
80
82
86 void destroy_handle() override;
88
90
92 static tab_page create();
96 static tab_page create(const drawing::point& location);
101 static tab_page create(const drawing::point& location, const drawing::size& size);
107 static tab_page create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
111 static tab_page create(const xtd::string& text);
116 static tab_page create(const xtd::string& text, const drawing::point& location);
122 static tab_page create(const xtd::string& text, const drawing::point& location, const drawing::size& size);
129 static tab_page create(const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
133 static tab_page create(const control& parent);
138 static tab_page create(const control& parent, const drawing::point& location);
144 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size);
151 static tab_page create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
156 static tab_page create(const control& parent, const xtd::string& text);
162 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location);
169 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size);
177 static tab_page create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
179
180 protected:
182
184 forms::create_params create_params() const noexcept override;
186
188
194 xtd::uptr<xtd::object> clone() const override;
195
196 void on_handle_created(const event_args& e) override;
198
199 private:
200 xtd::sptr<data> data_;
201 };
202 }
203}
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 const xtd::string & name() const noexcept
Gets the name of the control.
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 bool auto_scroll() const noexcept
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
control & text(const xtd::string &text) override
Sets the text associated with this control.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
forms::create_params create_params() const noexcept override
Gets the required creation parameters when the control handle is created.
virtual size_t image_index() const noexcept
Gets the image list index value of the image displayed on the tab_page control.
tab_page()
Initializes a new instance of the tab_page class.
void destroy_handle() override
A factory to create an xtd::forms::tab_page.
void on_handle_created(const event_args &e) override
Raises the xtd::forms::control::handle_created event.
control & parent(const control &parent) override
Sets the parent container of the control.
scrollable_control & auto_scroll(bool value) override
Sets 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.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
@ e
The E key.
Definition keys.hpp:207
@ location
Specifies that both the x and y coordinates of the control are defined.
Definition bounds_specified.hpp:30
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
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 const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::panel container.