Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
dw::core::style::Box Class Reference

Represents a dimension box according to the CSS box model. More...

#include <style.hh>

Public Member Functions

void setVal (int val)
 
bool equals (Box *other)
 
int hashValue ()
 

Public Attributes

int top
 
int right
 
int bottom
 
int left
 

Detailed Description

Represents a dimension box according to the CSS box model.

Used for dw::core::style::Style::margin, dw::core::style::Style::borderWidth, and dw::core::style::Style::padding.

Definition at line 504 of file style.hh.

Member Function Documentation

◆ equals()

bool dw::core::style::Box::equals ( Box other)
inline

Definition at line 511 of file style.hh.

References bottom, left, right, and top.

Referenced by dw::core::style::StyleAttrs::equals().

◆ hashValue()

int dw::core::style::Box::hashValue ( )
inline

Definition at line 517 of file style.hh.

References bottom, left, right, and top.

Referenced by dw::core::style::StyleAttrs::hashValue().

◆ setVal()

void dw::core::style::Box::setVal ( int  val)
inline

Member Data Documentation

◆ bottom

◆ left

◆ right

◆ top


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