dlangui.platforms.common.platform

This module contains common Plaform definitions.

Platform is abstraction layer for application.

More...

Public Imports

dlangui.core.config
public import dlangui.core.config;
Undocumented in source.
dlangui.core.events
public import dlangui.core.events;
Undocumented in source.

Members

Classes

EventList
class 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
class Platform

Platform abstraction layer.

TimerInfo
class TimerInfo
Undocumented in source.
Window
class Window

Window abstraction layer. Widgets can be shown only inside window.

Enums

DialogDisplayMode
enum DialogDisplayMode

Dialog display modes - used to configure dialogs should be showed as a popup or window

ShowPosition
enum ShowPosition

Flags to set start window position on show

WindowFlag
enum WindowFlag

window creation flags

WindowOrContentResizeMode
enum WindowOrContentResizeMode

Sets what's should be done when window content is too big

WindowState
enum WindowState

Window states

Functions

DLANGUIWinMain
int DLANGUIWinMain(void* hInstance, void* hPrevInstance, char* lpCmdLine, int nCmdShow)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
DLANGUIWinMainProfile
int DLANGUIWinMainProfile(string[] args)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
DLANGUImain
int DLANGUImain(string[] args)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
DLANGUImain
int DLANGUImain(string[] args)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UIAppMain
int UIAppMain(string[] args)

entry point - declare such function to use as main for dlangui app

initFontManager
bool initFontManager()

initialize font manager on startup

initLogs
void 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
void initResourceManagers()

call this on application initialization

initSharedResourceManagers
void initSharedResourceManagers()

call this from shared static this()

releaseResourcesOnAppExit
void releaseResourcesOnAppExit()

call this when all resources are supposed to be freed to report counts of non-freed resources by type

setOpenglEnabled
void setOpenglEnabled(bool enabled)

call on app initialization if OpenGL support is detected

setOpenglEnabled
void setOpenglEnabled(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

OnMainWidgetChange
interface OnMainWidgetChange

Window main widget changing signal listener

OnWindowActivityHandler
interface OnWindowActivityHandler

Window activate/deactivate signal listener

OnWindowStateHandler
interface OnWindowStateHandler

Window state signal listener

Mixin templates

APP_ENTRY_POINT
mixintemplate APP_ENTRY_POINT()

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

Properties

openglEnabled
bool openglEnabled [@property getter]

check if hardware acceleration is enabled

openglEnabled
bool openglEnabled [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
platform
Platform platform [@property getter]

get current platform object instance

Detailed Description

Synopsis:

import dlangui.platforms.common.platform;

Meta

License

Boost License 1.0

Authors

Vadim Lopatin, coolreader.org@gmail.com