FXTopWindow

Abstract base class for all top-level windows


create()

Create server-side resources.

Reimplemented from FXShell.

Reimplemented in FXPrintDialog, FXToolbarShell, AFXMainWindow, and AFXDialog.


deiconify()

Deiconify window.


detach()

Detach the server-side resources for this window.

Reimplemented from FXComposite.


getDecorations()

Return current title and border decorations.


getDefaultHeight()

Return the default height of this window.

Reimplemented from FXComposite.

Reimplemented in FXToolbarShell, and AFXMainWindow.


getDefaultWidth()

Return the default width of this window.

Reimplemented from FXComposite.

Reimplemented in FXToolbarShell, and AFXMainWindow.


getHSpacing()

Return horizontal spacing between children.


getIcon()

Return window icon.


getMiniIcon()

Return window mini (title) icon.


getPackingHints()

Return packing hints for children.


getPadBottom()

Get bottom interior padding.


getPadLeft()

Get left interior padding.


getPadRight()

Get right interior padding.


getPadTop()

Get top interior padding.


getTitle()

Return window title.


getVSpacing()

Return vertical spacing between children.


hide()

Hide this window.

Reimplemented from FXWindow.

Reimplemented in AFXManagerMenuDB, AFXDialog, and AFXMessageDialog.


iconify()

Iconify window.


isIconified()

Return True if window has been iconified.


killFocus()

Remove the focus from this window.

Reimplemented from FXShell.


move(x, y)

Move this window to the specified position in the parent's coordinates.

Reimplemented from FXWindow.

ArgumentTypeDefaultDescription
xInt  
yInt  


place(placement)

Position the window based on placement.

ArgumentTypeDefaultDescription
placementInt  


position(x, y, w, h)

Move and resize this window in the parent's coordinates.

Reimplemented from FXWindow.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  


resize(w, h)

Resize this window to the specified width and height.

Reimplemented from FXWindow.

ArgumentTypeDefaultDescription
wInt  
hInt  


setDecorations(decorations)

Change title and border decorations.

ArgumentTypeDefaultDescription
decorationsInt  


setFocus()

Move the focus to this window.

Reimplemented from FXShell.


setHSpacing(hs)

Change horizontal spacing between children.

ArgumentTypeDefaultDescription
hsInt  


setIcon(ic)

Change window icon.

ArgumentTypeDefaultDescription
icFXIcon  


setMiniIcon(ic)

Change window mini (title) icon.

ArgumentTypeDefaultDescription
icFXIcon  


setPackingHints(ph)

Change packing hints for children.

ArgumentTypeDefaultDescription
phInt  


setPadBottom(pb)

Change bottom padding.

ArgumentTypeDefaultDescription
pbInt  


setPadLeft(pl)

Change left padding.

ArgumentTypeDefaultDescription
plInt  


setPadRight(pr)

Change right padding.

ArgumentTypeDefaultDescription
prInt  


setPadTop(pt)

Change top padding.

ArgumentTypeDefaultDescription
ptInt  


setTitle(name)

Change window title.

ArgumentTypeDefaultDescription
nameString  


setVSpacing(vs)

Change vertical spacing between children.

ArgumentTypeDefaultDescription
vsInt  


show(placement)

Show this window with given placement.

ArgumentTypeDefaultDescription
placementInt  


show()

Show this window.

Reimplemented from FXWindow.

Reimplemented in AFXDialog, AFXFileDialog, and AFXMessageDialog.


Class flags

ID_ICONIFY

Iconify the window.

ID_DEICONIFY

Deiconify the window.

ID_QUERY_DOCK

Toolbar asks to dock.


Global flags

Title and border decorations

DECOR_NONE

Borderless window.

DECOR_TITLE

Window title.

DECOR_MINIMIZE

Minimize button.

DECOR_MAXIMIZE

Maximize button.

DECOR_CLOSE

Close button.

DECOR_BORDER

Border.

DECOR_RESIZE

Resize handles.

DECOR_MENU

Window menu.

Initial window placement

PLACEMENT_DEFAULT

Place it at the default size and location.

PLACEMENT_VISIBLE

Place window to be fully visible.

PLACEMENT_CURSOR

Place it under the cursor position.

PLACEMENT_OWNER

Place it centered on its owner.

PLACEMENT_SCREEN

Place it centered on the screen.

PLACEMENT_MAXIMIZED

Place it maximized to the screen size.