All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.CSSPrimitiveValue Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
/*
 * Copyright 2018 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package elemental2.dom;

import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class CSSPrimitiveValue extends CSSValue {
  @JsOverlay public static final int CSS_ATTR = CSSPrimitiveValue__Constants.CSS_ATTR;
  @JsOverlay public static final int CSS_CM = CSSPrimitiveValue__Constants.CSS_CM;
  @JsOverlay public static final int CSS_COUNTER = CSSPrimitiveValue__Constants.CSS_COUNTER;
  @JsOverlay public static final int CSS_DEG = CSSPrimitiveValue__Constants.CSS_DEG;
  @JsOverlay public static final int CSS_DIMENSION = CSSPrimitiveValue__Constants.CSS_DIMENSION;
  @JsOverlay public static final int CSS_EMS = CSSPrimitiveValue__Constants.CSS_EMS;
  @JsOverlay public static final int CSS_EXS = CSSPrimitiveValue__Constants.CSS_EXS;
  @JsOverlay public static final int CSS_GRAD = CSSPrimitiveValue__Constants.CSS_GRAD;
  @JsOverlay public static final int CSS_HZ = CSSPrimitiveValue__Constants.CSS_HZ;
  @JsOverlay public static final int CSS_IDENT = CSSPrimitiveValue__Constants.CSS_IDENT;
  @JsOverlay public static final int CSS_IN = CSSPrimitiveValue__Constants.CSS_IN;
  @JsOverlay public static final int CSS_KHZ = CSSPrimitiveValue__Constants.CSS_KHZ;
  @JsOverlay public static final int CSS_MM = CSSPrimitiveValue__Constants.CSS_MM;
  @JsOverlay public static final int CSS_MS = CSSPrimitiveValue__Constants.CSS_MS;
  @JsOverlay public static final int CSS_NUMBER = CSSPrimitiveValue__Constants.CSS_NUMBER;
  @JsOverlay public static final int CSS_PC = CSSPrimitiveValue__Constants.CSS_PC;
  @JsOverlay public static final int CSS_PERCENTAGE = CSSPrimitiveValue__Constants.CSS_PERCENTAGE;
  @JsOverlay public static final int CSS_PT = CSSPrimitiveValue__Constants.CSS_PT;
  @JsOverlay public static final int CSS_PX = CSSPrimitiveValue__Constants.CSS_PX;
  @JsOverlay public static final int CSS_RAD = CSSPrimitiveValue__Constants.CSS_RAD;
  @JsOverlay public static final int CSS_RECT = CSSPrimitiveValue__Constants.CSS_RECT;
  @JsOverlay public static final int CSS_RGBCOLOR = CSSPrimitiveValue__Constants.CSS_RGBCOLOR;
  @JsOverlay public static final int CSS_S = CSSPrimitiveValue__Constants.CSS_S;
  @JsOverlay public static final int CSS_STRING = CSSPrimitiveValue__Constants.CSS_STRING;
  @JsOverlay public static final int CSS_UNKNOWN = CSSPrimitiveValue__Constants.CSS_UNKNOWN;
  @JsOverlay public static final int CSS_URI = CSSPrimitiveValue__Constants.CSS_URI;
  public double primitiveType;

  public native Counter getCounterValue();

  public native double getFloatValue(double unitType);

  public native RGBColor getRGBColorValue();

  public native Rect getRectValue();

  public native String getStringValue();

  public native void setFloatValue(double unitType, double floatValue);

  public native void setStringValue(double stringType, String stringValue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy