Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.libsdl
Class SDLWindowManager  view SDLWindowManager download SDLWindowManager.java

java.lang.Object
  extended byorg.libsdl.SDLWindowManager

public class SDLWindowManager
extends java.lang.Object

The SDLWindowManager class encompasses the ability to access the various SDL window management functions.

------ EXAMPLE ------

     SDL sdl = SDL.getInstance();
     sdl.init(SDL.SDL_INIT_VIDEO);
     SDLVideo video = sdl.getVideo();
     SDLVideoInfo vidinfo = video.getVideoInfo();
     if (vidinfo.windowManagerAvailable()) {
         SDLWindowManager wm = sdl.getWindowManager();
         wm.setCaption("SDL_java Test", null);
     }
 

Version:
$revision$

Field Summary
static int SDL_GRAB_OFF
           
static int SDL_GRAB_ON
           
static int SDL_GRAB_QUERY
           
 
Constructor Summary
SDLWindowManager()
           
 
Method Summary
 java.lang.String getIcon()
          Gets the window's icon name.
 java.lang.String getTitle()
          Gets the window title.
 int grabInput(int grabMode)
          Sets the "Grab" mode.
 void iconify()
          Iconifies the window.
 void setCaption(java.lang.String title, java.lang.String icon)
          Sets the window title and icon name.
 boolean toggleFullScreen(org.libsdl.video.SDLSurface surface)
          Toggles fullscreen mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SDL_GRAB_QUERY

public static int SDL_GRAB_QUERY

SDL_GRAB_OFF

public static int SDL_GRAB_OFF

SDL_GRAB_ON

public static int SDL_GRAB_ON
Constructor Detail

SDLWindowManager

public SDLWindowManager()
Method Detail

setCaption

public void setCaption(java.lang.String title,
                       java.lang.String icon)
Sets the window title and icon name.

Corresponds:

SDL_WM_SetCaption()


getTitle

public java.lang.String getTitle()
Gets the window title.

Corresponds:

SDL_WM_GetCaption()


getIcon

public java.lang.String getIcon()
Gets the window's icon name.

Corresponds:

SDL_WM_GetCaption()


iconify

public void iconify()
Iconifies the window.

Corresponds:

SDL_WM_IconifyWindow()


toggleFullScreen

public boolean toggleFullScreen(org.libsdl.video.SDLSurface surface)
Toggles fullscreen mode.

Corresponds:

SDL_WM_ToggleFullScreen()


grabInput

public int grabInput(int grabMode)
Sets the "Grab" mode. Grabbing determines how input is handled or not handled by the window manager.

Corresponds:

SDL_WM_GrabInput()