FXWindow

Base class for all windows


FXWindow(p, opts=0, x=0, y=0, w=0, h=0)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite  
optsInt0 
xInt0 
yInt0 
wInt0 
hInt0 


canFocus()

Return True if this window is a control capable of receiving the focus.

Reimplemented in FXArrowButton, FXButton, FXCanvas, FXCheckButton, FXColorWell, FXDockHandler, FXIconList, FXImageView, FXList, FXMDIChild, FXMenuButton, FXMenuCascade, FXMenuCommand, FXMenuTitle, FXOption, FXOptionMenu, FXRadioButton, FXSlider, FXTabItem, FXTable, FXText, FXTextField, FXToggleButton, FXToolbarTab, FXTreeList, AFXBaseTable, AFXFloatSpinner, AFXFlyoutButton, AFXFlyoutItem, and AFXSlider.


childAtIndex(index)

Return the child window at specified index, or NULL if the index is negative or out of range

Reimplemented in AFXOptionTreeItem.

ArgumentTypeDefaultDescription
indexInt  


containsChild(child)

Return True if specified window is a child of this window.

ArgumentTypeDefaultDescription
childFXWindow  


create()

Create all of the server-side resources for this window.

Reimplemented from FXId.

Reimplemented in FXColorBar, FXColorSelector, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDirBox, FXDirList, FXDockTitle, FXDriveBox, FXFileList, FXFontSelector, FXGLCanvas, FXGLViewer, FXGroupBox, FXHeader, FXIconList, FXImageView, FXLabel, FXList, FXListBox, FXMDIChild, FXMenuButton, FXMenuCaption, FXMenuCascade, FXProgressBar, FXMenuTitle, FXOptionMenu, FXPrintDialog, FXRootWindow, FXScrollWindow, FXShell, FXSpinner, FXStatusline, FXTabBar, FXTable, FXText, FXTextField, FXToggleButton, FXToolbarShell, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, AFXManagerMenuPane, AFXMainWindow, AFXPromptArea, AFXBaseTable, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXDialog, AFXFloatSpinner, AFXFlyoutButton, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXProgressBar, AFXSpinner, AFXTable, AFXTextField, and AFXVerticalAligner.


destroy()

Destroy the server-side resources for this window.

Reimplemented from FXId.

Reimplemented in FXComboBox, FXComposite, FXDirBox, FXDirList, FXDriveBox, FXFileList, FXGLCanvas, FXListBox, FXMenuCascade, FXOptionMenu, FXRootWindow, FXTreeList, FXTreeListBox, AFXManagerMenuCascade, AFXColorFlyout, and AFXTable.


detach()

Detach the server-side resources for this window.

Reimplemented from FXId.

Reimplemented in FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDirBox, FXDirList, FXDockTitle, FXDriveBox, FXFileList, FXGLCanvas, FXGLViewer, FXGroupBox, FXHeader, FXIconList, FXImageView, FXLabel, FXList, FXListBox, FXMDIChild, FXMenuButton, FXMenuCaption, FXMenuCascade, FXProgressBar, FXMenuTitle, FXOptionMenu, FXRootWindow, FXStatusline, FXTable, FXText, FXToggleButton, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, AFXBaseTable, AFXColorFlyout, AFXFlyoutButton, AFXNote, and AFXTable.


disable()

Disable the window from receiving mouse and keyboard events.

Reimplemented in FXArrowButton, FXComboBox, FXGroupBox, FXLabel, FXListBox, FXMenuCaption, FXScrollCorner, FXSlider, FXSpinner, FXText, FXTextField, FXToolbarTab, FXTreeListBox, AFXAutoComputeGroup, AFXManagerMenuDB, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXFloatSpinner, AFXFlyoutButton, AFXList, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXSlider, AFXSpinner, AFXTable, and AFXTextField.


enable()

Enable the window to receive mouse and keyboard events.

Reimplemented in FXArrowButton, FXComboBox, FXGroupBox, FXLabel, FXListBox, FXMenuCaption, FXScrollCorner, FXSlider, FXSpinner, FXText, FXTextField, FXToolbarTab, FXTreeListBox, AFXAutoComputeGroup, AFXManagerMenuDB, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXFloatSpinner, AFXFlyoutButton, AFXList, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXSlider, AFXSpinner, AFXTable, and AFXTextField.


forceRefresh()

Force a GUI update of this window and its children.


getBackColor()

Get background color.

Reimplemented in FXComboBox, and FXListBox.


getCursorPosition()

Returns a sequence of (status, x, y, mouseButtonState) representing the relative location of the cursor in the widget.


getDefaultHeight()

Return the default height of this window.

Reimplemented in FX4Splitter, FXArrowButton, FXCheckButton, FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDial, FXDockSite, FXDockTitle, FXDragCorner, FXFrame, FXGroupBox, FXHeader, FXHorizontalFrame, FXLabel, FXList, FXListBox, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMDIChild, FXMatrix, FXMenuButton, FXMenuCaption, FXMenuCommand, FXProgressBar, FXMenuSeparator, FXMenuTitle, FXOption, FXOptionMenu, FXPacker, FXPopup, FXRadioButton, FXRootWindow, FXScrollArea, FXScrollbar, FXHorizontalSeparator, FXVerticalSeparator, FXSlider, FXSpinner, FXSplitter, FXStatusbar, FXStatusline, FXSwitcher, FXTabBar, FXTabBook, FXTable, FXText, FXTextField, FXToggleButton, FXToolbar, FXToolbarGrip, FXToolbarShell, FXToolbarTab, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, FXVerticalFrame, AFXMainWindow, AFXToolbarGroup, AFXBaseTable, AFXList, AFXOptionTreeList, AFXPrimFloatSpinner, AFXProgressBar, AFXSlider, AFXTable, AFXTreeTable, and AFXVerticalAligner.


getDefaultWidth()

Return the default width of this window.

Reimplemented in FX4Splitter, FXArrowButton, FXCheckButton, FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDial, FXDockSite, FXDockTitle, FXDragCorner, FXFrame, FXGroupBox, FXHeader, FXHorizontalFrame, FXLabel, FXList, FXListBox, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMDIChild, FXMatrix, FXMenuButton, FXMenuCaption, FXMenuCommand, FXProgressBar, FXMenuSeparator, FXMenuTitle, FXOption, FXOptionMenu, FXPacker, FXPopup, FXRadioButton, FXRootWindow, FXScrollArea, FXScrollbar, FXHorizontalSeparator, FXVerticalSeparator, FXSlider, FXSpinner, FXSplitter, FXStatusbar, FXStatusline, FXSwitcher, FXTabBar, FXTabBook, FXTable, FXText, FXTextField, FXToggleButton, FXToolbar, FXToolbarGrip, FXToolbarShell, FXToolbarTab, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, FXVerticalFrame, AFXMainWindow, AFXToolbarGroup, AFXBaseTable, AFXOptionTreeItem, AFXOptionTreeList, AFXPrimFloatSpinner, AFXProgressBar, AFXSlider, AFXTable, AFXTextField, AFXTreeTable, and AFXVerticalAligner.


getFirst()

Return a pointer to this window's first child window , if any.

Reimplemented in AFXOptionTreeItem.


getHeightForWidth(givenwidth)

Return height for given width.

Reimplemented in FXDockSite.

ArgumentTypeDefaultDescription
givenwidthInt  


getKey()

Return window key.


getLast()

Return a pointer to this window's last child window, if any.

Reimplemented in AFXOptionTreeItem.


getLayoutHints()

Get layout hints for this window.


getNext()

Return a pointer to the next (sibling) window, if any.

Reimplemented in AFXOptionTreeItem.


getOwner()

Return a pointer to the owner window.

Reimplemented in AFXMenuCascade, AFXMenuCommand, AFXMenuPane, AFXMenuTitle, AFXToolbarGroup, and AFXToolboxGroup.


getParent()

Return a pointer to the parent window.

Reimplemented in AFXOptionTreeItem.


getPrev()

Return a pointer to the previous (sibling) window , if any.

Reimplemented in AFXOptionTreeItem.


getRoot()

Return a pointer to the root window.


getSelector()

Get the message identifier for this window.


getShell()

Return a pointer to the shell window.


getTarget()

Get the message target object for this window, if any.


getWidthForHeight(givenheight)

Return width for given height.

Reimplemented in FXDockSite.

ArgumentTypeDefaultDescription
givenheightInt  


getX()

Get this window's x-coordinate, in the parent's coordinate system.


getY()

Get this window's y-coordinate, in the parent's coordinate system.


grab(confineTo=None)

Grab the mouse to this window; future mouse events will be reported to this window even while the cursor goes outside of this window

ArgumentTypeDefaultDescription
confineToFXWindowNone 


grabbed()

Return True if the window has been grabbed.


hasFocus()

Return True if this window has the focus.


hide()

Hide this window.

Reimplemented in FXTopWindow, AFXManagerMenuDB, AFXMenuTitle, AFXToolbarGroup, AFXToolbarGroupRender, AFXToolbarGroupVisibility, AFXDialog, AFXFlyoutItem, AFXMessageDialog, AFXOptionTreeItem, and AFXProgressBar.


indexOfChild(window)

Return the index (starting from zero) of the specified child window, or -1 if the window is not a child or NULL

ArgumentTypeDefaultDescription
windowFXWindow  


isActive()

Return True if the window is active.

Reimplemented in AFXToolbarGroup.


isChildOf(window)

Return True if specified window is this window's parent.

ArgumentTypeDefaultDescription
windowFXWindow  


isDefault()

Return True if this is the default window.


isEnabled()

Return True if this window is able to receive mouse and keyboard events.


isInitial()

Return True if this is the initial default window.


linkAfter(sibling)

Relink this window after sibling in the window list.

ArgumentTypeDefaultDescription
siblingFXWindow  


linkBefore(sibling)

Relink this window before sibling in the window list.

ArgumentTypeDefaultDescription
siblingFXWindow  


move(x, y)

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

Reimplemented in FXMDIChild, FXRootWindow, and FXTopWindow.

ArgumentTypeDefaultDescription
xInt  
yInt  


numChildren()

Return the number of child windows for this window.

Reimplemented in AFXOptionTreeItem.


position(x, y, w, h)

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

Reimplemented in FXIconList, FXMDIChild, FXRootWindow, FXText, and FXTopWindow.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  


recalc()

Mark this window's layout as dirty.

Reimplemented in FXIconList, FXList, FXMDIClient, FXRootWindow, FXShell, FXTable, FXText, FXTreeList, AFXBaseTable, AFXSlider, and AFXTable.


repaint()

If marked but not yet painted, paint the entire window.


repaint(x, y, w, h)

If marked but not yet painted, paint the given area.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  


resize(w, h)

Resize this window to the specified width and height.

Reimplemented from FXDrawable.

Reimplemented in FXIconList, FXMDIChild, FXRootWindow, FXText, and FXTopWindow.

ArgumentTypeDefaultDescription
wInt  
hInt  


setBackColor(clr)

Set window background color.

Reimplemented in FXComboBox, and FXListBox.

ArgumentTypeDefaultDescription
clrFXColor  


setCursorPosition(x, y)

Warp the cursor to the new position.

ArgumentTypeDefaultDescription
xInt  
yInt  


setFocus()

Move the focus to this window.

Reimplemented in FXButton, FXColorWell, FXIconList, FXList, FXMenuCascade, FXMenuCommand, FXMenuTitle, FXOption, FXPopup, FXRootWindow, FXShell, FXTable, FXText, FXTextField, FXTopWindow, FXTreeList, AFXBaseTable, AFXFlyoutItem, and AFXTextField.


setHeight(h)

Set the window height.

ArgumentTypeDefaultDescription
hInt  


setInitial(enable=True)

Make this window the initial default window.

ArgumentTypeDefaultDescription
enableBoolTrue 


setKey(k)

Change window key.

ArgumentTypeDefaultDescription
kInt  


setLayoutHints(lout)

Set layout hints for this window.

ArgumentTypeDefaultDescription
loutInt  


setSelector(sel)

Set the message identifier for this window.

ArgumentTypeDefaultDescription
selInt  


setTarget(t)

Set the message target object for this window.

ArgumentTypeDefaultDescription
tFXObject  


setWidth(w)

Set the window width.

ArgumentTypeDefaultDescription
wInt  


setX(x)

Set this window's x-coordinate, in the parent's coordinate system.

ArgumentTypeDefaultDescription
xInt  


setY(y)

Set this window's y-coordinate, in the parent's coordinate system.

ArgumentTypeDefaultDescription
yInt  


show()

Show this window.

Reimplemented in FXTooltip, FXTopWindow, AFXMenuTitle, AFXToolbarGroup, AFXToolbarGroupRender, AFXToolbarGroupVisibility, AFXDialog, AFXFileDialog, AFXMessageDialog, AFXOptionTreeItem, AFXProgressBar, and AFXSlider.


shown()

Return True if the window is shown.


translateCoordinatesTo(tox, toy, towindow, fromx, fromy)

Translate coordinates from this window's coordinate space to towindow's coordinate space.

ArgumentTypeDefaultDescription
toxInt  
toyInt  
towindowFXWindow  
fromxInt  
fromyInt  


ungrab()

Release the mouse grab.


update()

Mark the entire window client area dirty.


update(x, y, w, h)

Mark the specified rectangle dirty, i.e. to be repainted.

ArgumentTypeDefaultDescription
xInt  
yInt  
wInt  
hInt  


Global flags

Layout hints for child widgets

LAYOUT_NORMAL

Default layout mode.

LAYOUT_SIDE_TOP

Pack on top side (default).

LAYOUT_SIDE_BOTTOM

Pack on bottom side.

LAYOUT_SIDE_LEFT

Pack on left side.

LAYOUT_SIDE_RIGHT

Pack on right side.

LAYOUT_FILL_COLUMN

Matrix column is stretchable.

LAYOUT_FILL_ROW

Matrix row is stretchable.

LAYOUT_LEFT

Stick on left (default).

LAYOUT_RIGHT

Stick on right.

LAYOUT_CENTER_X

Center horizontally.

LAYOUT_FIX_X

X fixed.

LAYOUT_TOP

Stick on top (default).

LAYOUT_BOTTOM

Stick on bottom.

LAYOUT_CENTER_Y

Center vertically.

LAYOUT_FIX_Y

Y fixed CAE: Copied from FOX 1.4.34 to support dockable tool bars.

LAYOUT_DOCK_SAME

Dock on same galley if it fits.

LAYOUT_DOCK_NEXT

Dock on next galley LAYOUT_RESERVED_1 = 0x00000040, LAYOUT_RESERVED_2 = 0x00000080,

LAYOUT_RESERVED_1

CAE End.

LAYOUT_FIX_WIDTH

Width fixed.

LAYOUT_FIX_HEIGHT

height fixed

LAYOUT_MIN_WIDTH

Minimum width is the default.

LAYOUT_MIN_HEIGHT

Minimum height is the default.

LAYOUT_FILL_X

Stretch or shrink horizontally.

LAYOUT_FILL_Y

Stretch or shrink vertically.

LAYOUT_EXPLICIT

Explicit placement.

Frame border appearance styles (for subclasses)

FRAME_NONE

Default is no frame.

FRAME_SUNKEN

Sunken border.

FRAME_RAISED

Raised border.

FRAME_THICK

Thick border.

FRAME_GROOVE

A groove or etched-in border.

FRAME_RIDGE

A ridge or embossed border.

FRAME_LINE

Simple line border.

FRAME_NORMAL

Regular raised/thick border.

Packing style (for packers)

PACK_NORMAL

Default is each its own size.

PACK_UNIFORM_HEIGHT

Uniform height.

PACK_UNIFORM_WIDTH

Uniform width.

BackgroundStyle

BACKGROUND_NORMAL

Default.

BACKGROUND_H_GRADIENT

Horizontal gradient background.

BACKGROUND_V_GRADIENT

Vertical gradient background.

BACKGROUND_PLAIN

plain background