Global Options
Keyboard
To set the options on the keyboard, create an instance of EM_KEYBOARD and call the appropriate features. The keyboard input handler has two options which can be set:
-
Unicode: If you want unicode support call enable_unicode.
In general it is a good idea to enable unicode support.
Default is disabled. -
Repeating key down events: Per default only one event will be sent when a key is pressed down
regardless of how long the key is pressed. But often you want to know if a key is pressed for a long time.
If this is indeed the case you can tell the input handler to send repeating key down events by calling
enable_repeating_key_down_events.
Default is disabled.
Widget options
To access the widget options singleton, inherit from EM_SHARED_WIDGET_OPTIONS. You then have access to widget_options which can be used to set the following options:
-
Tooltips: You can enable and disable tooltips.
Default is enabled. -
Tooltip show delay: The time before a tooltip is shown in milliseconds.
Default is 1000. -
Transparency refresh: This options denotes if transparent backgrounds are refreshed every frame.
If you disable this option changes behind transparent widgets are not updated, i.e. it is not really transparent.
But performance is improved since the widgets are not updated every frame. So if you encounter performance problems
- check performance in the finalized version - disable this option.
Default is disabled. -
Dialog dragging restriction: You can set wheter dialogs can be dragged outside the scene or not. If
the dragging restriction is enabled, dialogs will stop dragging when they hit the window border. If it is disabled,
dialogs will partly disappear when dragged outside the window.
Default is enabled.
Widget theme
To access the widget theme singletons, inherit from EM_SHARED_THEME. You then
have access to the theme's colors, fonts
and delegates
. These objects have features to set the colors and fonts
used by the theme's delegates. There are some predefined themes. To see how to set them or if you want to define your own
have a look at
the themes section in the widget documentation.