📄 gdevice.html
字号:
<PRE>public static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>fromSequenceGrabber</B>(<A HREF="../../quicktime/std/sg/SequenceGrabber.html">SequenceGrabber</A> sg) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current device of the sequence grabber. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imSeqGrabComp.b.htm#imSeqG211">QuickTime::SGGetGWorld</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sg</CODE> - the SequenceGrabber object<DT><B>Returns:</B><DD>The current device of the sequence grabber.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/sg/SequenceGrabber.html#getGWorldDevice()"><CODE>SequenceGrabber.getGWorldDevice()</CODE></A></DL></DD></DL><HR><A NAME="get()"><!-- --></A><H3>get</H3><PRE>public static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>get</B>()</PRE><DL><DD>Returns the current graphic device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.c.htm#pgfId=433">QuickDraw::GetGDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a graphics device</DL></DD></DL><HR><A NAME="getList()"><!-- --></A><H3>getList</H3><PRE>public static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>getList</B>()</PRE><DL><DD>Returns the first graphic device in the device list. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.c.htm#pgfId=449">QuickDraw::GetDeviceList</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a graphics device</DL></DD></DL><HR><A NAME="getMain()"><!-- --></A><H3>getMain</H3><PRE>public static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>getMain</B>()</PRE><DL><DD>Returns the graphic device for the main screen. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.c.htm#pgfId=460">QuickDraw::GetMainDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a graphics device</DL></DD></DL><HR><A NAME="getMax(quicktime.qd.QDRect)"><!-- --></A><H3>getMax</H3><PRE>public static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>getMax</B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> globalRect)</PRE><DL><DD>Returns the graphic device with the greatest pixel depth. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.c.htm#pgfId=511">QuickDraw::GetMaxDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>globalRect</CODE> - a rectangle in global coordinates that intersects the devices you are searching<DT><B>Returns:</B><DD>a graphics device</DL></DD></DL><HR><A NAME="init(int, int)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(int qdRefNum, int mode)</PRE><DL><DD>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. <B>You should never need to call this method directly.</b> <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.b.htm#pgfId=575">QuickDraw::InitGDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - reference number of this GDevice<DD><CODE>mode</CODE> - the device configuration mode</DL></DD></DL><HR><A NAME="setAttribute(int, boolean)"><!-- --></A><H3>setAttribute</H3><PRE>public void <B>setAttribute</B>(int attribute, boolean value)</PRE><DL><DD>Set the attributes of a graphics device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.b.htm#pgfId=596">QuickDraw::SetDeviceAttribute</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - use the constants<DD><CODE>value</CODE> - if true attribute is turned on</DL></DD></DL><HR><A NAME="set()"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>()</PRE><DL><DD>Sets this GDevice as the current device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.b.htm#pgfId=587">QuickDraw::SetGDevice</a> </b><BR><BR></DL></DD></DL><HR><A NAME="getNext()"><!-- --></A><H3>getNext</H3><PRE>public <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> <B>getNext</B>()</PRE><DL><DD>Returns the graphic device that is the next device from this in the device list. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.c.htm#pgfId=447">QuickDraw::GetNextDevice</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a graphics device</DL></DD></DL><HR><A NAME="testAttribute(int)"><!-- --></A><H3>testAttribute</H3><PRE>public boolean <B>testAttribute</B>(int attribute)</PRE><DL><DD>Determines whether the flag bit for an attribute has been set in the flags field of the device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imGraphDevices.d.htm#pgfId=605">QuickDraw::TestDeviceAttribute</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - the attribute to test for<DT><B>Returns:</B><DD>true if the attribute is set otherwise false.</DL></DD></DL><HR><A NAME="getPixMap()"><!-- --></A><H3>getPixMap</H3><PRE>public <A HREF="../../quicktime/qd/PixMap.html">PixMap</A> <B>getPixMap</B>()</PRE><DL><DD>Returns the PixMap associated with this gDevice<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a PixMap for the GDevice</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> <B>getBounds</B>()</PRE><DL><DD>Returns the global Bounds associated with this gDevice<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a QDRect</DL></DD></DL><HR><A NAME="hasScale(int, float)"><!-- --></A><H3>hasScale</H3><PRE>public float <B>hasScale</B>(int depth, float scale) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the closest possible scaling that a particular screen device can be set to in a given pixel depth</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>depth</CODE> - specifies the pixel depth of the screen device<DD><CODE>scale</CODE> - the desired scale value<DT><B>Returns:</B><DD>the closest scale available for the given depth</DL></DD></DL><HR><A NAME="getScale()"><!-- --></A><H3>getScale</H3><PRE>public float <B>getScale</B>() throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current scale of the screen graphics device</DL></DD><DD><DL><DT><B>Returns:</B><DD>the scale of the current device</DL></DD></DL><HR><A NAME="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public int <B>getFlags</B>() throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current scale of the screen graphics device</DL></DD><DD><DL><DT><B>Returns:</B><DD>the flags of the current device</DL></DD></DL><HR><A NAME="setScale(int, int)"><!-- --></A><H3>setScale</H3><PRE>public void <B>setScale</B>(int scale, int flags) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the current scale of the screen graphics device</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - the desired scale value<DD><CODE>the</CODE> - flags to be used</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GDevice.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../quicktime/qd/ColorTable.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/NativeGraphics.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="GDevice.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -