|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gdk.Screen
public class Screen
Screen objects are the GDK representation of a physical screen. It is used throughout GDK and GTK+ to specify which screen the top level windows are to be displayed on. It is also used to query the screen specification and default settings such as the default colormap, the screen width, etc.
Note that a Screen may consist of multiple monitors which are merged to form a large screen area.
Constructor Summary | |
---|---|
Screen()
Creates and object representing the default Screen for the default Display. |
|
Screen(org.gnu.glib.Handle handle)
|
Method Summary | |
---|---|
void |
broadcastClientMessage(Event evt)
On X11, sends an X ClientMessage event to all toplevel windows on screen. |
Colormap |
getDefaultColormap()
Returns the default Colormap for this screen. |
Display |
getDisplay()
Returns the display that belongs to this Screen. |
int |
getHeight()
Gets the height of the Screen in pixels. |
int |
getHeightMM()
Gets the height of the Screen in milimeters. |
int |
getMonitorAtPoint(int x,
int y)
Returns the monitor number in which the point (x,y) is located. |
int |
getMonitorAtWindow(Window win)
Returns the number of the monitor in which the largest area of the bounding rectangle of the Window resides. |
Rectangle |
getMonitorGeometry(int monitorNum)
Returns a Rectangle representing the size and position of the individual monitor within the entire Screen area. |
int |
getNumber()
Gets the index of this Screen among the Screens in the Display to which it belongs. |
int |
getNumMonitors()
Returns the number of monitors which Screen consists of. |
Colormap |
getRGBAColormap()
|
Visual |
getRGBAVisual()
|
Colormap |
getRGBColormap()
Gets the preferred colormap for rendering image data on screen. |
Visual |
getRGBVisual()
Gets a "preferred visual" chosen by RGB for rendering image data on screen. |
Window |
getRootWindow()
Returns the root window of the Screen. |
static Screen |
getScreenFromHandle(org.gnu.glib.Handle hndl)
Internal static factory method to be used only internally by Java-Gnome. |
Colormap |
getSystemColormap()
Returns the system's default Colormap for Screens |
Visual |
getSystemVisual()
Returns the system's default Visual for Screens. |
Window[] |
getToplevelWindows()
Returns a list of all known toplevel Windows on the Screen. |
Type |
getType()
|
int |
getWidth()
Gets the width of the Screen in pixels. |
int |
getWidthMM()
Gets the width of the Screen in milimeters. |
Visual[] |
listVisuals()
List the Visuals for this Screen. |
java.lang.String |
makeDisplayName()
Returns the name to pass to the Display constructor to create a Display with this Screen as the default Screen. |
void |
setDefaultColormap(Colormap colormap)
Sets the default Colormap for this screen. |
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 |
---|
public Screen()
public Screen(org.gnu.glib.Handle handle)
Method Detail |
---|
public Colormap getDefaultColormap()
public void setDefaultColormap(Colormap colormap)
colormap
- public Colormap getSystemColormap()
public Visual getSystemVisual()
public Colormap getRGBColormap()
public Colormap getRGBAColormap()
public Visual getRGBVisual()
public Visual getRGBAVisual()
public Window getRootWindow()
public Display getDisplay()
public int getNumber()
public int getHeight()
public int getWidth()
public int getHeightMM()
public int getWidthMM()
public Visual[] listVisuals()
public Window[] getToplevelWindows()
public java.lang.String makeDisplayName()
public int getNumMonitors()
public Rectangle getMonitorGeometry(int monitorNum)
monitorNum
- public int getMonitorAtPoint(int x, int y)
x
- y
- public int getMonitorAtWindow(Window win)
win
- public void broadcastClientMessage(Event evt)
evt
- public Type getType()
public static Screen getScreenFromHandle(org.gnu.glib.Handle hndl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |