Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Controller

Entry point of the script (apart from QML). Handles the user input (shortcuts) and the events from the Driver (in other words KWin, the window manager/compositor). Provides interface for the Engine to ask Driver about particular properties of the user interface.

Basically an adapter type controller from MVA pattern.

Hierarchy

  • Controller

Index

Properties

currentSurface

currentSurface: DriverSurface

Current screen. In other words the screen, that has focus.

currentWindow

currentWindow: null | EngineWindow

Current active window. In other words the window, that has focus.

Readonly screens

screens: DriverSurface[]

A bunch of surfaces, that represent the user's screens.

Methods

drop

  • drop(): void

manageWindow

onCurrentSurfaceChanged

  • onCurrentSurfaceChanged(): void

onSurfaceUpdate

  • onSurfaceUpdate(): void

onWindowAdded

onWindowChanged

  • onWindowChanged(window: null | EngineWindow, comment?: string): void

onWindowFocused

onWindowGeometryChanged

onWindowMaximizeChanged

  • onWindowMaximizeChanged(window: EngineWindow, maximized: boolean): void

onWindowMove

onWindowMoveOver

  • React to window move operation over. The move operation ends when the user stops dragging the window with the mouse with the mouse's button being released.

    Parameters

    Returns void

onWindowMoveStart

  • React to window move operation start. The move operation starts when the user starts dragging the window with the mouse with the mouse's button being pressed

    Parameters

    Returns void

onWindowRemoved

onWindowResize

onWindowResizeOver

onWindowResizeStart

  • React to window resize operation start. The window resize operation is started, when the users drags the window with the mouse by the window edges.

    Parameters

    Returns void

onWindowScreenChanged

onWindowShadeChanged

showNotification

  • showNotification(text: string, icon?: string, hint?: string): void
  • Show a popup notification in the center of the screen.

    Parameters

    • text: string

      the main text of the notification.

    • Optional icon: string

      an optional name of the icon to display in the pop-up.

    • Optional hint: string

      an optional string displayed beside the main text.

    Returns void

Generated using TypeDoc