com.threerings.opengl.gui
Class DisplayRoot

java.lang.Object
  extended by com.threerings.opengl.util.SimpleRenderable
      extended by com.threerings.opengl.util.SimpleOverlay
          extended by com.threerings.opengl.gui.Root
              extended by com.threerings.opengl.gui.DisplayRoot
All Implemented Interfaces:
Compositable, Enqueueable, Tickable

public class DisplayRoot
extends Root

A root for Display-based apps.


Field Summary
 
Fields inherited from class com.threerings.opengl.gui.Root
DEFAULT_CURSOR
 
Constructor Summary
DisplayRoot(GlContext ctx)
           
 
Method Summary
 int getDisplayHeight()
          Returns the height of the display area.
 int getDisplayWidth()
          Returns the width of the display area.
 void poll()
          Polls the input system for events and dispatches them.
 void setMousePosition(int x, int y)
          Sets the mouse position.
 
Methods inherited from class com.threerings.opengl.gui.Root
addGlobalEventListener, addTickParticipant, addWindow, addWindow, clearDrag, dispose, getClipboard, getClipboardText, getFocus, getModifiers, getMouseX, getMouseY, getSound, getSoundGroup, getTickStamp, getTooltipTimeout, getTopWindow, getWindow, getWindowCount, isDragging, isOnTop, moveToTop, playSound, popDefaultEventTarget, pushDefaultEventTarget, removeAllWindows, removeGlobalEventListener, removeTickParticipant, removeWindow, requestFocus, resortWindows, rootInvalidated, setClipboardText, setCursor, setModalShade, setMouseDown, setMouseUp, setTooltipPreferredWidth, setTooltipTimeout, startDrag, tick, tipTextChanged, toString
 
Methods inherited from class com.threerings.opengl.util.SimpleOverlay
composite
 
Methods inherited from class com.threerings.opengl.util.SimpleRenderable
enqueue, getStates
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayRoot

public DisplayRoot(GlContext ctx)
Method Detail

poll

public void poll()
Polls the input system for events and dispatches them.


getDisplayWidth

public int getDisplayWidth()
Description copied from class: Root
Returns the width of the display area.

Specified by:
getDisplayWidth in class Root

getDisplayHeight

public int getDisplayHeight()
Description copied from class: Root
Returns the height of the display area.

Specified by:
getDisplayHeight in class Root

setMousePosition

public void setMousePosition(int x,
                             int y)
Description copied from class: Root
Sets the mouse position.

Overrides:
setMousePosition in class Root


Copyright © 2011. All Rights Reserved.