xtd 0.2.0
component.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
7#include <xtd/object>
8#include <xtd/sptr>
9#include <cstdint>
10
12namespace xtd {
14 namespace forms {
26 class component : public xtd::object {
27 struct data;
28
29 protected:
31
36
38
43 virtual bool can_raise_events() const noexcept;
44
47 bool design_mode() const noexcept;
49
50 private:
51 xtd::sptr<data> data_;
52 };
53 }
54}
virtual bool can_raise_events() const noexcept
Gets a value indicating whether the component can raise an event.
component()
Initialises a new instance of the component class.
bool design_mode() const noexcept
Gets a value that indicates whether the component is currently in design mode.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains forms_export_ keyword.
Contains namespace aliases.
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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