Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CSS

[14:7] extends: FxObj

Wraps FXGL's CSS (com.almasb.fxgl.scene.CSS), a small data class identifying a CSS resource by its external form. The external form is the URL string a JavaFX scene's stylesheet list accepts (for example, the value returned by URL.toExternalForm).

Methods

  • CSS (string ExternalForm = "")

    Creates a new CSS reference around the given external form string.

    • @p ExternalForm is the stylesheet URL in external-form notation.
  • adopt (object Ajo)

    Wraps an existing CSS AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a CSS.
    • @r A new wrapper.
  • getExternalForm ()

    Returns the external-form URL string.

    • @r A string.