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

com.raquo.laminar.defs.styles.traits.PointerEvents.scala Maven / Gradle / Ivy

The newest version!
package com.raquo.laminar.defs.styles.traits

import com.raquo.laminar.keys.StyleProp
import com.raquo.laminar.modifiers.KeySetter.StyleSetter

// #NOTE: GENERATED CODE
//  - This file is generated at compile time from the data in Scala DOM Types
//  - See `project/DomDefsGenerator.scala` for code generation params
//  - Contribute to https://github.com/raquo/scala-dom-types to add missing tags / attrs / props / etc.

trait PointerEvents extends None with Auto { this: StyleProp[_] =>

  /**
    * The element behaves as it would if the pointer-events property was not
    * specified. In SVG content, this value and the value visiblePainted have
    * the same effect.
    */
  override lazy val auto: StyleSetter = this := "auto"

  /**
    * The element is never the target of mouse events; however, mouse events
    * may target its descendant elements if those descendants have pointer-events
    * set to some other value. In these circumstances, mouse events will trigger
    * event listeners on this parent element as appropriate on their way to/from
    * the descendant during the event capture/bubble phases.
    */
  override lazy val none: StyleSetter = this := "none"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * visibility property is set to visible and when the mouse cursor is over
    * the interior (i.e., 'fill') of the element and the fill property is set
    * to a value other than none, or when the mouse cursor is over the perimeter
    * (i.e., 'stroke') of the element and the stroke property is set to a value
    * other than none.
    */
  lazy val visiblePainted: StyleSetter = this := "visiblePainted"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * visibility property is set to visible and when the mouse cursor is over
    * the interior (i.e., fill) of the element. The value of the fill property
    * does not effect event processing.
    */
  lazy val visibleFill: StyleSetter = this := "visibleFill"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * visibility property is set to visible and when the mouse cursor is over
    * the perimeter (i.e., stroke) of the element. The value of the stroke
    * property does not effect event processing.
    */
  lazy val visibleStroke: StyleSetter = this := "visibleStroke"

  /**
    * SVG only. The element can be the target of a mouse event when the
    * visibility property is set to visible and the mouse cursor is over either
    * the interior (i.e., fill) or the perimeter (i.e., stroke) of the element.
    * The values of the fill and stroke do not effect event processing.
    */
  lazy val visible: StyleSetter = this := "visible"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * mouse cursor is over the interior (i.e., 'fill') of the element and the
    * fill property is set to a value other than none, or when the mouse cursor
    * is over the perimeter (i.e., 'stroke') of the element and the stroke
    * property is set to a value other than none. The value of the visibility
    * property does not effect event processing.
    */
  lazy val painted: StyleSetter = this := "painted"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * pointer is over the interior (i.e., fill) of the element. The values of
    * the fill and visibility properties do not effect event processing.
    */
  lazy val fill: StyleSetter = this := "fill"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * pointer is over the perimeter (i.e., stroke) of the element. The values
    * of the stroke and visibility properties do not effect event processing.
    */
  lazy val stroke: StyleSetter = this := "stroke"

  /**
    * SVG only. The element can only be the target of a mouse event when the
    * pointer is over the interior (i.e., fill) or the perimeter (i.e., stroke)
    * of the element. The values of the fill, stroke and visibility properties
    * do not effect event processing.
    */
  lazy val all: StyleSetter = this := "all"

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy