Warning, /kdevelop/kdevelop/plugins/qmljs/nodejsmodules/dom_css/CSSPrimitiveValue.idl is written in an unsupported language. File is not indexed.

0001 /*
0002  * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Library General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2 of the License, or (at your option) any later version.
0008  *
0009  * This library is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012  * Library General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Library General Public License
0015  * along with this library; see the file COPYING.LIB.  If not, write to
0016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017  * Boston, MA 02110-1301, USA.
0018  */
0019 
0020 module css {
0021 
0022     interface CSSPrimitiveValue : CSSValue {
0023 
0024         // UnitTypes
0025         const unsigned short CSS_UNKNOWN    = 0;
0026         const unsigned short CSS_NUMBER     = 1;
0027         const unsigned short CSS_PERCENTAGE = 2;
0028         const unsigned short CSS_EMS        = 3;
0029         const unsigned short CSS_EXS        = 4;
0030         const unsigned short CSS_PX         = 5;
0031         const unsigned short CSS_CM         = 6;
0032         const unsigned short CSS_MM         = 7;
0033         const unsigned short CSS_IN         = 8;
0034         const unsigned short CSS_PT         = 9;
0035         const unsigned short CSS_PC         = 10;
0036         const unsigned short CSS_DEG        = 11;
0037         const unsigned short CSS_RAD        = 12;
0038         const unsigned short CSS_GRAD       = 13;
0039         const unsigned short CSS_MS         = 14;
0040         const unsigned short CSS_S          = 15;
0041         const unsigned short CSS_HZ         = 16;
0042         const unsigned short CSS_KHZ        = 17;
0043         const unsigned short CSS_DIMENSION  = 18;
0044         const unsigned short CSS_STRING     = 19;
0045         const unsigned short CSS_URI        = 20;
0046         const unsigned short CSS_IDENT      = 21;
0047         const unsigned short CSS_ATTR       = 22;
0048         const unsigned short CSS_COUNTER    = 23;
0049         const unsigned short CSS_RECT       = 24;
0050         const unsigned short CSS_RGBCOLOR   = 25;
0051 
0052         readonly attribute unsigned short primitiveType;
0053 
0054         [OldStyleObjC] void setFloatValue(in unsigned short unitType,
0055                                           in float floatValue)
0056             raises(DOMException);
0057         float getFloatValue(in unsigned short unitType)
0058             raises(DOMException);
0059         [OldStyleObjC] void setStringValue(in unsigned short stringType, 
0060                                            in DOMString stringValue)
0061             raises(DOMException);
0062         DOMString getStringValue()
0063             raises(DOMException);
0064         Counter getCounterValue()
0065             raises(DOMException);
0066         Rect getRectValue()
0067             raises(DOMException);
0068         RGBColor getRGBColorValue()
0069             raises(DOMException);
0070     };
0071 
0072 }