Unit Framebuffer
Return to Unit Reference
Description
Ultibo Framebuffer interface unit
To be documented
Constants
FRAMEBUFFER_*
FRAMEBUFFER_NAME_PREFIX = 'Framebuffer';
|
Name prefix for Framebuffer Devices |
FRAMEBUFFER_TYPE_*
FRAMEBUFFER_TYPE_NONE = 0;
|
|
FRAMEBUFFER_TYPE_HARDWARE = 1;
|
|
FRAMEBUFFER_TYPE_VIRTUAL = 2;
|
FRAMEBUFFER_STATE_*
FRAMEBUFFER_STATE_DISABLED = 0;
|
|
FRAMEBUFFER_STATE_ENABLED = 1;
|
FRAMEBUFFER_FLAG_*
FRAMEBUFFER_FLAG_NONE = $00000000;
|
|
FRAMEBUFFER_FLAG_DMA = $00000001;
|
If set the framebuffer supports DMA for read/write operations |
FRAMEBUFFER_FLAG_MARK = $00000002;
|
If set the framebuffer requires mark after write operations |
FRAMEBUFFER_FLAG_COMMIT = $00000004;
|
If set the framebuffer requires commit after write operations |
FRAMEBUFFER_FLAG_BLANK = $00000008;
|
If set the framebuffer supports blanking the screen |
FRAMEBUFFER_FLAG_CACHED = $00000010;
|
If set framebuffer is in cached memory and cache cleaning should be used |
FRAMEBUFFER_FLAG_SWAP = $00000020;
|
If set framebuffer requires byte order of colors to be reversed (BGR <-> RGB) |
FRAMEBUFFER_FLAG_BACKLIGHT = $00000040;
|
If set the framebuffer supports setting the backlight brightness |
FRAMEBUFFER_FLAG_VIRTUAL = $00000080;
|
If set the framebuffer supports virtual width and height |
FRAMEBUFFER_FLAG_OFFSETX = $00000100;
|
If set the framebuffer supports virtual offset X (Horizontal Pan/Flip etc) |
FRAMEBUFFER_FLAG_OFFSETY = $00000200;
|
If set the framebuffer supports virtual offset Y (Vertical Pan/Flip etc) |
FRAMEBUFFER_FLAG_SYNC = $00000400;
|
If set the framebuffer supports waiting for vertical sync |
FRAMEBUFFER_TRANSFER_*
FRAMEBUFFER_TRANSFER_NONE = $00000000;
|
|
FRAMEBUFFER_TRANSFER_DMA = $00000001;
|
Use DMA for transfer operations (Note: Buffers must be DMA compatible) |
Type definitions
Framebuffer palette
PFramebufferPalette = ^TFramebufferPalette;
TFramebufferPalette = record
Start:LongWord;
|
The number of the first valid entry in the palette |
Count:LongWord;
|
The total number of entries in the palette |
Entries:array[0..255] of LongWord;
|
The palette entries in COLOR_FORMAT_DEFAULT format |
Framebuffer properties
PFramebufferProperties = ^TFramebufferProperties;
TFramebufferProperties = record
Flags:LongWord;
|
Framebuffer device flags (eg FRAMEBUFFER_FLAG_COMMIT) (Ignored for Allocate / SetProperties) |
Address:LongWord;
|
Framebuffer address (Ignored for Allocate / SetProperties) |
Size:LongWord;
|
Framebuffer size (Bytes) (Ignored for Allocate / SetProperties) |
Pitch:LongWord;
|
Framebuffer pitch (Bytes per Line) (Ignored for Allocate / SetProperties) |
Depth:LongWord;
|
Framebuffer depth (Bits per Pixel)(8/16/24/32) |
Order:LongWord;
|
Framebuffer pixel order (BGR/RGB) |
Mode:LongWord;
|
Framebuffer alpha mode (Enabled/Reversed/Ignored) |
Format:LongWord;
|
Framebuffer color format (eg COLOR_FORMAT_ARGB32) (Ignored for Allocate / SetProperties) |
PhysicalWidth:LongWord;
|
Framebuffer Physical Width (Pixels) |
PhysicalHeight:LongWord;
|
Framebuffer Physical Height (Pixels) |
VirtualWidth:LongWord;
|
Framebuffer Virtual Width (Pixels) |
VirtualHeight:LongWord;
|
Framebuffer Virtual Height (Pixels) |
OffsetX:LongWord;
|
Framebuffer Virtual Offset X (Pixels) |
OffsetY:LongWord;
|
Framebuffer Virtual Offset Y (Pixels) |
OverscanTop:LongWord;
|
Framebuffer Overscan Top (Pixels) |
OverscanBottom:LongWord;
|
Framebuffer Overscan Bottom (Pixels) |
OverscanLeft:LongWord;
|
Framebuffer Overscan Left (Pixels) |
OverscanRight:LongWord;
|
Framebuffer Overscan Right (Pixels) |
Rotation:LongWord;
|
Framebuffer Rotation (eg FRAMEBUFFER_ROTATION_180) |
Framebuffer enumeration callback
TFramebufferEnumerate = function(Framebuffer:PFramebufferDevice; Data:Pointer):LongWord;
|
Framebuffer notification callback
TFramebufferNotification = function(Device:PDevice; Data:Pointer; Notification:LongWord):LongWord;
|
Framebuffer device allocate
TFramebufferDeviceAllocate = function(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
|
Framebuffer device release
TFramebufferDeviceRelease = function(Framebuffer:PFramebufferDevice):LongWord;
|
Framebuffer device blank
TFramebufferDeviceBlank = function(Framebuffer:PFramebufferDevice; Blank:Boolean):LongWord;
|
Framebuffer device read
TFramebufferDeviceRead = function(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Len,Flags:LongWord):LongWord;
|
Framebuffer device write
TFramebufferDeviceWrite = function(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Len,Flags:LongWord):LongWord;
|
Framebuffer device mark
TFramebufferDeviceMark = function(Framebuffer:PFramebufferDevice; X,Y,Width,Height,Flags:LongWord):LongWord;
|
Framebuffer device commit
TFramebufferDeviceCommit = function(Framebuffer:PFramebufferDevice; Address,Size,Flags:LongWord):LongWord;
|
Framebuffer device get rect
TFramebufferDeviceGetRect = function(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Skip,Flags:LongWord):LongWord;
|
Framebuffer device put rect
TFramebufferDevicePutRect = function(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Skip,Flags:LongWord):LongWord;
|
Framebuffer device copy rect
TFramebufferDeviceCopyRect = function(Framebuffer:PFramebufferDevice; X1,Y1,X2,Y2,Width,Height,Flags:LongWord):LongWord;
|
Framebuffer device fill rect
TFramebufferDeviceFillRect = function(Framebuffer:PFramebufferDevice; X,Y,Width,Height,Color,Flags:LongWord):LongWord;
|
Framebuffer device get line
TFramebufferDeviceGetLine = function(Framebuffer:PFramebufferDevice; Y:LongWord):Pointer;
|
Framebuffer device get point
TFramebufferDeviceGetPoint = function(Framebuffer:PFramebufferDevice; X,Y:LongWord):Pointer;
|
Framebuffer device wait sync
TFramebufferDeviceWaitSync = function(Framebuffer:PFramebufferDevice):LongWord;
|
Framebuffer device get offset
TFramebufferDeviceGetOffset = function(Framebuffer:PFramebufferDevice; var X,Y:LongWord):LongWord;
|
Framebuffer device set offset
TFramebufferDeviceSetOffset = function(Framebuffer:PFramebufferDevice; X,Y:LongWord;Pan:Boolean):LongWord;
|
Framebuffer device get palette
TFramebufferDeviceGetPalette = function(Framebuffer:PFramebufferDevice; Palette:PFramebufferPalette):LongWord;
|
Framebuffer device set palette
TFramebufferDeviceSetPalette = function(Framebuffer:PFramebufferDevice; Palette:PFramebufferPalette):LongWord;
|
Framebuffer device set backlight
TFramebufferDeviceSetBacklight = function(Framebuffer:PFramebufferDevice; Brightness:LongWord):LongWord;
|
Framebuffer device get properties
TFramebufferDeviceGetProperties = function(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
|
Framebuffer device set properties
TFramebufferDeviceSetProperties = function(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
|
Framebuffer device
PFramebufferDevice = ^TFramebufferDevice;
TFramebufferDevice = record
Device Properties | |
Device:TDevice;
|
The Device entry for this Framebuffer device |
Framebuffer Properties | |
FramebufferId:LongWord;
|
Unique Id of this Framebuffer device in the Framebuffer device table |
FramebufferState:LongWord;
|
Framebuffer device state (eg FRAMEBUFFER_STATE_ENABLED) |
DeviceAllocate:TFramebufferDeviceAllocate;
|
A device specific DeviceAllocate method implementing a standard framebuffer device interface (Mandatory) |
DeviceRelease:TFramebufferDeviceRelease;
|
A device specific DeviceRelease method implementing a standard framebuffer device interface (Mandatory) |
DeviceBlank:TFramebufferDeviceBlank;
|
A device specific DeviceBlank method implementing a standard framebuffer device interface (Optional) |
DeviceRead:TFramebufferDeviceRead;
|
A device specific DeviceRead method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceWrite:TFramebufferDeviceWrite;
|
A device specific DeviceWrite method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceMark:TFramebufferDeviceMark;
|
A device specific DeviceMark method implementing a standard framebuffer device interface (Optional) |
DeviceCommit:TFramebufferDeviceCommit;
|
A device specific DeviceCommit method implementing a standard framebuffer device interface (Optional) |
DeviceGetRect:TFramebufferDeviceGetRect;
|
A device specific DeviceGetRect method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DevicePutRect:TFramebufferDevicePutRect;
|
A device specific DevicePutRect method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceCopyRect:TFramebufferDeviceCopyRect;
|
A device specific DeviceCopyRect method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceFillRect:TFramebufferDeviceFillRect;
|
A device specific DeviceFillRect method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceGetLine:TFramebufferDeviceGetLine;
|
A device specific DeviceGetLine method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceGetPoint:TFramebufferDeviceGetPoint;
|
A device specific DeviceGetPoint method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceWaitSync:TFramebufferDeviceWaitSync;
|
A device specific DeviceWaitSync method implementing a standard framebuffer device interface (Optional) |
DeviceGetOffset:TFramebufferDeviceGetOffset;
|
A device specific DeviceGetOffset method implementing a standard framebuffer device interface (Optional) |
DeviceSetOffset:TFramebufferDeviceSetOffset;
|
A device specific DeviceSetOffset method implementing a standard framebuffer device interface (Optional) |
DeviceGetPalette:TFramebufferDeviceGetPalette;
|
A device specific DeviceGetPalette method implementing a standard framebuffer device interface (Optional) |
DeviceSetPalette:TFramebufferDeviceSetPalette;
|
A device specific DeviceSetPalette method implementing a standard framebuffer device interface (Optional) |
DeviceSetBacklight:TFramebufferDeviceSetBacklight;
|
A device specific DeviceSetBacklight method implementing a standard framebuffer device interface (Optional) |
DeviceGetProperties:TFramebufferDeviceGetProperties;
|
A device specific DeviceGetProperties method implementing a standard framebuffer device interface (Or nil if the default method is suitable) |
DeviceSetProperties:TFramebufferDeviceSetProperties;
|
A device specific DeviceSetProperties method implementing a standard framebuffer device interface (Mandatory) |
Statistics Properties | |
AllocateCount:LongWord;
|
|
ReleaseCount:LongWord;
|
|
ReadCount:LongWord;
|
|
WriteCount:LongWord;
|
|
GetCount:LongWord;
|
|
PutCount:LongWord;
|
|
CopyCount:LongWord;
|
|
FillCount:LongWord;
|
|
Driver Properties | |
Lock:TMutexHandle;
|
Device lock |
Address:LongWord;
|
Framebuffer address |
Size:LongWord;
|
Framebuffer size (Bytes) |
Pitch:LongWord;
|
Framebuffer pitch (Bytes per Line) |
Depth:LongWord;
|
Framebuffer depth (Bits per Pixel)(8/16/24/32) |
Order:LongWord;
|
Framebuffer pixel order (BGR/RGB) |
Mode:LongWord;
|
Framebuffer alpha mode (Enabled/Reversed/Ignored) |
Format:LongWord;
|
Framebuffer color format (eg COLOR_FORMAT_ARGB32) |
PhysicalWidth:LongWord;
|
Framebuffer Physical Width (Pixels) |
PhysicalHeight:LongWord;
|
Framebuffer Physical Height (Pixels) |
VirtualWidth:LongWord;
|
Framebuffer Virtual Width (Pixels) |
VirtualHeight:LongWord;
|
Framebuffer Virtual Height (Pixels) |
OffsetX:LongWord;
|
Framebuffer Virtual Offset X (Pixels) |
OffsetY:LongWord;
|
Framebuffer Virtual Offset Y (Pixels) |
OverscanTop:LongWord;
|
Framebuffer Overscan Top (Pixels) |
OverscanBottom:LongWord;
|
Framebuffer Overscan Bottom (Pixels) |
OverscanLeft:LongWord;
|
Framebuffer Overscan Left (Pixels) |
OverscanRight:LongWord;
|
Framebuffer Overscan Right (Pixels) |
Rotation:LongWord;
|
Framebuffer Rotation (eg FRAMEBUFFER_ROTATION_180) |
Buffer Properties | |
LineBuffer:Pointer;
|
Buffer for line fills |
CopyBuffer:Pointer;
|
Buffer for overlapped copy |
Internal Properties | |
Prev:PFramebufferDevice;
|
Previous entry in Framebuffer device table |
Next:PFramebufferDevice;
|
Next entry in Framebuffer device table |
Public variables
Init handlers
FramebufferInitHandler:TFramebufferInit;
|
Function declarations
Initialization functions
procedure FramebufferInit;
Note | None documented |
---|
Framebuffer functions
function FramebufferDeviceAllocate(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
Framebuffer | The framebuffer device to allocate |
---|---|
Properties | The framebuffer properties (Width/Height/Depth etc) to use for allocation (Optional) |
Return | ERROR_SUCCESS if completed or another error code on failure |
function FramebufferDeviceRelease(Framebuffer:PFramebufferDevice):LongWord;
Framebuffer | The framebuffer device to release |
---|---|
Return | ERROR_SUCCESS if completed or another error code on failure |
function FramebufferDeviceBlank(Framebuffer:PFramebufferDevice; Blank:Boolean):LongWord;
Framebuffer | The framebuffer device to blank |
---|---|
Blank | Turn off the display if True / Turn on the display if False |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support blank, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. Devices that support blank should set the flag FRAMEBUFFER_FLAG_BLANK. |
function FramebufferDeviceRead(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Len,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to read from |
---|---|
X | The column to start reading from |
Y | The row to start reading from |
Buffer | Pointer to a buffer to receive the read pixels |
Len | The number of pixels to read starting at X,Y |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Pixel data will be returned in the color format of the framebuffer. The default method assumes that framebuffer memory is DMA coherent and does not require cache cleaning before a DMA read. |
function FramebufferDeviceWrite(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Len,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to write to |
---|---|
X | The column to start writing from |
Y | The row to start writing from |
Buffer | Pointer to a buffer containing the pixels to write |
Len | The number of pixels to write starting at X,Y |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Caller must ensure pixel data is in the correct color format for the framebuffer. The default method assumes that framebuffer memory is DMA coherent and does not require cache invalidation after a DMA write. |
function FramebufferDeviceMark(Framebuffer:PFramebufferDevice; X,Y,Width,Height,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to mark |
---|---|
X | The starting column of the mark |
Y | The starting row of the mark |
Width | The number of columns to mark |
Height | The number of rows to mark |
Flags | The flags used for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support mark, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. Devices that support and require mark should set the flag FRAMEBUFFER_FLAG_MARK. |
function FramebufferDeviceCommit(Framebuffer:PFramebufferDevice; Address,Size,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to commit |
---|---|
Address | The starting address of the commit |
Size | The size in bytes of the commit |
Flags | The flags used for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support commit, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. Devices that support and require commit should set the flag FRAMEBUFFER_FLAG_COMMIT. |
function FramebufferDeviceGetRect(Framebuffer:PFramebufferDevice; X,Y:LongWord; Buffer:Pointer; Width,Height,Skip,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to get from |
---|---|
X | The starting column of the get |
Y | The starting row of the get |
Buffer | Pointer to a block of memory large enough to hold the pixels in a contiguous block of rows |
Width | The number of columns to get |
Height | The number of rows to get |
Skip | The number of pixels to skip in the buffer after each row (Optional) |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Pixel data will be returned in the color format of the framebuffer. The default method assumes that framebuffer memory is DMA coherent and does not require cache cleaning before a DMA read. |
function FramebufferDevicePutRect(Framebuffer:PFramebufferDevice; X,Y:LongWord;Buffer:Pointer; Width,Height,Skip,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to put to |
---|---|
X | The starting column of the put |
Y | The starting row of the put |
Buffer | Pointer to a block of memory containing the pixels in a contiguous block of rows |
Width | The number of columns to put |
Height | The number of rows to put |
Skip | The number of pixels to skip in the buffer after each row (Optional) |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Caller must ensure pixel data is in the correct color format for the framebuffer. The default method assumes that framebuffer memory is DMA coherent and does not require cache invalidation after a DMA write. |
function FramebufferDeviceCopyRect(Framebuffer:PFramebufferDevice; X1,Y1,X2,Y2,Width,Height,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to copy on |
---|---|
X1 | The starting column to copy from |
Y1 | The starting row to copy from |
X2 | The starting column to copy to |
Y2 | The starting row to copy to |
Width | The number of columns to copy |
Height | The number of rows to copy |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | The default method assumes that framebuffer memory is DMA coherent and does not require cache clean/invalidate before or after a DMA read/write. |
function FramebufferDeviceFillRect(Framebuffer:PFramebufferDevice; X,Y,Width,Height,Color,Flags:LongWord):LongWord;
Framebuffer | The framebuffer device to fill on |
---|---|
X | The starting column of the fill |
Y | The starting row of the fill |
Width | The number of columns to fill |
Height | The number of rows to fill |
Color | The color to use for the fill |
Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Color must be specified in the correct format for the framebuffer. The default method assumes that framebuffer memory is DMA coherent and does not require cache invalidation after a DMA write. |
function FramebufferDeviceGetLine(Framebuffer:PFramebufferDevice; Y:LongWord):Pointer;
Framebuffer | The framebuffer device to get the start address from |
---|---|
Y | The row to get the start address of |
Return | Pointer to the start address of the row or nil on failure |
function FramebufferDeviceGetPoint(Framebuffer:PFramebufferDevice; X,Y:LongWord):Pointer;
Framebuffer | The framebuffer device to get the address from |
---|---|
X | The column to get the start address of |
Y | The row to get the start address of |
Return | Pointer to the address of the row and column or nil on failure |
function FramebufferDeviceWaitSync(Framebuffer:PFramebufferDevice):LongWord;
Framebuffer | The framebuffer device to wait for |
---|---|
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support wait sync, returns ERROR_CALL_NOT_IMPLEMENTED if not supported.
Devices that support wait sync should set the flag FRAMEBUFFER_FLAG_SYNC |
function FramebufferDeviceGetOffset(Framebuffer:PFramebufferDevice; var X,Y:LongWord):LongWord;
Framebuffer | The framebuffer device to get the offset from |
---|---|
X | The X (Column) offset value in pixels returned from the device if successful |
Y | The Y (Row) offset value in pixels returned from the device if successful |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | X and Y are relative to the virtual buffer and NOT the physical screen (Where applicable)
Not all framebuffer devices support X and/or Y offset
|
function FramebufferDeviceSetOffset(Framebuffer:PFramebufferDevice; X,Y:LongWord; Pan:Boolean):LongWord;
Framebuffer | The framebuffer device to set the offset for |
---|---|
X | The X (Column) offset value in pixels to set |
Y | The Y (Row) offset value in pixels to set |
Pan | If True then pan the display without updating the Offset X and/or Y |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | X and Y are relative to the virtual buffer and NOT the physical screen (Where applicable)
Not all framebuffer devices support X and/or Y offset, returns ERROR_CALL_NOT_IMPLEMENTED if not supported
|
function FramebufferDeviceGetPalette(Framebuffer:PFramebufferDevice; Palette:PFramebufferPalette):LongWord;
Framebuffer | The framebuffer device to get the palette from |
---|---|
Palette | Pointer to a TFramebufferPalette structure for the palette data |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support 8 bit palette, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. |
function FramebufferDeviceSetPalette(Framebuffer:PFramebufferDevice; Palette:PFramebufferPalette):LongWord;
Framebuffer | The framebuffer device to set the palette for |
---|---|
Palette | Pointer to a TFramebufferPalette structure for the palette data |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support 8 bit palette, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. |
function FramebufferDeviceSetBacklight(Framebuffer:PFramebufferDevice; Brightness:LongWord):LongWord;
Framebuffer | The framebuffer device to set the backlight |
---|---|
Brightness | The brightness value to set (Normally 0 to 100) |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Not all framebuffer devices support set backlight, returns ERROR_CALL_NOT_IMPLEMENTED if not supported. Devices that support set backlight should set the flag FRAMEBUFFER_FLAG_BACKLIGHT. |
function FramebufferDeviceGetProperties(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
Framebuffer | The framebuffer device to get properties from |
---|---|
Properties | Pointer to a TFramebufferProperties structure to return |
Return | ERROR_SUCCESS if completed or another error code on failure |
function FramebufferDeviceSetProperties(Framebuffer:PFramebufferDevice; Properties:PFramebufferProperties):LongWord;
Framebuffer | The framebuffer device to set properties for |
---|---|
Properties | Pointer to a TFramebufferProperties structure containing the properties |
Return | ERROR_SUCCESS if completed or another error code on failure |
Note | Changing certain properties may cause the framebuffer to be reallocated |
function FramebufferDeviceCheckFlag(Framebuffer:PFramebufferDevice; Flag:LongWord):Boolean;
Note | None documented |
---|
function FramebufferDeviceGetFormat(Framebuffer:PFramebufferDevice):LongWord;
Note | None documented |
---|
function FramebufferDeviceCreate:PFramebufferDevice;
Return | Pointer to new Framebuffer entry or nil if Framebuffer could not be created |
---|
function FramebufferDeviceCreateEx(Size:LongWord):PFramebufferDevice;
Size | Size in bytes to allocate for new Framebuffer (Including the Framebuffer entry) |
---|---|
Return | Pointer to new Framebuffer entry or nil if Framebuffer could not be created |
function FramebufferDeviceDestroy(Framebuffer:PFramebufferDevice):LongWord;
Note | None documented |
---|
function FramebufferDeviceRegister(Framebuffer:PFramebufferDevice):LongWord;
Note | None documented |
---|
function FramebufferDeviceDeregister(Framebuffer:PFramebufferDevice):LongWord;
Note | None documented |
---|
function FramebufferDeviceFind(FramebufferId:LongWord):PFramebufferDevice;
Note | None documented |
---|
function FramebufferDeviceFindByName(const Name:String):PFramebufferDevice; inline;
Note | None documented |
---|
function FramebufferDeviceFindByDescription(const Description:String):PFramebufferDevice; inline;
Note | None documented |
---|
function FramebufferDeviceEnumerate(Callback:TFramebufferEnumerate; Data:Pointer):LongWord;
Note | None documented |
---|
function FramebufferDeviceNotification(Framebuffer:PFramebufferDevice; Callback:TFramebufferNotification; Data:Pointer; Notification,Flags:LongWord):LongWord;
Note | None documented |
---|
RTL framebuffer functions
function SysFramebufferAvailable:Boolean;
Note | None documented |
---|
Framebuffer helper functions
function FramebufferDeviceGetCount:LongWord; inline;
Note | None documented |
---|
function FramebufferDeviceGetDefault:PFramebufferDevice; inline;
Note | None documented |
---|
function FramebufferDeviceSetDefault(Framebuffer:PFramebufferDevice):LongWord;
Note | None documented |
---|
function FramebufferDeviceCheck(Framebuffer:PFramebufferDevice):PFramebufferDevice;
Note | None documented |
---|
function FramebufferDeviceSwap(Value:LongWord):LongWord; inline;
Note | None documented |
---|
function FramebufferDepthToString(Depth:LongWord):String;
Note | None documented |
---|
function FramebufferOrderToString(Order:LongWord):String;
Note | None documented |
---|
function FramebufferModeToString(Mode:LongWord):String;
Note | None documented |
---|
function FramebufferRotationToString(Rotation:LongWord):String;
Note | None documented |
---|
Return to Unit Reference