Functions used to iterate through the elements in the order the server application would draw them onto the display or manipulating this drawing order.
More...
Functions used to iterate through the elements in the order the server application would draw them onto the display or manipulating this drawing order.
◆ ACAPI_DrawOrder_CreationOrderGetNext()
GSErrCode ACAPI_DrawOrder_CreationOrderGetNext |
( |
API_Guid * |
guid | ) |
|
Returns the next element's guid from the previously initialized creation order table.
- Parameters
-
guid | [in/out] On input this is the guid of the element for which the following in creation order is sought. On output this is the guid of the following element. |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The guid parameter is nullptr.
- APIERR_GENERAL - The creation order table was not allocated beforehand.
- APIERR_NOMORE - The guid parameter is not in the table or it was the last elem.
- Example
See the example at APIDb_InitCreationOrderTableID
.
◆ ACAPI_DrawOrder_DisposeCreationOrderTable()
GSErrCode ACAPI_DrawOrder_DisposeCreationOrderTable |
( |
| ) |
|
Disposes the previously allocated creation order table.
- Returns
- NoError - The function has completed with success.
- APIERR_GENERAL - The creation order table was not allocated beforehand.
- Example
See the example at APIDb_InitCreationOrderTableID
.
◆ ACAPI_DrawOrder_DrawOrderGetNext()
GSErrCode ACAPI_DrawOrder_DrawOrderGetNext |
( |
API_ElemFilterFlags |
filterBits, |
|
|
API_Elem_Head * |
elemHead |
|
) |
| |
Returns a reference to the next element of the current database in the order specified by the BTF/STB system.
- Parameters
-
filterBits | [in] element filter attributes (pass as VALUE) |
elemHead | [out] element reference |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - elemHead is nullptr
- APIERR_NOMORE - no more element in the list
- Example
GSErrCode err;
err = ACAPI_Database (APIDb_DrawOrderInitID, nullptr, nullptr);
while (err == NoError) {
err = ACAPI_Database (APIDb_DrawOrderGetNextID, (void *) (Int32) APIFilt_OnActFloor, &elem_head);
if (err == NoError) {
}
}
if (err == APIERR_NOMORE)
err = NoError;
General element header for element types.
Definition: APIdefs_Elements.h:401
◆ ACAPI_DrawOrder_DrawOrderInit()
GSErrCode ACAPI_DrawOrder_DrawOrderInit |
( |
| ) |
|
Initializes a loop on the current database to get the elements in the order specified by the BTF/STB system.
- Returns
- NoError - The function has completed with success.
- Example
GSErrCode err;
err = ACAPI_Database (APIDb_DrawOrderInitID, nullptr, nullptr);
while (err == NoError) {
err = ACAPI_Database (APIDb_DrawOrderGetNextID, (void *) (Int32) APIFilt_OnActFloor, &elem_head);
if (err == NoError) {
}
}
if (err == APIERR_NOMORE)
err = NoError;
◆ ACAPI_DrawOrder_DrawOrderTerm()
GSErrCode ACAPI_DrawOrder_DrawOrderTerm |
( |
| ) |
|
Signals the end of a draw order loop.
- Returns
- NoError - The function has completed with success.
◆ ACAPI_DrawOrder_InitCreationOrderTable()
GSErrCode ACAPI_DrawOrder_InitCreationOrderTable |
( |
API_ElemFilter * |
elemFilter | ) |
|
Initializes an internal table for fast access of the next element in creation order.
- Parameters
-
elemFilter | [in] Optional parameter, can be nullptr. Use this filter to leave out element types from the access table. |
- Returns
- NoError - The function has completed with success.
- APIERR_MEMFULL - The internal creation order table cannot be allocated.
- APIERR_NESTING - Internal access table initializations cannot be nested, i.e. you should dispose the previously allocated table before initializing a new one.
- Example
static void PrintGuidsInCreationOrder (void)
{
if (ACAPI_Database (APIDb_InitCreationOrderTableID, nullptr, nullptr) == NoError) {
while ((ACAPI_Database (APIDb_CreationOrderGetNextID, &guid, nullptr) == NoError) &&
(guid != GS::NULLGuid))
{
}
ACAPI_Database (APIDb_DisposeCreationOrderTableID, nullptr, nullptr);
}
return;
}
constexpr API_Guid APINULLGuid
Represents an empty API guid.
Definition: API_Guid.hpp:241
GS::Guid & APIGuid2GSGuid(API_Guid &guid)
Converting from API_Guid to a GS::Guid.
Definition: API_Guid.hpp:73
void ACAPI_WriteReport(const GS::UniString &format, bool withDial,...)
Writes a report string into the Report Windowot into a custom alert window.
Represents a GS::Guid in the API layer.
Definition: API_Guid.hpp:46