xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Protected Member Functions | List of all members
xtd::forms::component Class Reference

Provides the base implementation and enables object sharing between applications. More...

#include <component.h>

Inheritance diagram for xtd::forms::component:
Inheritance graph
[legend]

Protected Member Functions

 component ()=default
 Initialises a new instance of the compnent class. More...
 
virtual bool can_raise_events () const
 Gets a value indicating whether the component can raise an event. More...
 
bool design_mode () const
 Gets a value that indicates whether the component is currently in design mode. More...
 

Detailed Description

Provides the base implementation and enables object sharing between applications.

Library
xtd.forms
Remarks
component is the base class for all components and controls.
Examples:
main_menu.cpp, and main_menu_create_standard_items.cpp.

Constructor & Destructor Documentation

◆ component()

xtd::forms::component::component ( )
protecteddefault

Initialises a new instance of the compnent class.

Member Function Documentation

◆ can_raise_events()

virtual bool xtd::forms::component::can_raise_events ( ) const
inlineprotectedvirtual

Gets a value indicating whether the component can raise an event.

Returns
true if the component can raise events; otherwise, false. The default is true.
Remarks
The default implementation of this property always returns true. Classes that inherit from the Component class should override this property to provide the ability to disable the raising of events.

Reimplemented in xtd::forms::control.

◆ design_mode()

bool xtd::forms::component::design_mode ( ) const
inlineprotected

Gets a value that indicates whether the component is currently in design mode.

Returns
true if the component is in design mode; otherwise, false.

The documentation for this class was generated from the following file: