Reference Manual - 1.0.1
参考手册 -1.0.1
Index Page
首面

Interfaces
接口

IDirectFB Main interface of DirectFB, created by DirectFBCreate().
DirectFB的主窗口是由DirectFBCreate()创建.
IDirectFBScreen Interface to different display outputs, encoders, connector settings, power management and synchronization.
接口功能有不同显示输出,编码,连接设置,电源管理,同步。
IDirectFBDisplayLayer Layer interface for configuration, window stack usage or direct surface access, with shared/exclusive context.
配置层接口,窗口堆栈或直接共享/独占访问平面内容,
IDirectFBSurface Interface to a surface object, being a graphics context for rendering and state control, buffer operations, palette access and sub area translate'n'clip logic.
平面接口对象,图片内容绘制与状态控制,缓冲操作,调色板访问与子域剪切逻辑
IDirectFBPalette Interface for read/write access to the colors of a palette object and for cloning it.
调色板对象接口读/写,克隆色彩.
IDirectFBWindow Interface to a window object, controlling appearance and focus, positioning and stacking, event buffers and surface access.
窗口对象的接口 ,控制外表与焦点,位置与堆栈,事件缓冲与平面访问
IDirectFBInputDevice Input device interface for keymap access, event buffers and state queries
按键映射号访问的接口,事件缓冲与状态要求
IDirectFBEventBuffer Interface to a local event buffer to send/receive events, wait for events, abort waiting or reset buffer.
本地事件缓冲接口,发送/接收事件,等待事件,中止等待或重置缓冲
IDirectFBFont Font interface for getting metrics, measuring strings or single characters, query/choose encodings.
用于测量字体的接口,计量字符串或单个字符,查询/选择编码
IDirectFBImageProvider Interface to an image provider, retrieving information about the image and rendering it to a surface.
图片装备容器的接口,接收有关图片的信息与绘制到平面中
IDirectFBVideoProvider Interface to a video provider for playback with advanced control and basic stream information./
视频装备容器接口,提供高级播放控制与基本法流信息
IDirectFBDataBuffer Data buffer interface, providing unified access to different kinds of data storage and live feed.
数据缓冲接口
IDirectFBGL OpenGL context of a surface.
平面OpenGL的内容

Types
类型

DFBAccelerationMask Mask of accelerated functions.
加速功能的标识
DFBBoolean A boolean.
布尔类型
DFBColor A color defined by channels with 8bit each.
色定义每一通道有8位
DFBColorAdjustment Color Adjustment used to adjust video colors.
色调整,经常调整视频色
All fields are in the range 0x0 to 0xFFFF with 0x8000 as the default value (no adjustment).
所有域是在 0x0 to 0xFFFF 范围内, 0x8000是默认值(非调整)
DFBColorAdjustmentFlags Flags defining which fields of a DFBColorAdjustment are valid.
标识定义哪一个DFBColorAdjustment域有效
DFBCooperativeLevel

The cooperative level controls the super interface's behaviour in functions like SetVideoMode or CreateSurface for the primary.
协作层控制超级接口在功能上的行为,像 主平面的SetVideoMode或CreateSurface

DFBDataBufferDescription Description of a data buffer that is to be created.
被创建数据缓冲的描述
DFBDataBufferDescriptionFlags Flags defining which fields of a DFBDataBufferDescription are valid.
标识定义 DFBDataBufferDescription哪一个域有效
DFBDimension A dimension specified by width and height.
一个指定宽与高的面积
DFBDisplayLayerBackgroundMode Background mode defining how to erase/initialize the area for a windowstack repaint
背景模式定义 窗口堆栈如何擦除或初始重绘区域
DFBDisplayLayerBufferMode Layer Buffer Mode.
层缓冲模式
DFBDisplayLayerCallback Called for each existing display layer. "layer_id" can be used to get an interface to the layer.
每一个存在的显示层调用, "layer_id"可被用于取得一个层的接口
DFBDisplayLayerCapabilities Capabilities of a display layer.
显示层的能力
DFBDisplayLayerConfig

Layer configuration
层配置

DFBDisplayLayerConfigFlags

Layer configuration flags
层配置标识

DFBDisplayLayerCooperativeLevel Cooperative level handling the access permissions.
协助层控制访问许可
DFBDisplayLayerDescription Description of the display layer capabilities.
显示层能力的描述
DFBDisplayLayerOptions Used to enable some capabilities like flicker filtering or colorkeying.
用于允许某些功能,像防闪烁或关键在于色
DFBDisplayLayerSourceDescription Description of a display layer source.
源显示的描述
DFBDisplayLayerTypeFlags Type of display layer for basic classification. Values may be or'ed together. 显示层类型的基本法分类
DFBEnumerationResult Return value of callback function of enumerations.
枚举回调函数的返回值
DFBEvent General container for a DirectFB Event.
DirectFB事件的一般容器
DFBEventBufferStats Statistics about event buffer queue.
统计事件的队列
DFBEventClass Event class.
事件类
DFBFontAttributes Flags describing how to load a font.
描述标识如何加载字体
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.
这些标识描述如何加载字体以及如何绘制文字。如果字体已加载后就再没有办法改变。如果想以不同的属性绘制一个字体,需要为这个字体创建多个FontProviders。
DFBFontDescription Description of how to load glyphs from a font file.
描述如何加载一个字体文件的文字
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.
属性控制文字如何绘制,宽度与高度可以用像素大小指定字体期望的外观。如果你加载了非拉伸字体,不应该指定其的大小。
Please note that the height value in the DFBFontDescription doesn't correspond to the height returned by IDirectFBFont::GetHeight().
请注意字体的高度与 IDirectFBFont::GetHeight().返回值的高度不太相符。
The index field controls which face is loaded from a font file that provides a collection of faces. This is rarely needed.
用索引域控制从字体文件提供的外观集中哪一个加载外观。这个不太必要。

Fractional sizes (fract_height and fract_width) are 26.6 fixed point integers and override the pixel sizes if both are specified.
DFBFontDescriptionFlags Flags defining which fields of a DFBFontDescription are valid.
标识定义DFBFontDescription 哪一个域有效
DFBGLAttributes Attributes of an OpenGL context.
OpenGL内容的属性
DFBGetDataCallback Called for each block of continous data requested, e.g. by a Video Provider. Write as many data as you can but not more than specified by length. Return the number of bytes written or 'EOF' if no data is available anymore.
被需求连续数据 块 调用,例如:视频装备容器. 可以在不超过的长度内写入大量数据。返回写入的字节数或 'EOF'如果没有效的数据
DFBGraphicsDeviceDescription Description of the graphics device capabilities.
图形设备性能的描述
DFBGraphicsDriverInfo 图形设备相关信息
DFBImageCapabilities Capabilities of an image.
图像的性能
DFBImageDescription Information about an image including capabilities and values belonging to available capabilities.
图像性能有关的信息与有效的性能
DFBInputDeviceAxisIdentifier Axis identifier (index) for e.g. mouse or joystick.
鼠标或游戏杆的轴心定义
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).
X, Y , Z轴已经预定,访问其他轴用DIAI_FIRST乘以0为基本定位,例如4个轴将是 (DIAI_FIRST + 3)
DFBInputDeviceButtonIdentifier Identifier (index) for e.g. mouse or joystick buttons.
定位 鼠标或游戏杆
DFBInputDeviceButtonMask Flags specifying which buttons are currently down.
标识当前按下的具体按钮
DFBInputDeviceButtonState Specifies whether a button is currently pressed.
指定当前哪一个按钮被按下
DFBInputDeviceCallback Called for each existing input device. "device_id" can be used to get an interface to the device.
每一个存在的输入设备调用, "device_id" 可用于取得设备的接口。
DFBInputDeviceCapabilities Basic input device features.
基本法输入功能
DFBInputDeviceDescription Description of the input device capabilities.
输入设备能力的描述
DFBInputDeviceKeyIdentifier DirectFB key identifiers (for basic mapping)
DirectFB键的标记(基本法映射)
DFBInputDeviceKeyState Specifies whether a key is currently down.
指定是否当前有键 按下
DFBInputDeviceKeySymbol DirectFB key symbols (for advanced mapping)
DirectFB键的符号(高级映射用)
DFBInputDeviceKeyType DirectFB key types (for advanced mapping)
DirectFB键类型(高级映射)
DFBInputDeviceKeymapEntry One entry in the keymap of an input device.
一个输入设备 键映射的入口
DFBInputDeviceKeymapSymbolIndex Groups and levels as an index to the symbol array.
组数与层数当做一个字符数组的索引
DFBInputDeviceLockState Flags specifying the key locks that are currently active.
标识指定当前活动的 关键色
DFBInputDeviceModifierKeyIdentifier DirectFB modifier key identifiers (for advanced mapping)
DirectFB 修饰键定义(作高级映射)
DFBInputDeviceModifierMask Flags specifying which modifiers are currently pressed.
标识定义当前哪一个 修饰键被按下
DFBInputDeviceTypeFlags Type of input device for basic classification. Values may be or'ed together.
输入设备类型的基本分类。
DFBInputEvent An input event, item of an input buffer.
一个输入事件, 输入缓冲的条目
DFBInputEventFlags Flags defining which additional (optional) event fields are valid.
标识定义附加(可选)事件域有效
DFBInputEventType The type of an input event.
输入事件的类型
DFBInsets Insets specify a distance from each edge of a rectangle.
插入矩形边框的具体距离
Positive values always mean 'outside'.
正值代表外框
DFBLocation A rectangle specified by normalized coordinates.
矩形的常量坐标
E.g. using 0.0, 0.0, 1.0, 1.0 would specify the whole screen.
例如用 0.0, 0.0, 1.0, 1.0可以指定整个屏幕
DFBPaletteCapabilities The palette capabilities.
调色板的性能
DFBPaletteDescription Description of the palette that is to be created.
创建调色板的描述
DFBPaletteDescriptionFlags Flags defining which fields of a DFBPaletteDescription are valid.
标识定义DFBPaletteDescription哪一个域有效
DFBPoint A point specified by x/y coordinates.
指定一个坐标的X/Y点
DFBRectangle A rectangle specified by a point and a dimension.
指定一个矩形的点与面积
DFBRegion A region specified by two points.
The defined region includes both endpoints.
DFBResult Every interface method returns this result code.
Any other value to be returned adds an argument pointing to a location the value should be written to.
DFBScreenCallback Called for each existing screen. "screen_id" can be used to get an interface to the screen.
被每一个存在的屏幕调用, "screen_id"可以取得一个屏幕的接口
DFBScreenCapabilities Capabilities of a screen.
屏幕的能力
DFBScreenDescription Description of the display encoder capabilities
显示编码器能力的描述 .
DFBScreenEncoderCapabilities Capabilities of a display encoder.
显示编码器的能力
DFBScreenEncoderConfig Configuration of a display encoder.
显示编码器的配置
DFBScreenEncoderConfigFlags Flags for display encoder configuration.
显示编码器的配置标识
DFBScreenEncoderDescription Description of a display encoder.
显示编码器的模式
DFBScreenEncoderScanMode Scan modes.
扫描模式
DFBScreenEncoderTVStandards TV standards.
TV标准
DFBScreenEncoderTestPicture Test picture mode.
测试图片模式
DFBScreenEncoderType Type of display encoder.
显示编码器类型
DFBScreenMixerCapabilities

Capabilities of a mixer.
混音器的能力

DFBScreenMixerConfig Configuration of a mixer.
混音器的配置
DFBScreenMixerConfigFlags Flags for mixer configuration.
混音器的配置标识
DFBScreenMixerDescription Description of a mixer.
混音器的描述
DFBScreenMixerTree (Sub) tree selection.
(子)树选择
DFBScreenOutputCapabilities Capabilities of an output.
输出的能力
DFBScreenOutputConfig Configuration of an output.
输出的配置
DFBScreenOutputConfigFlags Flags for screen output configuration.
输出屏幕配置的标识
DFBScreenOutputConnectors Type of output connector.
输出连接器的类型
DFBScreenOutputDescription Description of a screen output.
输出屏幕的描述
DFBScreenOutputSignals Type of output signal.
输出信号的类型
DFBScreenOutputSlowBlankingSignals Type of slow blanking signalling.
DFBScreenPowerMode Screen Power Mode.
屏幕电源模式
DFBSpan A horizontal line specified by x and width.
DFBStreamCapabilities Capabilities of an audio/video stream.
音频/视频流的能力
DFBStreamDescription Informations about an audio/video stream.
有关音频/视频流的信息
DFBSurfaceBlendFunction Blend functions to use for source and destination blending
作为源与目的混合功能
DFBSurfaceBlittingFlags Flags controlling blitting commands.
位块传送控制命令的标识
DFBSurfaceCapabilities The surface capabilities.
平面的能力
DFBSurfaceDescription Description of the surface that is to be created.
创建平面的描述
DFBSurfaceDescriptionFlags Flags defining which fields of a DFBSurfaceDescription are valid.
标识定义DFBSurfaceDescription的哪一个域有效
DFBSurfaceDrawingFlags Flags controlling drawing commands.
绘画控制命令的标识
DFBSurfaceFlipFlags Flipping flags controlling the behaviour of IDirectFBSurface::Flip().
切换标识控制IDirectFBSurface::Flip()行为
DFBSurfaceLockFlags Flags defining the type of data access. These are important for surface swapping management.
标识定义数据访问类型。在平面的交换管理时很重要
DFBSurfacePixelFormat Pixel format of a surface.
平面的像素格式
DFBSurfacePorterDuffRule Available Porter/Duff rules.
有效 Porter/Duff规则
DFBSurfaceTextFlags Flags controlling the text layout.
文本排版控制标识
DFBTextEncodingCallback Called for each provided text encoding.
为每一个文本编码装备容器调用
DFBTriangle A triangle specified by three points.
为三角形指定三个点
DFBTriangleFormation Way of building triangles from the list of vertices.
DFBUniversalEvent Universal event for custom usage with variable size.
DFBUserEvent Event for usage by the user of this library.
DFBVertex Transformed vertex of a textured triangle.
DFBVideoModeCallback Called for each supported video mode.
每一个支持视频模式调用
DFBVideoProviderCapabilities Information about an IDirectFBVideoProvider.
有关IDirectFBVideoProvider的信息
DFBVideoProviderPlaybackFlags Flags controlling playback mode of a IDirectFBVideoProvider.
IDirectFBVideoProvider的播放控制标识
DFBVideoProviderStatus Information about the status of an IDirectFBVideoProvider.
IDirectFBVideoProvider的状态信息
DFBWindowCapabilities Capabilities a window can have.
窗口拥有的能力
DFBWindowDescription Description of the window that is to be created.
创始窗口的描述
DFBWindowDescriptionFlags Flags defining which fields of a DFBWindowDescription are valid.
DFBWindowEvent

Event from the windowing system.
窗口系统的事件

DFBWindowEventType Window Event Types - can also be used as flags for event filters.
窗口事件类型-同样可以用于事件过滤器的标识
DFBWindowOptions Flags controlling the appearance and behaviour of the window.
控制窗口显示行为的标识
DFBWindowStackingClass The stacking class restricts the stacking order of windows.
 堆栈类限制窗口的堆栈类型
DIRenderCallbackResult

Definitions
定义

DFB_COLOR_EQUAL (x,y) Macro to compare two colors.
比较两个色的宏
DFB_DISPLAYLAYER_IDS_ADD (ids,id) Adds the id to the bitmask of layer ids.
增加ID到层的ID位标识
DFB_DISPLAYLAYER_IDS_EMPTY (ids) Empties (clears) the bitmask of layer ids.
清空层的ID位标识
DFB_DISPLAYLAYER_IDS_HAVE (ids,id) Checks if the bitmask of layer ids contains the id. 检查是否层的ID位标识包含这个
DFB_DISPLAYLAYER_IDS_MAX Maximum number of layer ids.
最大层ID数
DFB_DISPLAYLAYER_IDS_REMOVE (ids,id) Removes the id from the bitmask of layer ids.
从层的ID位标识中删除ID
DFB_LOCATION_EQUAL (a,b) Macro to compare two locations.
比较两个位置的宏
DFB_RECTANGLE_EQUAL (a,b) Macro to compare two rectangles.
比较两个矩形的宏
DFB_REGION_EQUAL (a,b)

Macro to compare two regions.
比较两个区域的宏

DIRECTFBGL_INTERFACE_VERSION

The DirectFBGL interface version.
DirectFBGL接口版

DTEID_UTF8

Predefined text encoding IDs.
文本编码的预定义

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License
工作许可在:非商业性使用-相同方式共享3.0