xtd - Reference Guide 0.2.0
xtd::forms::style_sheets Namespace Reference

Definition

The xtd::forms::style_sheets namespace contains various properties, states, and subcontrols that make it possible to customize the look of control.

Classes

class  background_image
 The image data allows you to specify the url or gradient mode. More...
 
class  border_color
 The xtd::forms::style_sheets::border_color is used to set the color of the borders. More...
 
class  border_radius
 The radius is used to add rounded borders to an element. More...
 
class  border_style
 The style specifies what kind of borders to display. More...
 
class  control
 The control selector allows you to specify the box and color of a control. More...
 
class  ibox_model
 The box model allows you to specify the margin, borders, padding, background color, width and height of a box. More...
 
class  iimage_model
 The image model allows you to specify the alignment of an image. More...
 
class  itext_model
 The text model allows you to specify the alignment, color, decoration, transformation, and font of a text. More...
 
class  length
 The xtd::forms::style_sheets::length specifies the legth and unit of many properties of the xtd::forms::style_sheets::ibox_model. More...
 
class  lengths
 The length specifies the length of the borders. More...
 
class  style_sheet
 The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet. More...
 
class  system_colors
 The theme data allows you to specify the theme informations. More...
 
class  theme
 The theme data allows you to specify the theme informations. More...
 

Alias

using border_width = xtd::forms::style_sheets::lengths
 The width specifies the width of the borders. More...
 
using button = xtd::forms::style_sheets::control
 The buttton data allows you to specify the box of a button control. More...
 
using form = xtd::forms::style_sheets::control
 The form data allows you to specify the box of a form control. More...
 
using label = xtd::forms::style_sheets::control
 The label data allows you to specify the box of a label control. More...
 
using margin = xtd::forms::style_sheets::lengths
 Margins are used to create space around elements, outside of any defined borders. More...
 
using outline_color = xtd::forms::style_sheets::border_color
 The xtd::forms::style_sheets::outline_color is used to set the color of the outlines. More...
 
using outline_offset = xtd::forms::style_sheets::lengths
 The width specifies the width of the borders. More...
 
using outline_radius = xtd::forms::style_sheets::border_radius
 The radius is used to add rounded outlines to an element. More...
 
using outline_style = xtd::forms::style_sheets::border_style
 The style specifies what kind of outlines to display. More...
 
using outline_width = xtd::forms::style_sheets::lengths
 The width specifies the width of the outlines. More...
 
using padding = xtd::forms::style_sheets::lengths
 Padding is used to create space around an element's content, inside of any defined borders. More...
 
using panel = xtd::forms::style_sheets::control
 The panel data allows you to specify the box of a panel control. More...
 
using status_bar = xtd::forms::style_sheets::control
 The status_bar data allows you to specify the box of a status_bar control. More...
 
using status_bar_panel = xtd::forms::style_sheets::control
 The buttton data allows you to specify the box of a status_bar_panel control. More...
 
using toggle_button = xtd::forms::style_sheets::control
 The buttton data allows you to specify the box of a toggle_button control. More...
 
using tool_bar = xtd::forms::style_sheets::control
 The tool_bar data allows you to specify the box of a tool_bar control. More...
 
using tool_bar_button = xtd::forms::style_sheets::control
 The buttton data allows you to specify the box of a tool_bar_button control. More...
 
using user_control = xtd::forms::style_sheets::control
 The user_control data allows you to specify the box of a user_control control. More...
 

Enumerations

enum  border_type {
  border_type::none,
  border_type::hidden = none,
  border_type::solid,
  border_type::inset,
  border_type::outset,
  border_type::groove,
  border_type::ridge,
  border_type::theme,
  border_type::dashed,
  border_type::dot_dash,
  border_type::dot_dot_dash,
  border_type::dotted,
  border_type::double_border
}
 The border_type enum class specifies what kind of border to display. More...
 
enum  image_type {
  image_type::none,
  image_type::url,
  image_type::linear_gradient,
  image_type::radial_gradient,
  image_type::conic_gradient
}
 The image_type enum class specifies what kind of image to display. More...
 
enum  length_unit {
  length_unit::centimeters,
  length_unit::millimeters,
  length_unit::inches,
  length_unit::pixels,
  length_unit::points,
  length_unit::picas,
  length_unit::element,
  length_unit::element_x_height,
  length_unit::chase,
  length_unit::root_element,
  length_unit::viewport_width,
  length_unit::viewport_height,
  length_unit::viewport_min,
  length_unit::viewport_max,
  length_unit::percent
}
 The length_unit enum class specifies the units for xtd::forms::style_sheets::length. More...
 
enum  pseudo_state {
  pseudo_state::standard,
  pseudo_state::hover = 0b1,
  pseudo_state::pressed = 0b10,
  pseudo_state::disabled = 0b100,
  pseudo_state::focused = 0b1000,
  pseudo_state::default_state = 0b10000,
  pseudo_state::unchecked = standard,
  pseudo_state::checked = 0b100000,
  pseudo_state::mixed = 0b1000000
}
 The pseudo_state enum class flag specifies the pseudo state of an element. More...
 
enum  text_decoration {
  text_decoration::none,
  text_decoration::overline,
  text_decoration::line_through,
  text_decoration::underline
}
 The xtd::forms::style_sheets::text_decoration enum class is used to set or remove decorations from text. More...
 
enum  text_transformation {
  text_transformation::none,
  text_transformation::lowercase,
  text_transformation::uppercase,
  text_transformation::capitalize
}
 The xtd::forms::style_sheets::text_transformation enum class is used to specify uppercase and lowercase letters in a text. More...
 
enum  white_space {
  white_space::normal,
  white_space::no_wrap,
  white_space::pre,
  white_space::pre_line,
  white_space::pre_wrap
}
 The white_space enum class specifies how white-space inside an element is handled. More...