qui.qui

This module contains most of the functions you'll need. All the 'base' classes, like QWidget are defined in this. There are some classes, like List, that are defined in other modules.

Members

Aliases

KeyboardEventFunction
alias KeyboardEventFunction = void delegate(KeyPress)

keyboardEvent function

MouseEventFuction
alias MouseEventFuction = void delegate(MouseClick)

mouseEvent function

RGBColor
alias RGBColor = RGB

A 24 bit, RGB, color

Classes

QLayout
class QLayout

Used to place widgets in an order (i.e vertical or horizontal)

QTerminal
class QTerminal

A terminal (as the name says).

QTheme
class QTheme

Theme class

QWidget
class QWidget

Base class for all widgets, including layouts and QTerminal

Functions

centerAlignText
char[] centerAlignText(char[] text, uinteger width, char fill)

Center-aligns text, returns that in an char[] with width as length. The empty part filled with ' '

colorToHex
string colorToHex(RGBColor col)

Converts RGBColor to hex color code

hexToColor
RGBColor hexToColor(string hex)

Converts hex color code to RGBColor

ratioToRaw
uinteger ratioToRaw(uinteger selectedRatio, uinteger ratioTotal, uinteger total)

used to calculate height/width using sizeRation

Structs

Cell
struct Cell

The whole terminal is divided into cells, total number of cells = length * height of terminal

KeyPress
struct KeyPress

Key press event, keyboardEvent function is called with this

MouseClick
struct MouseClick

Mouse Click, or Ms Wheel scroll event

Position
struct Position

Used to store position for widgets

Size
struct Size

To store size for widgets

Meta