Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations
nsCSSValue.h File Reference
#include "nsColor.h"
#include "nsString.h"
#include "nsCRT.h"
#include "nsCoord.h"
#include "nsCSSProperty.h"
#include "nsUnitConversion.h"
#include "nsIURI.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsCSSValue
struct  nsCSSValue::Array
struct  nsCSSValue::URL
struct  nsCSSValue::Image

Defines

#define CSSVALUE_LIST_FOR_VALUES(var)

Enumerations

enum  nsCSSUnit {
  eCSSUnit_Null = 0, eCSSUnit_Auto = 1, eCSSUnit_Inherit = 2, eCSSUnit_Initial = 3,
  eCSSUnit_None = 4, eCSSUnit_Normal = 5, eCSSUnit_String = 10, eCSSUnit_Attr = 11,
  eCSSUnit_Array = 20, eCSSUnit_Counter = 21, eCSSUnit_Counters = 22, eCSSUnit_URL = 30,
  eCSSUnit_Image = 31, eCSSUnit_Integer = 50, eCSSUnit_Enumerated = 51, eCSSUnit_Color = 80,
  eCSSUnit_Percent = 90, eCSSUnit_Number = 91, eCSSUnit_Inch = 100, eCSSUnit_Foot = 101,
  eCSSUnit_Mile = 102, eCSSUnit_Millimeter = 207, eCSSUnit_Centimeter = 208, eCSSUnit_Meter = 210,
  eCSSUnit_Kilometer = 213, eCSSUnit_Point = 300, eCSSUnit_Pica = 301, eCSSUnit_Didot = 400,
  eCSSUnit_Cicero = 401, eCSSUnit_EM = 800, eCSSUnit_EN = 801, eCSSUnit_XHeight = 802,
  eCSSUnit_CapHeight = 803, eCSSUnit_Char = 804, eCSSUnit_Pixel = 900, eCSSUnit_Proportional = 950,
  eCSSUnit_Degree = 1000, eCSSUnit_Grad = 1001, eCSSUnit_Radian = 1002, eCSSUnit_Hertz = 2000,
  eCSSUnit_Kilohertz = 2001, eCSSUnit_Seconds = 3000, eCSSUnit_Milliseconds = 3001
}

Define Documentation

Value:
for (nsCSSValue *var = First(), *var##_end = var + mCount;                  \
       var != var##_end; ++var)

Definition at line 362 of file nsCSSValue.h.


Enumeration Type Documentation

enum nsCSSUnit
Enumerator:
eCSSUnit_Null 
eCSSUnit_Auto 
eCSSUnit_Inherit 
eCSSUnit_Initial 
eCSSUnit_None 
eCSSUnit_Normal 
eCSSUnit_String 
eCSSUnit_Attr 
eCSSUnit_Array 
eCSSUnit_Counter 
eCSSUnit_Counters 
eCSSUnit_URL 
eCSSUnit_Image 
eCSSUnit_Integer 
eCSSUnit_Enumerated 
eCSSUnit_Color 
eCSSUnit_Percent 
eCSSUnit_Number 
eCSSUnit_Inch 
eCSSUnit_Foot 
eCSSUnit_Mile 
eCSSUnit_Millimeter 
eCSSUnit_Centimeter 
eCSSUnit_Meter 
eCSSUnit_Kilometer 
eCSSUnit_Point 
eCSSUnit_Pica 
eCSSUnit_Didot 
eCSSUnit_Cicero 
eCSSUnit_EM 
eCSSUnit_EN 
eCSSUnit_XHeight 
eCSSUnit_CapHeight 
eCSSUnit_Char 
eCSSUnit_Pixel 
eCSSUnit_Proportional 
eCSSUnit_Degree 
eCSSUnit_Grad 
eCSSUnit_Radian 
eCSSUnit_Hertz 
eCSSUnit_Kilohertz 
eCSSUnit_Seconds 
eCSSUnit_Milliseconds 

Definition at line 53 of file nsCSSValue.h.

               {
  eCSSUnit_Null         = 0,      // (n/a) null unit, value is not specified
  eCSSUnit_Auto         = 1,      // (n/a) value is algorithmic
  eCSSUnit_Inherit      = 2,      // (n/a) value is inherited
  eCSSUnit_Initial      = 3,      // (n/a) value is default UA value
  eCSSUnit_None         = 4,      // (n/a) value is none
  eCSSUnit_Normal       = 5,      // (n/a) value is normal (algorithmic, different than auto)
  eCSSUnit_String       = 10,     // (PRUnichar*) a string value
  eCSSUnit_Attr         = 11,     // (PRUnichar*) a attr(string) value
  eCSSUnit_Array        = 20,     // (nsCSSValue::Array*) a list of values
  eCSSUnit_Counter      = 21,     // (nsCSSValue::Array*) a counter(string,[string]) value
  eCSSUnit_Counters     = 22,     // (nsCSSValue::Array*) a counters(string,string[,string]) value
  eCSSUnit_URL          = 30,     // (nsCSSValue::URL*) value
  eCSSUnit_Image        = 31,     // (nsCSSValue::Image*) value
  eCSSUnit_Integer      = 50,     // (int) simple value
  eCSSUnit_Enumerated   = 51,     // (int) value has enumerated meaning
  eCSSUnit_Color        = 80,     // (color) an RGBA value
  eCSSUnit_Percent      = 90,     // (float) 1.0 == 100%) value is percentage of something
  eCSSUnit_Number       = 91,     // (float) value is numeric (usually multiplier, different behavior that percent)

  // Length units - fixed
  // US English
  eCSSUnit_Inch         = 100,    // (float) 0.0254 meters
  eCSSUnit_Foot         = 101,    // (float) 12 inches
  eCSSUnit_Mile         = 102,    // (float) 5280 feet

  // Metric
  eCSSUnit_Millimeter   = 207,    // (float) 1/1000 meter
  eCSSUnit_Centimeter   = 208,    // (float) 1/100 meter
  eCSSUnit_Meter        = 210,    // (float) Standard length
  eCSSUnit_Kilometer    = 213,    // (float) 1000 meters

  // US Typographic
  eCSSUnit_Point        = 300,    // (float) 1/72 inch
  eCSSUnit_Pica         = 301,    // (float) 12 points == 1/6 inch

  // European Typographic
  eCSSUnit_Didot        = 400,    // (float) 15 didots == 16 points
  eCSSUnit_Cicero       = 401,    // (float) 12 didots

  // Length units - relative
  // Font relative measure
  eCSSUnit_EM           = 800,    // (float) == current font size
  eCSSUnit_EN           = 801,    // (float) .5 em
  eCSSUnit_XHeight      = 802,    // (float) distance from top of lower case x to baseline
  eCSSUnit_CapHeight    = 803,    // (float) distance from top of uppercase case H to baseline
  eCSSUnit_Char         = 804,    // (float) number of characters, used for width with monospace font

  // Screen relative measure
  eCSSUnit_Pixel        = 900,    // (float) CSS pixel unit

  // Proportional Unit (for columns in tables)
  eCSSUnit_Proportional = 950, 

  // Angular units
  eCSSUnit_Degree       = 1000,    // (float) 360 per circle
  eCSSUnit_Grad         = 1001,    // (float) 400 per circle
  eCSSUnit_Radian       = 1002,    // (float) 2*pi per circle

  // Frequency units
  eCSSUnit_Hertz        = 2000,    // (float) 1/seconds
  eCSSUnit_Kilohertz    = 2001,    // (float) 1000 Hertz

  // Time units
  eCSSUnit_Seconds      = 3000,    // (float) Standard time
  eCSSUnit_Milliseconds = 3001     // (float) 1/1000 second
};