xtd - Reference Guide 0.2.0
Go to the documentation of this file.
1 #pragma once
5 #include <cstdint>
6 #include <xtd/object.h>
7 #include "../forms_export.h"
8 #include "../forms_namespace_aliases.h"
11 namespace xtd {
13  namespace forms {
21  class component : public xtd::object {
22  protected:
27  component() = default;
36  virtual bool can_raise_events() const {return true;}
40  bool design_mode() const {return design_mode_;}
43  private:
44  bool design_mode_ = false;
45  };
46  }
47 }
Initialises a new instance of the component class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:30
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
bool design_mode() const
Gets a value that indicates whether the component is currently in design mode.
Definition: component.h:40
virtual bool can_raise_events() const
Gets a value indicating whether the component can raise an event.
Definition: component.h:36
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:21