com.threerings.opengl.gui
Class DisplayRoot
java.lang.Object
com.threerings.opengl.util.SimpleRenderable
com.threerings.opengl.util.SimpleOverlay
com.threerings.opengl.gui.Root
com.threerings.opengl.gui.DisplayRoot
- All Implemented Interfaces:
- Compositable, Enqueueable, Tickable
public class DisplayRoot
- extends Root
A root for Display-based apps.
|
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 |
DisplayRoot
public DisplayRoot(GlContext ctx)
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.