com.threerings.opengl.gui.config
Class CursorConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.opengl.gui.config.CursorConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, com.threerings.resource.ResourceManager.ModificationObserver, Copyable, Cloneable

public class CursorConfig
extends ManagedConfig

Describes a cursor.


Field Summary
 ColorizationConfig[] colorizations
          Colorizations to apply to the cursor.
 int hotSpotX
          The hot spot x coordinate.
 int hotSpotY
          The hot spot y coordinate.
 String image
          The cursor image.
 
Constructor Summary
CursorConfig()
           
 
Method Summary
 Cursor getCursor(GlContext ctx)
          Returns the cursor corresponding to this config.
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getInstance, getName, getReference, init, removeListener, resourceModified, setName, updateFromSource, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

image

@Editable(editor="resource",
          nullable=true)
@FileConstraints(description="m.image_files_desc",
                 extensions={".png",".jpg"},
                 directory="image_dir")
public String image
The cursor image.


colorizations

@Editable
public ColorizationConfig[] colorizations
Colorizations to apply to the cursor.


hotSpotX

@Editable(min=0.0,
          hgroup="h")
public int hotSpotX
The hot spot x coordinate.


hotSpotY

@Editable(min=0.0,
          hgroup="h")
public int hotSpotY
The hot spot y coordinate.

Constructor Detail

CursorConfig

public CursorConfig()
Method Detail

getCursor

public Cursor getCursor(GlContext ctx)
Returns the cursor corresponding to this config.



Copyright © 2011. All Rights Reserved.