Module dcanvas.platforms.common.platform

Common Plaform definitions.

Platform is abstraction layer for application.

Synopsis

import dcanvas.platforms.common.platform;

Functions

NameDescription
DCANVASMain(args)
initFontManager() initialize font manager on startup
initLogs() initialize logging (for win32 - to file ui.log, for other platforms - stderr; log level is TRACE for debug builds, and WARN for release builds)
initResourceManagers() call this on application initialization
initSharedResourceManagers() call this from shared static this()
openglEnabled() check if hardware acceleration is enabled
platform() get current platform object instance
releaseResourcesOnAppExit() call this when all resources are supposed to be freed to report counts of non-freed resources by type
setOpenglEnabled(enabled) call on app initialization if OpenGL support is detected
UIAppMain(args) entry point - declare such function to use as main for dlangui app

Interfaces

NameDescription
OnMainWidgetChange Window main widget changing signal listener
OnWindowActivityHandler Window activate/deactivate signal listener
OnWindowStateHandler Window state signal listener

Classes

NameDescription
EventList protected event list references to posted messages can be stored here at least to keep live reference and avoid GC as well, on some platforms it's easy to send id to message queue, but not pointer
Platform Platform abstraction layer.
TimerInfo
Window Window abstraction layer. Widgets can be shown only inside window.

Enums

NameDescription
DialogDisplayMode Dialog display modes - used to configure dialogs should be showed as a popup or window
ShowPosition Flags to set start window position on show
WindowFlag window creation flags
WindowOrContentResizeMode Sets what's should be done when window content is too big
WindowState Window states

Templates

NameDescription
APP_ENTRY_POINT put "mixin APP_ENTRY_POINT;" to main module of your dcanvas based app