Classes | |
class | FontchooserCustomGui |
class | FontData |
Macros | |
#define | CUSTOMGUI_FONTCHOOSER |
#define | FONTCHOOSER_DATA |
Enumerations | |
enum | { FONTCHOOSER_ENABLE_SIZE , FONTCHOOSER_USE_REDUCED_FONT_LIST , FONTCHOOSER_ENABLE_FILTER } |
enum class | FONTCHOOSER_POPUP_RESULT { OK , CANCEL } |
Functions | |
enum FONTCHOOSER_POPUP_RESULT | MAXON_ENUM_LIST (FONTCHOOSER_POPUP_RESULT) |
Bool | OpenFontChooserPopup (const BaseContainer &font, maxon::Delegate< void(FONTCHOOSER_POPUP_RESULT, const BaseContainer &)> callback, Bool useReducedFontList=false, Int32 screenPositionX=-1, Int32 screenPositionY=-1) |
Variables | |
OK | |
CANCEL | |
FontData | MAXON_ENUM_LIST |
#define CUSTOMGUI_FONTCHOOSER |
Font chooser custom GUI ID.
#define FONTCHOOSER_DATA |
Font chooser custom data ID.
|
strong |
enum FONTCHOOSER_POPUP_RESULT MAXON_ENUM_LIST | ( | FONTCHOOSER_POPUP_RESULT | ) |
Bool OpenFontChooserPopup | ( | const BaseContainer & | font, |
maxon::Delegate< void(FONTCHOOSER_POPUP_RESULT, const BaseContainer &)> | callback, | ||
Bool | useReducedFontList = false , |
||
Int32 | screenPositionX = -1 , |
||
Int32 | screenPositionY = -1 |
||
) |
Opens a font chooser popup at the specified position that can be closed by clicking outside or with ESC.
[in] | font | The initial font container. |
[out] | callback | Function called on user action with the result and the choosen font data. If FONTCHOOSER_POPUP_RESULT is OK, then choosen font is stored in the BaseContainer. If FONTCHOOSER_POPUP_RESULT is CANCEL, BaseContainer received is empty. |
[in] | useReducedFontList | If true, restrict the available fonts to 'core' families only |
[in] | screenPositionX | The Y position of the popup. See note above. |
[in] | screenPositionY | The Y position of the popup. See note above. |
OK |
User has selected a font.
CANCEL |
< User has cancelled popup, either by pressing ESC key or by clicking outside.
FontData MAXON_ENUM_LIST |