xtd 0.2.0
tab_page.h
Go to the documentation of this file.
1 #pragma once
5 #include "image_list.h"
6 #include "panel.h"
7 
9 namespace xtd {
11  namespace forms {
31  class forms_export_ tab_page : public panel {
32  struct data;
33 
34  public:
36 
39  tab_page();
41 
43 
45  using panel::auto_scroll;
49  scrollable_control& auto_scroll(bool value) override;
50 
56  virtual size_t image_index() const noexcept;
62  virtual tab_page& image_index(size_t value);
63 
64  using panel::parent;
65  control& parent(const control& parent) override;
66 
67  using panel::text;
71  control& text(const xtd::ustring& text) override;
73 
75 
77  using control::create;
84  static tab_page create(const xtd::ustring& text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
92  static tab_page create(const control& parent, const xtd::ustring& text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
93 
94  void destroy_handle() override;
96 
97  protected:
99 
101  forms::create_params create_params() const noexcept override;
103 
105 
107  void on_handle_created(const event_args& e) override;
109 
110  private:
111  std::shared_ptr<data> data_;
112  };
113  }
114 }
Contains xtd::forms::panel container.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Used to group collections of controls.
Definition: panel.h:30
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
static control create(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const xtd::ustring &name=xtd::ustring::empty_string)
A factory to create a specified control with specified location, size, and name.
virtual bool auto_scroll() const noexcept
Gets a value indicating whether the container enables the user to scroll to any controls placed outsi...
Defines a base class for controls that support auto-scrolling behavior.
Definition: scrollable_control.h:20
Contains xtd::forms::image_list component.
virtual const xtd::ustring & text() const noexcept
Gets the text associated with this control.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
Represents a single tab page in a tab_control.
Definition: tab_page.h:31
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static const ustring empty_string
Represents the empty string.
Definition: ustring.h:53
Specifies that both the x and y coordinates of the control are defined.
The xtd::forms::status_bar_panel displays text in the standard font.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195