All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.qd.GDevice
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTHandleRef
|
+----quicktime.qd.GDevice
- public final class GDevice
- extends QTHandleRef
- implements QuickTimeLib
Refer to GDevice in QuickDraw
-
fromSequenceGrabber(SequenceGrabber)
- Returns the current device of the sequence grabber.
-
get()
- Returns the current graphic device.
-
getBounds()
- Returns the global Bounds associated with this gDevice
-
getList()
- Returns the first graphic device in the device list.
-
getMain()
- Returns the graphic device for the main screen.
-
getMax(QDRect)
- Returns the graphic device with the greatest pixel depth.
-
getNext()
- Returns the graphic device that is the next device from this in the device list.
-
getPixMap()
- Returns the PixMap associated with this gDevice
-
init(int, int)
- Initialises the instance of the Graphics Device.
-
set()
- Sets this GDevice as the current device.
-
setAttribute(int, boolean)
- Set the attributes of a graphics device.
-
testAttribute(int)
- Determines whether the flag bit for an attribute has been set in the flags field
of the device.
fromSequenceGrabber
public static GDevice fromSequenceGrabber(SequenceGrabber sg) throws StdQTException
- Returns the current device of the sequence grabber.
QuickTime::SGGetGWorld
- Parameters:
- sg - the SequenceGrabber object
- Returns:
- The current device of the sequence grabber.
- See Also:
- getGWorldDevice
get
public static GDevice get()
- Returns the current graphic device.
QuickDraw::GetGDevice
- Returns:
- a graphics device
getList
public static GDevice getList()
- Returns the first graphic device in the device list.
QuickDraw::GetDeviceList
- Returns:
- a graphics device
getMain
public static GDevice getMain()
- Returns the graphic device for the main screen.
QuickDraw::GetMainDevice
- Returns:
- a graphics device
getMax
public static GDevice getMax(QDRect globalRect)
- Returns the graphic device with the greatest pixel depth.
QuickDraw::GetMaxDevice
- Parameters:
- globalRect - a rectangle in global coordinates that
intersects the devices you are searching
- Returns:
- a graphics device
init
public void init(int qdRefNum,
int mode)
- Initialises the instance of the Graphics Device. If the device has a driver
then the attributes will be set by this call, if not the attributes should be
set with setAttributes as this call will do nothing. You should never need to
call this method directly.
QuickDraw::InitGDevice
- Parameters:
- the - reference number of this GDevice
- mode - the device configuration mode
setAttribute
public void setAttribute(int attribute,
boolean value)
- Set the attributes of a graphics device.
QuickDraw::SetDeviceAttribute
- Parameters:
- attribute - use the constants
- value - if true attribute is turned on
set
public void set()
- Sets this GDevice as the current device.
QuickDraw::SetGDevice
getNext
public GDevice getNext()
- Returns the graphic device that is the next device from this in the device list.
QuickDraw::GetNextDevice
- Returns:
- a graphics device
testAttribute
public boolean testAttribute(int attribute)
- Determines whether the flag bit for an attribute has been set in the flags field
of the device.
QuickDraw::TestDeviceAttribute
- Parameters:
- attribute - the attribute to test for
- Returns:
- true if the attribute is set otherwise false.
getPixMap
public PixMap getPixMap()
- Returns the PixMap associated with this gDevice
- Returns:
- a PixMap for the GDevice
getBounds
public QDRect getBounds()
- Returns the global Bounds associated with this gDevice
- Returns:
- a QDRect
All Packages Class Hierarchy This Package Previous Next Index