?? types.html
字號:
<HTML><STYLE> <!-- A{textdecoration:none} --></STYLE><STYLE type="text/css"> A:link, A:visited, A:active { text-decoration: none; }</STYLE><HEAD> <TITLE>Types [DirectFB Reference Manual]</TITLE></HEAD><BODY bgcolor=#FFFFFF link=#0070FF vlink=#0070FF text=#404040><TABLE width=100% bgcolor=black border=0 cellspacing=1 cellpadding=3> <TR><TD width=30%> <A href="http://www.directfb.org"><IMG border=0 src="directfb.png"></A> </TD><TD align=right> <A href="index.html"><FONT size=+3 color=white>Reference Manual - 0.9.25</FONT></A> </TD></TR> <TR><TD colspan=2 align=center bgcolor=#303030> <BIG><FONT color=orange>DirectFB Types</FONT></BIG> </TD></TR></TABLE><p> <a name=DFBResult> <font color=#D07070 size=+1>DFBResult</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_OK</font> </TD><TD valign=top> <font color=#404040>No error occured. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_FAILURE</font> </TD><TD valign=top> <font color=#404040>A general or unknown error occured. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_INIT</font> </TD><TD valign=top> <font color=#404040>A general initialization error occured. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_BUG</font> </TD><TD valign=top> <font color=#404040>Internal bug or inconsistency has been detected. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_DEAD</font> </TD><TD valign=top> <font color=#404040>Interface has a zero reference counter (available in debug mode). </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_UNSUPPORTED</font> </TD><TD valign=top> <font color=#404040>The requested operation or an argument is (currently) not supported. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_UNIMPLEMENTED</font> </TD><TD valign=top> <font color=#404040>The requested operation is not implemented, yet. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_ACCESSDENIED</font> </TD><TD valign=top> <font color=#404040>Access to the resource is denied. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_INVARG</font> </TD><TD valign=top> <font color=#404040>An invalid argument has been specified. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOSYSTEMMEMORY</font> </TD><TD valign=top> <font color=#404040>There's not enough system memory. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOVIDEOMEMORY</font> </TD><TD valign=top> <font color=#404040>There's not enough video memory. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_LOCKED</font> </TD><TD valign=top> <font color=#404040>The resource is (already) locked. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_BUFFEREMPTY</font> </TD><TD valign=top> <font color=#404040>The buffer is empty. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_FILENOTFOUND</font> </TD><TD valign=top> <font color=#404040>The specified file has not been found. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_IO</font> </TD><TD valign=top> <font color=#404040>A general I/O error occured. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_BUSY</font> </TD><TD valign=top> <font color=#404040>The resource or device is busy. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOIMPL</font> </TD><TD valign=top> <font color=#404040>No implementation for this interface or content type has been found. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_MISSINGFONT</font> </TD><TD valign=top> <font color=#404040>No font has been set. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_TIMEOUT</font> </TD><TD valign=top> <font color=#404040>The operation timed out. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_MISSINGIMAGE</font> </TD><TD valign=top> <font color=#404040>No image has been set. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_THIZNULL</font> </TD><TD valign=top> <font color=#404040>'thiz' pointer is NULL. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_IDNOTFOUND</font> </TD><TD valign=top> <font color=#404040>No resource has been found by the specified id. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_INVAREA</font> </TD><TD valign=top> <font color=#404040>An invalid area has been specified or detected. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_DESTROYED</font> </TD><TD valign=top> <font color=#404040>The underlying object (e.g. a window or surface) has been destroyed. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_FUSION</font> </TD><TD valign=top> <font color=#404040>Internal fusion error detected, most likely related to IPC resources. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_BUFFERTOOLARGE</font> </TD><TD valign=top> <font color=#404040>Buffer is too large. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_INTERRUPTED</font> </TD><TD valign=top> <font color=#404040>The operation has been interrupted. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOCONTEXT</font> </TD><TD valign=top> <font color=#404040>No context available. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_TEMPUNAVAIL</font> </TD><TD valign=top> <font color=#404040>Temporarily unavailable. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_LIMITEXCEEDED</font> </TD><TD valign=top> <font color=#404040>Attempted to exceed limit, i.e. any kind of maximum size, count etc. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOSUCHMETHOD</font> </TD><TD valign=top> <font color=#404040>Requested method is not known to remote site. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOSUCHINSTANCE</font> </TD><TD valign=top> <font color=#404040>Requested instance is not known to remote site. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_ITEMNOTFOUND</font> </TD><TD valign=top> <font color=#404040>No such item found. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_VERSIONMISMATCH</font> </TD><TD valign=top> <font color=#404040>Some versions didn't match. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_NOSHAREDMEMORY</font> </TD><TD valign=top> <font color=#404040>There's not enough shared memory. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_EOF</font> </TD><TD valign=top> <font color=#404040>Reached end of file. </font> </TD></TR> </TABLE> Every interface method returns this result code.<br> Any other value to be returned adds an argument pointing to a location the value should be written to. <br></p><p> <a name=DFBBoolean> <font color=#D07070 size=+1>DFBBoolean</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_FALSE</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFB_TRUE</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> </TABLE> A boolean. <br></p><p> <a name=DFBPoint> <font color=#70D070 size=+1>DFBPoint</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>x;</B></FONT> </TD><TD valign=top> <font color=#404040>X coordinate of it </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>y;</B></FONT> </TD><TD valign=top> <font color=#404040>Y coordinate of it </font> </TD></TR> </TABLE> A point specified by x/y coordinates. <br></p><p> <a name=DFBSpan> <font color=#70D070 size=+1>DFBSpan</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>x;</B></FONT> </TD><TD valign=top> <font color=#404040>X coordinate </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>w;</B></FONT> </TD><TD valign=top> <font color=#404040>width of span </font> </TD></TR> </TABLE> A horizontal line specified by x and width. <br></p><p> <a name=DFBDimension> <font color=#70D070 size=+1>DFBDimension</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>w;</B></FONT> </TD><TD valign=top> <font color=#404040>width of it </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>h;</B></FONT> </TD><TD valign=top> <font color=#404040>height of it </font> </TD></TR> </TABLE> A dimension specified by width and height. <br></p><p> <a name=DFBRectangle> <font color=#70D070 size=+1>DFBRectangle</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>x;</B></FONT> </TD><TD valign=top> <font color=#404040>X coordinate of its top-left point </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>y;</B></FONT> </TD><TD valign=top> <font color=#404040>Y coordinate of its top-left point </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>w;</B></FONT> </TD><TD valign=top> <font color=#404040>width of it </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>h;</B></FONT> </TD><TD valign=top> <font color=#404040>height of it </font> </TD></TR> </TABLE> A rectangle specified by a point and a dimension. <br></p><p> <a name=DFBLocation> <font color=#70D070 size=+1>DFBLocation</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> float </TD><TD valign=top> <FONT color=black><B>x;</B></FONT> </TD><TD valign=top> <font color=#404040>normalized X coordinate </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> float </TD><TD valign=top> <FONT color=black><B>y;</B></FONT>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -