xtd 0.2.0
popup_panel.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "panel.hpp"
6#include "tab_page.hpp"
7
9namespace xtd {
11 namespace forms {
31 struct data;
32
33 public:
35
40
42
46 bool ignore_mouse_messages() const noexcept;
52
54
62 static popup_panel create(const drawing::point& location);
67 static popup_panel create(const drawing::point& location, const drawing::size& size);
73 static popup_panel create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
82 static popup_panel create(const control& parent, const drawing::point& location);
88 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
95 static popup_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
97
98 protected:
100
102 forms::create_params create_params() const noexcept override;
104
106
112 xtd::uptr<xtd::object> clone() const override;
113
114 void on_handle_created(const event_args& e) override;
115 void on_layout(const event_args& e) override;
116 void on_region_changed(const event_args& e) override;
117 void wnd_proc(message& message) override;
119
120 private:
121 void wm_show(message& message);
122
123 xtd::sptr<data> data_;
124 };
125 }
126}
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.
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
panel()
Initialises a new instance of panel class.
bool ignore_mouse_messages() const noexcept
Gets ignore mouse messages.
forms::create_params create_params() const noexcept override
Gets the required creation parameters when the control handle is created.
void wnd_proc(message &message) override
Processes Windows messages.
popup_panel()
Initializes a new instance of the popup_panel class.
void on_handle_created(const event_args &e) override
Raises the xtd::forms::control::handle_created event.
void on_layout(const event_args &e) override
Raises the xtd::forms::control::layout event.
static popup_panel create()
A factory to create an xtd::forms::popup_panel.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
void on_region_changed(const event_args &e) override
Raises the xtd::forms::control::region_changed 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
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
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.
Implements a Windows message.
Definition message.hpp:33
Contains xtd::forms::tab_page container.