Dillo v3.1.1-46-g8a360e32
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 503 of file style.hh.

Member Function Documentation

◆ equals()

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

Definition at line 510 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 516 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: