com.threerings.opengl.gui
Class StretchWindow

java.lang.Object
  extended by com.threerings.opengl.gui.Component
      extended by com.threerings.opengl.gui.Container
          extended by com.threerings.opengl.gui.Window
              extended by com.threerings.opengl.gui.StretchWindow
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Renderer.Observer, Comparable<Window>

public class StretchWindow
extends Window
implements Renderer.Observer

A window that automatically stretches to cover the entire render surface.


Field Summary
 
Fields inherited from class com.threerings.opengl.gui.Component
DEFAULT, DISABLED, HOVER
 
Constructor Summary
StretchWindow(GlContext ctx, LayoutManager layout)
           
 
Method Summary
 void sizeChanged(int width, int height)
          Notes that the size of the renderer's drawable surface has changed.
 
Methods inherited from class com.threerings.opengl.gui.Window
center, compareTo, dismiss, getLayer, getParentWindow, getRoot, invalidate, isAdded, isModal, isOverlay, pack, pack, setBounds, setLayer, setModal, setParent, setParentWindow, shouldShadeBehind
 
Methods inherited from class com.threerings.opengl.gui.Container
add, add, add, add, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, remove, remove, removeAll, replace, setAlpha, setEnabled, setHoverable, setLayoutManager, validate
 
Methods inherited from class com.threerings.opengl.gui.Component
acceptsFocus, addListener, boundsToString, configUpdated, contains, createDefaultTooltipComponent, createDefaultTooltipComponent, dispatchEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getContext, getCursor, getFocusTarget, getHeight, getInsets, getParent, getPreferredSize, getProperty, getState, getStyleConfigs, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, getTransferHandler, getWidth, getX, getY, hasFocus, isEnabled, isHoverable, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeAllListeners, removeListener, render, requestFocus, scrollRectToVisible, setBackground, setCursor, setLocation, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleConfig, setStyleConfig, setStyleConfig, setStyleConfigs, setTooltipRelativeToMouse, setTooltipText, setTransferHandler, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StretchWindow

public StretchWindow(GlContext ctx,
                     LayoutManager layout)
Method Detail

sizeChanged

public void sizeChanged(int width,
                        int height)
Description copied from interface: Renderer.Observer
Notes that the size of the renderer's drawable surface has changed.

Specified by:
sizeChanged in interface Renderer.Observer


Copyright © 2011. All Rights Reserved.