Controlling Default Bidirectional Attributes Through the API
The following functions are declared in the header file <ilviews/bidi/bidi.h>.
IlvGetDefaultBidiValues retrieves the default values of the bidirectional attributes. No resource allocation is performed. The pointers passed as its parameters must point to places in memory that are already allocated. You can also provide a null pointer. In this case, the corresponding attribute is ignored.
void
IlvGetDefaultBidiValues(IlvDisplay* display,
IlvNumerals* numerals,
IlvSwapping* swapping,
IlvLayoutDirection* layoutDirection,
IlvShaping* shaping,
IlvWordBreak* wordBreak);
The following functions set the default bidirectional attributes for the specified display. The val parameter indicates the new default value assigned to the attribute:
void
IlvSetDefaultNumerals(IlvDisplay* display, IlvNumerals val);
void
IlvSetDefaultSwapping(IlvDisplay* display, IlvSwapping val);
void
IlvSetDefaultLayoutDirection(IlvDisplay* display, IlvLayoutDirection val);
void
IlvSetDefaultShaping(IlvDisplay* display, IlvShaping val);
void
IlvSetDefaultWordBreak(IlvDisplay* display, IlvWordBreak val);
The following function is similar to the previous ones except that it sets all the default bidirectional attributes at once:
void
IlvSetDefaultBidiValues(IlvDisplay* display,
IlvNumerals numerals,
IlvSwapping swapping,
IlvLayoutDirection layoutDirection,
IlvShaping shaping,
IlvWordBreak wordBreak);
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.