Reference Manual - 1.0.1
DirectFB Interfaces   IDirectFBDisplayLayer

No summary yet... 目前没有搞要

Methods of IDirectFBDisplayLayer
Information

相关信息

GetID Get the unique layer ID.
获取指定层的ID
GetDescription Get a description of this display layer, i.e. the capabilities.

获取指定层的描述体

GetSourceDescriptions Get a description of available sources.

获取默认的描述体

 
GetCurrentOutputField For an interlaced display, this returns the currently inactive field: 0 for the top field, and 1 for the bottom field.

获取当前交错层的活动区域

Interfaces

接口

GetSurface Get an interface to layer's surface.

获取当前层的表面的接口,只在独占模式下可用

GetScreen Get an interface to the screen to which the layer belongs.
取得属于层的屏幕的接口
Configuration

配置

SetCooperativeLevel Set cooperative level to get control over the layer or the windows within this layer.

设置合作级别以便能对指定层或层内窗口进行控制

GetConfiguration Get current layer configuration.

获取指定层的配置值

 
TestConfiguration Test layer configuration.

检验指定层的配置值

SetConfiguration Set layer configuration.

设置指定层的配置值

Layout

布局

SetScreenLocation Set location on screen as normalized values.

设置屏幕区域的大小和位置

SetScreenPosition Set location on screen in pixels.

设置屏幕位置的像素值

SetScreenRectangle Set location on screen in pixels.

设置屏幕区域的像素大小和像素位置

 
Misc Settings

杂项设置

 
SetOpacity Set global alpha factor for blending with layer(s) below.

设置底层各层混合的全局alpha变量

SetSourceRectangle Set the source rectangle.

设置当前层的默认矩形框大小和位置

SetFieldParity For an interlaced display, this sets the field parity.

当层与层交错时,设置当前层是置顶还是置底

 
SetClipRegions Set the clipping region(s).

设置可剪切区域

Color keys

关键

SetSrcColorKey Set the source color key.

设置默认关键色

SetDstColorKey Set the destination color key.

设置指定颜色键值

Z Order
Z 序
GetLevel Get the current display layer level.

获取当前层的级别

SetLevel Set the display layer level.

设置当前层的级别

 
Background handling

背景处理

SetBackgroundMode Set the erase behaviour for windowstack repaints.

设置重画窗口栈时的清除动作

SetBackgroundImage Set the background image for the imaged background mode.

设置背景图像模式下的背景图片

SetBackgroundColor Set the color for a solid colored background.

设置纯色背景下的颜色值

 
Color adjustment

颜色调节

GetColorAdjustment Get the layers color adjustment.

获取当前层的颜色索引

SetColorAdjustment Set the layers color adjustment.

设置当前层的颜色索引

Windows

窗口

CreateWindow Create a window within this layer given a description of the window that is to be created.

在当前层内按照描述体创建一个窗口

GetWindow Retrieve an interface to an existing window.

取得一个窗口的接口

Cursor handling

光标处理

 
EnableCursor Enable/disable the mouse cursor for this layer.

使能当前层的光标

GetCursorPosition Returns the x/y coordinates of the layer's mouse cursor.

获取当前层光标的坐标

WarpCursor Move cursor to specified position.

把光标移动到制定位置

SetCursorAcceleration Set cursor acceleration.

设置光标加速

SetCursorShape Set the cursor shape and the hotspot.

设置光标形状和热点

 
SetCursorOpacity Set the cursor opacity.

设置光标是否可见

Synchronization

同步

WaitForSync Wait for next vertical retrace.

等待下一个同步

Contexts

上下文

SwitchContext Switch the layer context.

切换当前层的上下文

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License