xtd 0.2.0
command_link_button.h
Go to the documentation of this file.
1 #pragma once
5 #include "button_base.h"
6 #include "dialog_result.h"
7 #include "ibutton_control.h"
8 #include "timer.h"
9 #include <xtd/environment>
10 
12 namespace xtd {
14  namespace forms {
36  class forms_export_ command_link_button : public button_base {
37  public:
39 
45 
47 
51  virtual forms::auto_size_mode auto_size_mode() const noexcept;
55 
60  virtual control& texts(const xtd::ustring& text, const xtd::ustring& supplementary_text);
62 
64 
66  using control::create;
73  static command_link_button create(const xtd::ustring& text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
81  static command_link_button create(const xtd::ustring& text, const xtd::ustring& supplementary_text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
89  static command_link_button create(const control& parent, const xtd::ustring& text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
98  static command_link_button create(const control& parent, const xtd::ustring& text, const xtd::ustring& supplementary_text, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
100 
101  protected:
103 
105  forms::create_params create_params() const noexcept override;
107 
109 
111  drawing::size measure_control() const noexcept override;
112  void on_handle_created(const event_args& e) override;
114  };
115  }
116 }
Contains xtd::forms::timer component.
Contains xtd::forms::button_base class.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
Implements the basic functionality common to button controls.
Definition: button_base.h:35
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:20
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
static control create(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const xtd::ustring &name=xtd::ustring::empty_string)
A factory to create a specified control with specified location, size, and name.
Contains xtd::forms::dialog_result enum class.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static const ustring empty_string
Represents the empty string.
Definition: ustring.h:53
Contains xtd::forms::ibutton_control interface.
Specifies that both the x and y coordinates of the control are defined.
The xtd::forms::status_bar_panel displays text in the standard font.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195