LEVIATHAN v962456e · 962456eee1

dagon

class Window

since 0.1.0-alpha.1linux

bases
Container

Constructors

new

new(string t, int w, int h)

Fields

backend_

IGuiBackend backend_

background_

int background_

canvas_

Canvas | None canvas_

closed_

bool closed_

cursorKind_

int cursorKind_

focused_

Focusable | None focused_

focusPolicy_

IFocusPolicy focusPolicy_

fontRegistry_

FontRegistry fontRegistry_

frameRequested_

bool frameRequested_

handle_

int handle_

heightWanted_

int heightWanted_

keymap_

Keymap keymap_

minH_

int minH_

minW_

int minW_

nextWindowToken_

int nextWindowToken_

overlayFlags_

Array<int> overlayFlags_

overlayFocusSaved_

Array<Focusable | None> overlayFocusSaved_

overlayPolicySaved_

Array<IFocusPolicy> overlayPolicySaved_

overlays_

Array<IComponent> overlays_

pasteBindToken_

int pasteBindToken_

pointer_

PointerState pointer_

realized_

bool realized_

resizableWanted_

bool resizableWanted_

theme_

Theme theme_

titleWanted_

string titleWanted_

widthWanted_

int widthWanted_

windowHandlers_

Array<(WindowEvent) => void> windowHandlers_

windowTokens_

Array<int> windowTokens_

Methods

__dagonFindFocused

__dagonFindFocused() -> Focusable | None

__dagonFrameRequested

__dagonFrameRequested() -> bool

__dagonHandle

__dagonHandle() -> int

__dagonHandleKey

__dagonHandleKey(KeyEvent e, bool isUp) -> void

__dagonHandleMouseButton

__dagonHandleMouseButton(MouseEvent e) -> void

__dagonHandleMouseMove

__dagonHandleMouseMove(MouseEvent e) -> void

__dagonHandleText

__dagonHandleText(TextEvent e) -> void

__dagonHandleWheel

__dagonHandleWheel(WheelEvent e) -> void

__dagonHandleWindowEvent

__dagonHandleWindowEvent(WindowEvent e) -> void

__dagonRecordAndSubmit

__dagonRecordAndSubmit() -> void

checkNotClosed

checkNotClosed() -> void

close

close() -> void

defaultFontFamily

defaultFontFamily() -> string

defaultFontSize

defaultFontSize() -> int

ensureRealized

ensureRealized() -> void

focus

focus(Focusable f) -> void

focused

focused() -> Focusable | None

handleOutsidePress

handleOutsidePress() -> void

hide

hide() -> void

installDefaultPaste

installDefaultPaste() -> void

keymap

keymap() -> Keymap

minSize

minSize(int w, int h) -> Window

offWindow

offWindow(int t) -> void

onWindow

onWindow((WindowEvent) => void h) -> int

paintOverlays

paintOverlays(Canvas c) -> void

popOverlay

popOverlay() -> void

pushOverlay

pushOverlay(IComponent c) -> void
pushOverlay(IComponent c, bool dismissOnOutsidePress, bool inputTransparent) -> void

requestFrame

requestFrame() -> void

resizable

resizable(bool on = true) -> Window

scale

scale() -> float

setBackground

setBackground(int rgba) -> void

setCursor

setCursor(CursorKind k) -> void

show

show() -> void

size

size() -> Size

theme

theme(Theme t) -> Window
theme() -> Theme

title

title(string t) -> Window

topOverlay

topOverlay() -> IComponent | None

topOverlayInputTransparent

topOverlayInputTransparent() -> bool

updateCursorAndIme

updateCursorAndIme() -> void