public class TDesktop extends TWindow
Events are passed to TDesktop as follows:
ABSOLUTEXY, CENTERED, HIDEONCLOSE, inKeyboardResize, inWindowMove, inWindowResize, MODAL, mouse, NOCLOSEBOX, NOZOOMBOX, OVERRIDEMENU, RESIZABLE, statusBar
Constructor and Description |
---|
TDesktop(TApplication parent)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
The default TDesktop draws a hatch character across everything.
|
void |
hide()
Hide window.
|
protected boolean |
mouseOnClose()
Returns true if the mouse is currently on the close button.
|
protected boolean |
mouseOnMaximize()
Returns true if the mouse is currently on the maximize/restore button.
|
protected boolean |
mouseOnResize()
Returns true if the mouse is currently on the resizable lower right
corner.
|
void |
onHide()
Called by hide().
|
void |
onKeypress(TKeypressEvent keypress)
Handle keystrokes.
|
void |
onMenu(TMenuEvent menu)
Handle posted menu events.
|
void |
onMouseDown(TMouseEvent mouse)
Handle mouse button presses.
|
void |
onMouseMotion(TMouseEvent mouse)
Handle mouse movements.
|
void |
onMouseUp(TMouseEvent mouse)
Handle mouse button releases.
|
void |
onResize(TResizeEvent resize)
Handle window/screen resize events.
|
void |
onShow()
Called by show().
|
void |
show()
Show window.
|
activate, addShortcutKeypress, center, clearShortcutKeypresses, close, getApplication, getBackground, getBorder, getBorderControls, getScreen, getStatusBar, getTitle, getZ, hasCloseBox, hasHiddenMouse, hasOverriddenMenu, hasZoomBox, inMovements, isHidden, isModal, isShortcutKeypress, isShown, maximize, newStatusBar, onClose, onCommand, onFocus, onPreClose, onUnfocus, removeShortcutKeypress, restore, setHiddenMouse, setMaximumWindowHeight, setMaximumWindowWidth, setMinimumWindowHeight, setMinimumWindowWidth, setTitle, setZ, stopMovements, toString
activate, activate, activateAll, addButton, addCalendar, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY
public TDesktop(TApplication parent)
parent
- parent applicationpublic void onResize(TResizeEvent resize)
public void onMouseDown(TMouseEvent mouse)
onMouseDown
in class TWindow
mouse
- mouse button eventpublic void onMouseUp(TMouseEvent mouse)
public void onMouseMotion(TMouseEvent mouse)
onMouseMotion
in class TWindow
mouse
- mouse motion eventpublic void onKeypress(TKeypressEvent keypress)
onKeypress
in class TWindow
keypress
- keystroke eventpublic void onMenu(TMenuEvent menu)
public void draw()
public final void hide()
public final void show()
public final void onHide()
public final void onShow()
protected final boolean mouseOnClose()
mouseOnClose
in class TWindow
protected final boolean mouseOnMaximize()
mouseOnMaximize
in class TWindow
protected final boolean mouseOnResize()
mouseOnResize
in class TWindow
Copyright © 2019 Kevin Lamonte. Licensed MIT.