Difference between revisions of "GetFKeyPtr"

From WikiPrizm
Jump to navigationJump to search
(Created page with "{{syscall | name = GetFKeyPtr | index = 0x12F3 | signature = void GetFKeyPtr( int, void* ) | header = display_syscalls.h | comments = }}")
 
Line 2: Line 2:
 
| name = GetFKeyPtr
 
| name = GetFKeyPtr
 
| index = 0x12F3
 
| index = 0x12F3
| signature = void GetFKeyPtr( int, void* )
+
| signature = ''void'' '''GetFKeyPtr'''(''int'' '''id''', ''void*'' '''result''')
 
| header = display_syscalls.h
 
| header = display_syscalls.h
| comments =  
+
| Parameters =
 +
* ''int'' '''id''' - The ID (between 0 and 0x04E0) of the FKey bitmap stored in the memory. Use Insight's ''FKey icons'' option to find the ID for an Fkey icon.
 +
* ''void*'' '''result''' - Pointer to an integer variable
 +
| returns = The function sets the given variable as a pointer to the start of the requested bitmap.
 +
| synopsis = This function tells you the position of a requested FKey icon.
 +
| example =
 +
This code displays "TEST" above F1 button:
 +
<pre>
 +
int iresult;
 +
GetFKeyPtr(0x0003, &iresult);
 +
FKey_Display(0, iresult);
 +
</pre>
 +
| comments = Use [[FKey_Display]] to display FKey bitmaps.
 
}}
 
}}

Revision as of 13:25, 28 August 2012


Synopsis

Header: display_syscalls.h
Syscall index: 0x12F3
Function signature: void GetFKeyPtr(int id, void* result)

This function tells you the position of a requested FKey icon.

Returns

The function sets the given variable as a pointer to the start of the requested bitmap.

Comments

Use FKey_Display to display FKey bitmaps.

Example

This code displays "TEST" above F1 button:

int iresult;
GetFKeyPtr(0x0003, &iresult);
FKey_Display(0, iresult);