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.
xtd::forms::component Class Reference

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

#include <component.hpp>

Inheritance diagram for xtd::forms::component:
xtd::forms::common_dialog xtd::forms::control xtd::forms::image_list xtd::forms::menu xtd::forms::timer xtd::forms::color_dialog xtd::forms::file_dialog xtd::forms::folder_browser_dialog xtd::forms::font_dialog xtd::forms::button_base xtd::forms::group_box xtd::forms::label xtd::forms::lcd_label xtd::forms::list_control xtd::forms::picture_box xtd::forms::progress_bar xtd::forms::scroll_bar xtd::forms::scrollable_control xtd::forms::tab_control xtd::forms::text_box_base xtd::forms::track_bar xtd::forms::context_menu xtd::forms::main_menu xtd::forms::menu_item

Protected Member Functions

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.

Remarks
component is the base class for all components and controls.

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: