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::visual_styles Namespace Reference

The xtd::forms::visual_styles namespace contains classes for rendering controls and other windows user interface (UI) elements with visual styles in operating systems that support them. More...

Enumerations

enum  check_box_state {
  check_box_state::unchecked_normal = 1,
  check_box_state::unchecked_hot,
  check_box_state::unchecked_pressed,
  check_box_state::unchecked_disabled,
  check_box_state::checked_normal,
  check_box_state::checked_hot,
  check_box_state::checked_pressed,
  check_box_state::checked_disabled,
  check_box_state::mixed_normal,
  check_box_state::mixed_hot,
  check_box_state::mixed_pressed,
  check_box_state::mixed_disabled
}
 Specifies the visual state of a check box that is drawn with visual styles. More...
 
enum  push_button_state {
  push_button_state::normal = 1,
  push_button_state::hot,
  push_button_state::pressed,
  push_button_state::disabled,
  push_button_state::default_state
}
 Specifies the visual state of a button that is drawn with visual styles. More...
 
enum  radio_button_state {
  radio_button_state::unchecked_normal = 1,
  radio_button_state::unchecked_hot,
  radio_button_state::unchecked_pressed,
  radio_button_state::unchecked_disabled,
  radio_button_state::checked_normal,
  radio_button_state::checked_hot,
  radio_button_state::checked_pressed,
  radio_button_state::checked_disabled
}
 Specifies the visual state of a radio button that is drawn with visual styles. More...
 
enum  toggle_button_state {
  toggle_button_state::unchecked_normal = 1,
  toggle_button_state::unchecked_hot,
  toggle_button_state::unchecked_pressed,
  toggle_button_state::unchecked_disabled,
  toggle_button_state::checked_normal,
  toggle_button_state::checked_hot,
  toggle_button_state::checked_pressed,
  toggle_button_state::checked_disabled,
  toggle_button_state::mixed_normal,
  toggle_button_state::mixed_hot,
  toggle_button_state::mixed_pressed,
  toggle_button_state::mixed_disabled
}
 Specifies the visual state of a check box that is drawn with visual styles. More...
 

Detailed Description

The xtd::forms::visual_styles namespace contains classes for rendering controls and other windows user interface (UI) elements with visual styles in operating systems that support them.

Enumeration Type Documentation

§ check_box_state

Specifies the visual state of a check box that is drawn with visual styles.

Remarks
The check_box_state values correspond to the states of the visual_style_element objects exposed by the visual_style_element::check_box::check_box class. The check_box_state values are also used as an argument in the check_box_renderer.draw_check_box method.
Enumerator
unchecked_normal 

The check box is unchecked.

unchecked_hot 

The check box is unchecked and hot.

unchecked_pressed 

The check box is unchecked and pressed.

unchecked_disabled 

The check box is unchecked and disabled.

checked_normal 

The check box is checked.

checked_hot 

The check box is checked and hot.

checked_pressed 

The check box is checked and pressed.

checked_disabled 

The check box is checked and disabled.

mixed_normal 

The check box is three-state.

mixed_hot 

The check box is three-state and hot.

mixed_pressed 

The check box is three-state and pressed.

mixed_disabled 

The check box is three-state and disabled.

§ push_button_state

Specifies the visual state of a button that is drawn with visual styles.

Remarks
The push_button_state values correspond to the states of the visual_style_element objects exposed by the visual_style_element:bvutton::push_button class. The push_button_state values are also used as an argument in the button_renderer.draw_button method.
Enumerator
normal 

The button has the normal appearance.

hot 

The button is hot.

pressed 

The button is pressed.

disabled 

The button is disabled.

default_state 

The button has the default appearance.

§ radio_button_state

Specifies the visual state of a radio button that is drawn with visual styles.

Remarks
The radio_button_state values correspond to the states of the visual_style_element objects exposed by the visual_style_element::radio_button::radio_button class. The radio_button_state values are also used as an argument in the radio_button_renderer.draw_radio_button method.
Enumerator
unchecked_normal 

The radio button is unchecked.

unchecked_hot 

The radio button is unchecked and hot.

unchecked_pressed 

The radio button is unchecked and pressed.

unchecked_disabled 

The radio button is unchecked and disabled.

checked_normal 

The radio button is checked.

checked_hot 

The radio button is checked and hot.

checked_pressed 

The radio button is checked and pressed.

checked_disabled 

The radio button is checked and disabled.

§ toggle_button_state

Specifies the visual state of a check box that is drawn with visual styles.

Remarks
The toggle_button_state values correspond to the states of the visual_style_element objects exposed by the visual_style_element::toggle_button class. The toggle_button_state values are also used as an argument in the togle_button_renderer.toggle_butotn method.
Enumerator
unchecked_normal 

The check box is unchecked.

unchecked_hot 

The check box is unchecked and hot.

unchecked_pressed 

The check box is unchecked and pressed.

unchecked_disabled 

The check box is unchecked and disabled.

checked_normal 

The check box is checked.

checked_hot 

The check box is checked and hot.

checked_pressed 

The check box is checked and pressed.

checked_disabled 

The check box is checked and disabled.

mixed_normal 

The check box is three-state.

mixed_hot 

The check box is three-state and hot.

mixed_pressed 

The check box is three-state and pressed.

mixed_disabled 

The check box is three-state and disabled.