org.gnu.gdk
Class Window

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gdk.Drawable
              extended by org.gnu.gdk.Window

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.gdk.Window.

public class Window
extends Drawable

A rectangular region on the screen. It's a low-level object, used to implement high-level objects such as Widget and Window on the GTK+ level. A Window is a toplevel window, the thing a user might think of as a "window" with a titlebar and so on; a Window may contain many Windows.


Constructor Summary
Window(org.gnu.glib.Handle handle)
          Deprecated.  
Window(Window parent, WindowAttr attributes, int attributesMask)
          Deprecated.  
 
Method Summary
 void beginPaintRectangle(Rectangle rec)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void beginPaintRegion(Region region)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void clear()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void clearArea(int x, int y, int width, int height, boolean exposeEvent)
          Deprecated.  
 void deiconify()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void destroy()
          Deprecated.  
 void endPaint()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Window[] getChildren()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 EventMask getEvents()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Rectangle getFrameExtents()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 int getHeight()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void getKeyboardFocus()
          Deprecated.  
 Point getOrigin()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Window getParent()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Point getPointerLocation()
          Deprecated.  
 ModifierType getPointerModifierType()
          Deprecated.  
 Window getPointerWindow()
          Deprecated.  
 Point getPosition()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Point getRootOrigin()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Window getToplevel()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static Window[] getTopLevelWindows()
          Deprecated.  
static org.gnu.glib.Type getType()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 int getWidth()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 Window getWindowAt(int x, int y)
          Deprecated. This method is incorrect and is deprecated in favor of getWindowAtPointer().
 Window getWindowAtPointer()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
static Window getWindowFromHandle(org.gnu.glib.Handle hndl)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 WindowState getWindowState()
          Deprecated.  
 GrabStatus grabKeyboard(boolean ownerEvents, int time)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 GrabStatus grabPointer(boolean ownerEvents, EventMask eventMask, Window confineTo, Cursor cursor, int time)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void hide()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void iconify()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void invalidateRect(Rectangle rect, boolean invalidateChildren)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void invalidateRegion(Region region, boolean invalidateChildren)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 boolean isViewable()
          Deprecated.  
 boolean isVisible()
          Deprecated.  
 void lower()
          Deprecated.  
 void maximize()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void mergeChildShapes()
          Deprecated.  
 void move(int x, int y)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void moveAndResize(int x, int y, int width, int height)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 boolean pointerIsGrabbed()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void raise()
          Deprecated.  
 void reparent(Window parent, int x, int y)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void resize(int width, int height)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void scrollContent(int x, int y)
          Deprecated.  
 void setBackground(Color color)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setBackground(Pixmap pixmap, boolean parentRelative)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setBitmapMask(Bitmap mask, int x, int y)
          Deprecated.  
 void setChildMask(boolean masked)
          Deprecated.  
 void setCursor(Cursor cursor)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setEvents(EventMask mask)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setGeometryHints(Geometry geometry, WindowHints hints)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setHint(WindowTypeHint hint)
          Deprecated.  
 void setIcon(Window icon, Pixmap pixmap, Bitmap mask)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setIconList(Pixbuf[] icons)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setIconName(java.lang.String name)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setModalHint(boolean modal)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setRegionMask(Region region, int x, int y)
          Deprecated.  
 void setRole(java.lang.String role)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 boolean setStaticGravities(boolean useStatic)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setTitle(java.lang.String title)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setTransientOf(Window parent)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void setUnmanaged(boolean unmanaged)
          Deprecated.  
 void show()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void showUnraised()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void stick()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void ungrabKeyboard(int time)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void ungrabPointer(int time)
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void unmaximize()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void unstick()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 void withdraw()
          Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
 
Methods inherited from class org.gnu.gdk.Drawable
drawArc, drawArc, drawDrawable, drawDrawable, drawGlyphs, drawGlyphs, drawGrayImage, drawGrayImage, drawImage, drawImage, drawIndexedImage, drawIndexedImage, drawLayout, drawLayout, drawLayoutLine, drawLayoutLine, drawLayoutLineWithColors, drawLayoutLineWithColors, drawLayoutWithColors, drawLayoutWithColors, drawLine, drawLine, drawLines, drawLines, drawPixbuf, drawPixbuf, drawPoint, drawPoint, drawPoints, drawPoints, drawPolygon, drawPolygon, drawRectangle, drawRectangle, drawRGB32Image, drawRGB32Image, drawRGB32ImageDitherAlign, drawRGB32ImageDitherAlign, drawRGBImage, drawRGBImage, drawRGBImageDitherAlign, drawRGBImageDitherAlign, drawSegments, drawSegments, getClipRegion, getColormap, getDepth, getDisplay, getImage, getScreen, getSize, getVisibleRegion, getVisual, setColormap
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Window

public Window(org.gnu.glib.Handle handle)
Deprecated. 

Window

public Window(Window parent,
              WindowAttr attributes,
              int attributesMask)
Deprecated. 
Method Detail

destroy

public void destroy()
Deprecated. 

getWindowAt

public Window getWindowAt(int x,
                          int y)
Deprecated. This method is incorrect and is deprecated in favor of getWindowAtPointer().

Obtains the window underneath the mouse pointer. Returs NULL if the window under the mouse pointer is not known to GDK (for example, belongs to another application).

Parameters:
x - X position of the window.
y - Y position of the window.
Returns:
The window underneath the mouse pointer.

getWindowAtPointer

public Window getWindowAtPointer()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the window underneath the mouse pointer. Returs NULL if the window under the mouse pointer is not known to GDK (for example, belongs to another application).

Returns:
The window underneath the mouse pointer.

show

public void show()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Raises the window to the top of the window stack (moves the window to the front of the Z-order).


hide

public void hide()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

For toplevel windows, withdraws them, so they will no longer be known to the window manager; for all windows, unmaps them, so they won't be displayed.


withdraw

public void withdraw()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Withdraws a window (unmaps it and asks the window manager to forget about it).


showUnraised

public void showUnraised()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Shows a GdkWindow onscreen, but does not modify its stacking order. In contrast, show() will raise the window to the top of the window stack.


move

public void move(int x,
                 int y)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Repositions a window relative to its parent window. For toplevel windows, window managers may ignore or modify the move; For child windows, the move will reliably succeed.

Parameters:
x - new x position.
y - new y position.

resize

public void resize(int width,
                   int height)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Resizes window; for toplevel windows, asks the window manager to resize the window. The window manager may not allow the resize. Windows may not be resized below 1x1.

Parameters:
width - the new window width.
height - the new window height.

moveAndResize

public void moveAndResize(int x,
                          int y,
                          int width,
                          int height)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Equivalent to calling move() and resize(), except that both operations are performed at once, avoiding strange visual effects (ie the user may be able to see the window first move, then resize, if you don't use moveAndResize()).

Parameters:
x - the new x position.
y - the new y position.
width - the new width.
height - the new height.

reparent

public void reparent(Window parent,
                     int x,
                     int y)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Reparents window into the given parent. The window being reparented will be unmapped as a side effect.

Parameters:
parent - the new parent to move window into.
x - X location inside the new parent.
y - Y location inside the new parent.

clear

public void clear()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Clears an entire window to the background color or background pixmap.


clearArea

public void clearArea(int x,
                      int y,
                      int width,
                      int height,
                      boolean exposeEvent)
Deprecated. 

raise

public void raise()
Deprecated. 

lower

public void lower()
Deprecated. 

getKeyboardFocus

public void getKeyboardFocus()
Deprecated. 

setUnmanaged

public void setUnmanaged(boolean unmanaged)
Deprecated. 

scrollContent

public void scrollContent(int x,
                          int y)
Deprecated. 

setBitmapMask

public void setBitmapMask(Bitmap mask,
                          int x,
                          int y)
Deprecated. 

setRegionMask

public void setRegionMask(Region region,
                          int x,
                          int y)
Deprecated. 

setChildMask

public void setChildMask(boolean masked)
Deprecated. 

mergeChildShapes

public void mergeChildShapes()
Deprecated. 

isVisible

public boolean isVisible()
Deprecated. 

isViewable

public boolean isViewable()
Deprecated. 

getWindowState

public WindowState getWindowState()
Deprecated. 

setHint

public void setHint(WindowTypeHint hint)
Deprecated. 

getTopLevelWindows

public static Window[] getTopLevelWindows()
Deprecated. 

getWidth

public int getWidth()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the current width of the Window.

Overrides:
getWidth in class Drawable
Returns:
The width of the Window.

getHeight

public int getHeight()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the current height of the Window.

Overrides:
getHeight in class Drawable
Returns:
The height of the Window.

setEvents

public void setEvents(EventMask mask)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

The event mask for a window determines which events will be reported for that window. For example, an event mask including BUTTON_PRESS_MASK means the window should report button press events. The event mask is the bitwise OR of values from the EventMask enumeration.

Parameters:
mask - the new event mask.

getEvents

public EventMask getEvents()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the event mask for window.

Returns:
the event mask of the window.
See Also:
setEvents(EventMask)

setStaticGravities

public boolean setStaticGravities(boolean useStatic)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Set the bit gravity of the given window to static, and flag it so all children get static subwindow gravity. This is used if you are implementing scary features that involve deep knowledge of the windowing system. Don't worry about it unless you have to.

Parameters:
useStatic -
Returns:
true if the server supports static gravity.

setModalHint

public void setModalHint(boolean modal)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

The application can use this hint to tell the window manager that a certain window has modal behavior. The window manager can use this information to handle modal windows in certain ways.

Parameters:
modal -

setGeometryHints

public void setGeometryHints(Geometry geometry,
                             WindowHints hints)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the geometry hints for a window.

Parameters:
geometry -
hints -

beginPaintRectangle

public void beginPaintRectangle(Rectangle rec)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Indicates that you are beginning the process of redrawing rec. A backing store (offscreen buffer) large enough to contain rectangle will be created. The backing store will be initialized with the background color or background pixmap for window. Then, all drawing operations performed on window will be diverted to the backing store. When you call endPaint(), the backing store will be copied to window, making it visible onscreen. Only the part of window contained in region will be modified; that is, drawing operations are clipped to rectangle.

Parameters:
rec -

beginPaintRegion

public void beginPaintRegion(Region region)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Indicates that you are beginning the process of redrawing region. A backing store (offscreen buffer) large enough to contain region will be created. The backing store will be initialized with the background color or background pixmap for window. Then, all drawing operations performed on window will be diverted to the backing store. When you call endPaint(), the backing store will be copied to window, making it visible onscreen. Only the part of window contained in region will be modified; that is, drawing operations are clipped to region.

Parameters:
region -

endPaint

public void endPaint()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Indicates that the backing store created by the most recent call to beginPaintRegion() should be copied onscreen and deleted, leaving the next-most-recent backing store or no backing store at all as the active paint region. See beginPaintRegion() for full details. It is an error to call this function without a matching beginPaintRegion() first.


invalidateRect

public void invalidateRect(Rectangle rect,
                           boolean invalidateChildren)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Invalidates a rectangular region of the window's content.


invalidateRegion

public void invalidateRegion(Region region,
                             boolean invalidateChildren)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Invalidates a region of the window's content.


setTitle

public void setTitle(java.lang.String title)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the title of a toplevel window, to be displayed in the titlebar. If you haven't explicitly set the icon name for the window (using setIconName()), the icon name will be set to title as well. Title may not be null.

Parameters:
title -

setRole

public void setRole(java.lang.String role)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

The window manager and session manager use a window's role to distinguish it from other kinds of window in the same application. When an application is restarted after being saved in a previous session, all windows with the same title and role are treated as interchangeable. So if you have two windows with the same title that should be distinguished for session management purposes, you should set the role on those windows. It doesn't matter what string you use for the role, as long as you have a different role for each non-interchangeable kind of window

Parameters:
role -

setTransientOf

public void setTransientOf(Window parent)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Indicates to the window manager that the window is a transient dialog associated with the application window parent. This allows the window manager to do things like center window on parent and keep window above parent.

Parameters:
parent -

setBackground

public void setBackground(Color color)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the background color of a window.

Parameters:
color -

setBackground

public void setBackground(Pixmap pixmap,
                          boolean parentRelative)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the background pixmap of window. May also be used to set a background of "None" on window, by setting a background pixmap of null. A background pixmap will be tiled, positioning the first tile at the origin of window, or if parent_relative is true, the tiling will be done based on the origin of the parent window (useful to align tiles in a parent with tiles in a child).

Parameters:
pixmap -
parentRelative -

setCursor

public void setCursor(Cursor cursor)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the mouse pointer for a Window.

Parameters:
cursor -

getPosition

public Point getPosition()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the position of the window as reported in the most-recently-processed EventConfigure. Contrast with getGeometry() which queries the X server for the current window position, regardless of which events have been received or processed.


getOrigin

public Point getOrigin()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the position of a window in root window coordinates. (Compare with getPosition() and getGeometry() which return the position of a window relative to its parent window.)


getRootOrigin

public Point getRootOrigin()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the top-left corner of the window manager frame in root window coordinates.


getFrameExtents

public Rectangle getFrameExtents()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the bounding box of the window, including window manager titlebar/borders if any. The frame position is given in root window coordinates. To get the position of the window itself (rather than the frame) in root window coordinates, use getOrigin().


getParent

public Window getParent()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Obtains the parent of window, as known to GDK. Does not query the X server; thus this returns the parent as passed to the constructor, not the actual parent.


getToplevel

public Window getToplevel()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the toplevel window that's an ancestor of this window.


getChildren

public Window[] getChildren()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets the list of children of window known to GDK. This function only returns children created via GDK, so for example it's useless when used with the root window; it only returns windows an application created itself.


setIconList

public void setIconList(Pixbuf[] icons)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets up the icon representing a Window. The icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts.

This method allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don't scale the image before passing it. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling.

Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger images (64x64, 128x128) if you have them.

Parameters:
icons -

setIcon

public void setIcon(Window icon,
                    Pixmap pixmap,
                    Bitmap mask)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets up the icon representing a Window. This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts.

The icon should be provided in whatever size it was naturally drawn; that is, don't scale the image before passing it. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

If you have your icon hand-drawn in multiple sizes, use setIconList(). Then the best size will be used.

Parameters:
icon -
pixmap -
mask -

setIconName

public void setIconName(java.lang.String name)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Sets the icon for the window from a named themed icon. See the docs for IconTheme for more details.

Parameters:
name -

iconify

public void iconify()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to iconify (ie minimize) the specified window. Note that you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or window manager) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc. But normally the window will end up iconified. Just don't write code that crashes if not.


deiconify

public void deiconify()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to deiconify (ie unminimize) the specified window. Note that you shouldn't assume the window is definitely deiconified afterward, because other entities (e.g. the user or window manager) could iconify it again before your code which assumes deiconification gets to run.


stick

public void stick()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to stick window, which means that it will appear on all user desktops. Note that you shouldn't assume the window is definitely stuck afterward, because other entities (e.g. the user or window manager) could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don't write code that crashes if not.


unstick

public void unstick()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to unstick window, which means that it will appear on only one of the user's desktops. Note that you shouldn't assume the window is definitely unstuck afterward, because other entities (e.g. the user or window manager) could stick it again. But normally the window will end up unstuck. Just don't write code that crashes if not.


maximize

public void maximize()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to maximize window, so that it becomes full-screen.


unmaximize

public void unmaximize()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Asks to unmaximize window.


grabPointer

public GrabStatus grabPointer(boolean ownerEvents,
                              EventMask eventMask,
                              Window confineTo,
                              Cursor cursor,
                              int time)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Grabs the pointer (usually a mouse) so that all events are passed to this application until the pointer is ungrabbed with ungrabPointer, or the grab window becomes unviewable. This overrides any previous pointer grab by this client.

Pointer grabs are used for operations which need complete control over mouse events, even if the mouse leaves the application. For example in GTK+ it is used for Drag and Drop, for dragging the handle in the HPaned and VPaned widgets, and for resizing columns in CList widgets.

Note that if the event mask of an X window has selected both button press and button release events, then a button press event will cause an automatic pointer grab until the button is released. X does this automatically since most applications expect to receive button press and release events in pairs. It is equivalent to a pointer grab on the window with ownerEvents set to true.

Parameters:
ownerEvents - if false then all pointer events are reported with respect to window and are only reported if selected by event_mask. If true then pointer events for this application are reported as normal, but pointer events outside this application are reported with respect to window and only if selected by event_mask. In either mode, unreported events are discarded.
eventMask - specifies the event mask, which is used in accordance with ownerEvents. Note that only pointer events (i.e. button and motion events) may be selected.
confineTo - If non-null, the pointer will be confined to this window during the grab. If the pointer is outside confineTo, it will automatically be moved to the closest edge of confineTo and enter and leave events will be generated as necessary.
cursor - the cursor to display while the grab is active. If this is null then the normal cursors are used for window and its descendants, and the cursor for window is used for all other windows.
time - the timestamp of the event which led to this pointer grab. This usually comes from a EventButton, though CURRENT_TIME can be used if the time isn't known.

ungrabPointer

public void ungrabPointer(int time)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Ungrabs the pointer, if it is grabbed by this application.

Parameters:
time -

pointerIsGrabbed

public boolean pointerIsGrabbed()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Returns true if the pointer is currently grabbed by this application.


grabKeyboard

public GrabStatus grabKeyboard(boolean ownerEvents,
                               int time)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Grabs the keyboard so that all events are passed to this application until the keyboard is ungrabbed with ungrabKeyboard. This overrides any previous keyboard grab by this client.

Parameters:
ownerEvents - if false then all keyboard events are reported with respect to window. If true then keyboard events for this application are reported as normal, but keyboard events outside this application are reported with respect to window. Both key press and key release events are always reported, independant of the event mask set by the application.
time -

ungrabKeyboard

public void ungrabKeyboard(int time)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Ungrabs the keyboard, if it is grabbed by this application.

Parameters:
time -

getType

public static org.gnu.glib.Type getType()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.


getWindowFromHandle

public static Window getWindowFromHandle(org.gnu.glib.Handle hndl)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Only to be used internally by Java-Gnome.


getPointerWindow

public Window getPointerWindow()
Deprecated. 

getPointerLocation

public Point getPointerLocation()
Deprecated. 

getPointerModifierType

public ModifierType getPointerModifierType()
Deprecated.