Back to index

lightning-sunbird  0.9+nobinonly
Classes | Enumerations
nsStyleCoord.h File Reference
#include "nscore.h"
#include "nsCoord.h"
#include "nsCRT.h"
#include "nsStyleConsts.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  nsStyleUnion
class  nsStyleCoord
 Class that hold a single size specification used by the style system. More...
class  nsStyleSides
 Class that represents a set of top/right/bottom/left nsStyleCoords. More...

Enumerations

enum  nsStyleUnit {
  eStyleUnit_Null = 0, eStyleUnit_Normal = 1, eStyleUnit_Auto = 2, eStyleUnit_Percent = 10,
  eStyleUnit_Factor = 11, eStyleUnit_Coord = 20, eStyleUnit_Integer = 30, eStyleUnit_Proportional = 31,
  eStyleUnit_Enumerated = 32, eStyleUnit_Chars = 33
}

Class Documentation

union nsStyleUnion

Definition at line 59 of file nsStyleCoord.h.

Class Members
float mFloat
PRInt32 mInt

Enumeration Type Documentation

Enumerator:
eStyleUnit_Null 
eStyleUnit_Normal 
eStyleUnit_Auto 
eStyleUnit_Percent 
eStyleUnit_Factor 
eStyleUnit_Coord 
eStyleUnit_Integer 
eStyleUnit_Proportional 
eStyleUnit_Enumerated 
eStyleUnit_Chars 

Definition at line 46 of file nsStyleCoord.h.

                 {
  eStyleUnit_Null         = 0,      // (no value) value is not specified
  eStyleUnit_Normal       = 1,      // (no value)
  eStyleUnit_Auto         = 2,      // (no value)
  eStyleUnit_Percent      = 10,     // (float) 1.0 == 100%
  eStyleUnit_Factor       = 11,     // (float) a multiplier
  eStyleUnit_Coord        = 20,     // (nscoord) value is twips
  eStyleUnit_Integer      = 30,     // (int) value is simple integer
  eStyleUnit_Proportional = 31,     // (int) value has proportional meaning
  eStyleUnit_Enumerated   = 32,     // (int) value has enumerated meaning
  eStyleUnit_Chars        = 33      // (int) value is number of characters
};