xtd 1.0.0
Loading...
Searching...
No Matches
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 [[nodiscard]] auto ignore_mouse_messages() const noexcept -> bool;
50 auto ignore_mouse_messages(bool value) -> popup_panel&;
52
54
58 [[nodiscard]] static auto create() -> popup_panel;
62 [[nodiscard]] static auto create(const drawing::point& location) -> popup_panel;
67 [[nodiscard]] static auto create(const drawing::point& location, const drawing::size& size) -> popup_panel;
73 [[nodiscard]] static auto create(const drawing::point& location, const drawing::size& size, const xtd::string& name) -> popup_panel;
77 [[nodiscard]] static auto create(const control& parent) -> popup_panel;
82 [[nodiscard]] static auto create(const control& parent, const drawing::point& location) -> popup_panel;
88 [[nodiscard]] static auto create(const control& parent, const drawing::point& location, const drawing::size& size) -> popup_panel;
95 [[nodiscard]] static auto create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name) -> popup_panel;
97
98 protected:
100
102 [[nodiscard]] auto create_params() const noexcept -> xtd::forms::create_params override;
104
106
108 auto on_handle_created(const event_args& e) -> void override;
109 auto on_layout(const event_args& e) -> void override;
110 auto on_region_changed(const event_args& e) -> void override;
111 auto wnd_proc(message& message) -> void override;
113
114 private:
115 auto wm_show(message& message) -> void;
116
117 xtd::sptr<data> data_;
118 };
119 }
120}
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 parent() const noexcept -> std::optional< xtd::forms::control_ref >
Gets the parent container 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
auto wnd_proc(message &message) -> void override
Processes Windows messages.
static auto create() -> popup_panel
A factory to create an xtd::forms::popup_panel.
popup_panel()
Initializes a new instance of the popup_panel class.
auto on_region_changed(const event_args &e) -> void override
Raises the xtd::forms::control::region_changed event.
auto on_handle_created(const event_args &e) -> void override
Raises the xtd::forms::control::handle_created event.
auto on_layout(const event_args &e) -> void override
Raises the xtd::forms::control::layout event.
auto ignore_mouse_messages() const noexcept -> bool
Gets ignore mouse messages.
auto create_params() const noexcept -> xtd::forms::create_params override
Gets the required creation parameters when the control handle is created.
#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::panel container.
Implements a Windows message.
Definition message.hpp:33
Contains xtd::forms::tab_page container.