xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
component.h
1 #pragma once
2 #include <cstdint>
3 
5 namespace xtd {
7  namespace forms {
10  class component {
11  public:
12 
13  protected:
14  component() = default;
15 
17  virtual ~component() = default;
19 
23  virtual bool can_raise_events() const {return true;}
24 
27  bool design_mode() const {return this->design_mode_;}
28 
29  private:
30  bool design_mode_ = false;
31  };
32  }
33 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
bool design_mode() const
Gets a value that indicates whether the component is currently in design mode.
Definition: component.h:27
virtual bool can_raise_events() const
Gets a value indicating whether the component can raise an event.
Definition: component.h:23
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:10