xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::style_sheets::ibox_model Class Referenceabstract
Inheritance diagram for xtd::forms::style_sheets::ibox_model:
xtd::interface xtd::forms::style_sheets::control

Definition

The box model allows you to specify the margin, borders, padding, background color, width and height of a box.

The box model allows you to specify the margin, borders, padding, background color,...
Definition ibox_model.h:45
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
Inheritance
xtd::interfacextd::forms::style_sheets::ibox_model
Header
#include <xtd/forms/style_sheets/ibox_model>
Namespace
xtd::forms::style_sheets
Library
xtd.forms
Remarks
This class is used by xtd::forms::style_sheets::box_renderer.
For more information, see Box Model.

Public Properties

virtual const xtd::drawing::colorbackground_color () const noexcept=0
 Gets the background color is used to add background effects to the box.
 
virtual const xtd::forms::style_sheets::background_imagebackground_image () const noexcept=0
 Gets the background image is used to add background effects to the box.
 
virtual const xtd::forms::style_sheets::border_colorborder_color () const noexcept=0
 Gets the color is used to set the color of the borders.
 
virtual xtd::forms::style_sheets::border_radius border_radius () const noexcept=0
 Gets the radius is used to add rounded borders to an element.
 
virtual xtd::forms::style_sheets::border_style border_style () const noexcept=0
 Gets the style specifies what kind of borders to display.
 
virtual xtd::forms::style_sheets::border_width border_width () const noexcept=0
 Gets the width specifies the width of the borders.
 
virtual std::optional< xtd::forms::style_sheets::lengthheight () const noexcept=0
 Gets the height of the box.
 
virtual const xtd::forms::style_sheets::marginmargin () const noexcept=0
 Gets the area outside the border.
 
virtual const xtd::forms::style_sheets::outline_coloroutline_color () const noexcept=0
 Gets the color is used to set the color of the outlines.
 
virtual xtd::forms::style_sheets::outline_offset outline_offset () const noexcept=0
 Gets the ofset specifies the width of the outlines.
 
virtual xtd::forms::style_sheets::outline_radius outline_radius () const noexcept=0
 Gets the radius is used to add rounded outline to an element.
 
virtual xtd::forms::style_sheets::outline_style outline_style () const noexcept=0
 Gets the style specifies what kind of outlines to display.
 
virtual xtd::forms::style_sheets::outline_width outline_width () const noexcept=0
 Gets the width specifies the width of the outlines.
 
virtual const xtd::forms::style_sheets::paddingpadding () const noexcept=0
 Gets the area area around the content.
 
virtual std::optional< xtd::forms::style_sheets::lengthwidth () const noexcept=0
 Gets the width of the box.
 

Public Methods

virtual xtd::drawing::rectangle get_border_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0
 Gets the computed boder rectangle from specified bounds.
 
virtual xtd::drawing::rectangle get_fill_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0
 Gets the computed fill rectangle from specified bounds.
 
virtual xtd::drawing::rectangle get_outline_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0
 Gets the computed outline rectangle from specified bounds.
 
virtual xtd::drawing::rectangle get_content_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0
 Gets the computed content rectangle from specified bounds.
 

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