More documentation checkins. r=jkeiser/sicking, sr=jst, a=asa

This commit is contained in:
bzbarsky%mit.edu 2002-07-30 05:34:55 +00:00
parent 96749bf2d1
commit cc45de4f05
4 changed files with 38 additions and 0 deletions

View File

@ -59,6 +59,12 @@ enum nsHTMLUnit {
eHTMLUnit_Pixel = 600 // (int) screen pixels
};
/**
* Class which is used to represent the value of an attribute of an
* HTML element. The value has a unit which is an nsHTMLUnit;
* checking the unit is a must before asking for the value in any
* particular form.
*/
class nsHTMLValue {
public:
nsHTMLValue(nsHTMLUnit aUnit = eHTMLUnit_Null);

View File

@ -59,6 +59,12 @@ enum nsHTMLUnit {
eHTMLUnit_Pixel = 600 // (int) screen pixels
};
/**
* Class which is used to represent the value of an attribute of an
* HTML element. The value has a unit which is an nsHTMLUnit;
* checking the unit is a must before asking for the value in any
* particular form.
*/
class nsHTMLValue {
public:
nsHTMLValue(nsHTMLUnit aUnit = eHTMLUnit_Null);

View File

@ -62,6 +62,14 @@ typedef union {
float mFloat;
} nsStyleUnion;
/**
* Class that hold a single size specification used by the style
* system. The size specification consists of two parts -- a number
* and a unit. The number is an integer, a floating point value, an
* nscoord, or undefined, and the unit is an nsStyleUnit. Checking
* the unit is a must before asking for the value in any particular
* form.
*/
class nsStyleCoord {
public:
nsStyleCoord(nsStyleUnit aUnit = eStyleUnit_Null);
@ -100,6 +108,11 @@ public:
};
/**
* Class that represents a set of top/right/bottom/left nsStyleCoords.
* This is commonly used to hold the widths of the borders, margins,
* or paddings of a box.
*/
class nsStyleSides {
public:
nsStyleSides(void);

View File

@ -62,6 +62,14 @@ typedef union {
float mFloat;
} nsStyleUnion;
/**
* Class that hold a single size specification used by the style
* system. The size specification consists of two parts -- a number
* and a unit. The number is an integer, a floating point value, an
* nscoord, or undefined, and the unit is an nsStyleUnit. Checking
* the unit is a must before asking for the value in any particular
* form.
*/
class nsStyleCoord {
public:
nsStyleCoord(nsStyleUnit aUnit = eStyleUnit_Null);
@ -100,6 +108,11 @@ public:
};
/**
* Class that represents a set of top/right/bottom/left nsStyleCoords.
* This is commonly used to hold the widths of the borders, margins,
* or paddings of a box.
*/
class nsStyleSides {
public:
nsStyleSides(void);