📄 types.html
字号:
<font color=#404040>32 axes maximum </font> </TD></TR> </TABLE> Axis identifier (index) for e.g. mouse or joystick. <br><br> The X, Y and Z axis are predefined. To access other axes, use DIAI_FIRST plus a zero based index, e.g. the 4th axis would be (DIAI_FIRST + 3). <br></p><p> <a name=DFBWindowDescriptionFlags> <font color=#D07070 size=+1>DFBWindowDescriptionFlags</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_CAPS</font> </TD><TD valign=top> <font color=#404040>caps field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_WIDTH</font> </TD><TD valign=top> <font color=#404040>width field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_HEIGHT</font> </TD><TD valign=top> <font color=#404040>height field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_PIXELFORMAT</font> </TD><TD valign=top> <font color=#404040>pixelformat field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_POSX</font> </TD><TD valign=top> <font color=#404040>posx field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_POSY</font> </TD><TD valign=top> <font color=#404040>posy field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWDESC_SURFACE_CAPS</font> </TD><TD valign=top> <font color=#404040>Create the window surface with special capabilities. </font> </TD></TR> </TABLE> Flags defining which fields of a DFBWindowDescription are valid. <br></p><p> <a name=DFBDataBufferDescriptionFlags> <font color=#D07070 size=+1>DFBDataBufferDescriptionFlags</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DBDESC_FILE</font> </TD><TD valign=top> <font color=#404040>Create a static buffer for the specified filename. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DBDESC_MEMORY</font> </TD><TD valign=top> <font color=#404040>Create a static buffer for the specified memory area. </font> </TD></TR> </TABLE> Flags defining which fields of a DFBDataBufferDescription are valid. <br></p><p> <a name=DFBWindowCapabilities> <font color=#D07070 size=+1>DFBWindowCapabilities</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_NONE</font> </TD><TD valign=top> <font color=#404040>None of these. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_ALPHACHANNEL</font> </TD><TD valign=top> <font color=#404040>The window has an alphachannel for pixel-per-pixel blending. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_DOUBLEBUFFER</font> </TD><TD valign=top> <font color=#404040>The window's surface is double buffered. This is very useful to avoid visibility of content that is still in preparation. Normally a window's content can get visible before an update if there is another reason causing a window stack repaint. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_INPUTONLY</font> </TD><TD valign=top> <font color=#404040>The window has no surface. You can not draw to it but it receives events </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_NODECORATION</font> </TD><TD valign=top> <font color=#404040>The window won't be decorated. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DWCAPS_ALL</font> </TD><TD valign=top> <font color=#404040>All valid flags. </font> </TD></TR> </TABLE> Capabilities a window can have. <br></p><p> <a name=DFBFontAttributes> <font color=#D07070 size=+1>DFBFontAttributes</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFFA_NONE</font> </TD><TD valign=top> <font color=#404040>none of these flags </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFFA_NOKERNING</font> </TD><TD valign=top> <font color=#404040>don't use kerning </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFFA_NOHINTING</font> </TD><TD valign=top> <font color=#404040>don't use hinting </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFFA_MONOCHROME</font> </TD><TD valign=top> <font color=#404040>don't use anti-aliasing </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFFA_NOCHARMAP</font> </TD><TD valign=top> <font color=#404040>no char map, glyph indices are specified directly </font> </TD></TR> </TABLE> Flags describing how to load a font. <br><br> These flags describe how a font is loaded and affect how the glyphs are drawn. There is no way to change this after the font has been loaded. If you need to render a font with different attributes, you have to create multiple FontProviders of the same font file. <br></p><p> <a name=DFBFontDescriptionFlags> <font color=#D07070 size=+1>DFBFontDescriptionFlags</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_ATTRIBUTES</font> </TD><TD valign=top> <font color=#404040>attributes field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_HEIGHT</font> </TD><TD valign=top> <font color=#404040>height is specified </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_WIDTH</font> </TD><TD valign=top> <font color=#404040>width is specified </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_INDEX</font> </TD><TD valign=top> <font color=#404040>index is specified </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_FIXEDADVANCE</font> </TD><TD valign=top> <font color=#404040>specify a fixed advance overriding any character advance of fixed or proportional fonts </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_FRACT_HEIGHT</font> </TD><TD valign=top> <font color=#404040>fractional height is set </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DFDESC_FRACT_WIDTH</font> </TD><TD valign=top> <font color=#404040>fractional width is set </font> </TD></TR> </TABLE> Flags defining which fields of a DFBFontDescription are valid. <br></p><p> <a name=DFBFontDescription> <font color=#70D070 size=+1>DFBFontDescription</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0> <TR><TD width=32> </TD><TD valign=top> <A href="types.html#DFBFontDescriptionFlags">DFBFontDescriptionFlags</A> </TD><TD valign=top> <FONT color=black><B>flags;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <A href="types.html#DFBFontAttributes">DFBFontAttributes</A> </TD><TD valign=top> <FONT color=black><B>attributes;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>height;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>width;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> unsigned int </TD><TD valign=top> <FONT color=black><B>index;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>fixed_advance;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>fract_height;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> int </TD><TD valign=top> <FONT color=black><B>fract_width;</B></FONT> </TD><TD valign=top> <font color=#404040></font> </TD></TR> </TABLE> Description of how to load glyphs from a font file. <br><br> The attributes control how the glyphs are rendered. Width and height can be used to specify the desired face size in pixels. If you are loading a non-scalable font, you shouldn't specify a font size. <br><br> Please note that the height value in the DFBFontDescription doesn't correspond to the height returned by <a href="IDirectFBFont_GetHeight.html"><a href="IDirectFBFont_GetHeight.html">IDirectFBFont::GetHeight()</a></a>. <br><br> The index field controls which face is loaded from a font file that provides a collection of faces. This is rarely needed. <br><br> Fractional sizes (fract_height and fract_width) are 26.6 fixed point integers and override the pixel sizes if both are specified. <br></p><p> <a name=DFBSurfacePixelFormat> <font color=#D07070 size=+1>DFBSurfacePixelFormat</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_UNKNOWN</font> </TD><TD valign=top> <font color=#404040>unknown or unspecified format </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_ARGB1555</font> </TD><TD valign=top> <font color=#404040>16 bit ARGB (2 byte, alpha 1@15, red 5@10, green 5@5, blue 5@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_RGB16</font> </TD><TD valign=top> <font color=#404040>16 bit RGB (2 byte, red 5@11, green 6@5, blue 5@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_RGB24</font> </TD><TD valign=top> <font color=#404040>24 bit RGB (3 byte, red 8@16, green 8@8, blue 8@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_RGB32</font> </TD><TD valign=top> <font color=#404040>24 bit RGB (4 byte, nothing@24, red 8@16, green 8@8, blue 8@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_ARGB</font> </TD><TD valign=top> <font color=#404040>32 bit ARGB (4 byte, alpha 8@24, red 8@16, green 8@8, blue 8@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_A8</font> </TD><TD valign=top> <font color=#404040>8 bit alpha (1 byte, alpha 8@0), e.g. anti-aliased glyphs </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_YUY2</font> </TD><TD valign=top> <font color=#404040>16 bit YUV (4 byte/ 2 pixel, macropixel contains CbYCrY [31:0]) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_RGB332</font> </TD><TD valign=top> <font color=#404040>8 bit RGB (1 byte, red 3@5, green 3@2, blue 2@0) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_UYVY</font> </TD><TD valign=top> <font color=#404040>16 bit YUV (4 byte/ 2 pixel, macropixel contains YCbYCr [31:0]) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_I420</font> </TD><TD valign=top> <font color=#404040>12 bit YUV (8 bit Y plane followed by 8 bit quarter size U/V planes) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_YV12</font> </TD><TD valign=top> <font color=#404040>12 bit YUV (8 bit Y plane followed by 8 bit quarter size V/U planes) </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSPF_LUT8</font> </TD><TD valign=top> <font color=#404040>8 bit LUT (8 bit color and alpha lookup from palette) </font> </TD></TR> <TR><TD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -