xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
component.h
Go to the documentation of this file.
1
4#pragma once
5#include <cstdint>
6#include <xtd/object.h>
7#include "../forms_export.h"
8#include "../forms_namespace_aliases.h"
9
11namespace xtd {
13 namespace forms {
21 class component : public xtd::object {
22 public:
23
24 protected:
26 component() = default;
27
31 virtual bool can_raise_events() const {return true;}
32
35 bool design_mode() const {return design_mode_;}
36
37 private:
38 bool design_mode_ = false;
39 };
40 }
41}
Provides the base implementation and enables object sharing between applications.
Definition component.h:21
virtual bool can_raise_events() const
Gets a value indicating whether the component can raise an event.
Definition component.h:31
component()=default
Initialises a new instance of the component class.
bool design_mode() const
Gets a value that indicates whether the component is currently in design mode.
Definition component.h:35
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.