Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXTopWindow.h>
Inheritance diagram for FX::FXTopWindow:
Public Types | |
enum | { ID_MAXIMIZE = FXShell::ID_LAST, ID_MINIMIZE, ID_RESTORE, ID_CLOSE, ID_QUERY_DOCK, ID_LAST } |
Public Member Functions | |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | layout () |
virtual void | setFocus () |
virtual void | killFocus () |
virtual void | show () |
virtual void | hide () |
virtual void | show (FXuint placement) |
void | place (FXuint placement) |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
FXbool | getWMBorders (FXint &left, FXint &right, FXint &top, FXint &bottom) |
virtual void | raise () |
virtual void | move (FXint x, FXint y) |
virtual void | resize (FXint w, FXint h) |
virtual void | position (FXint x, FXint y, FXint w, FXint h) |
virtual FXbool | maximize (FXbool notify=FALSE) |
virtual FXbool | minimize (FXbool notify=FALSE) |
virtual FXbool | restore (FXbool notify=FALSE) |
virtual FXbool | close (FXbool notify=FALSE) |
FXbool | isMaximized () const |
FXbool | isMinimized () const |
void | setTitle (const FXString &name) |
FXString | getTitle () const |
void | setPadTop (FXint pt) |
FXint | getPadTop () const |
void | setPadBottom (FXint pb) |
FXint | getPadBottom () const |
void | setPadLeft (FXint pl) |
FXint | getPadLeft () const |
void | setPadRight (FXint pr) |
FXint | getPadRight () const |
FXint | getHSpacing () const |
FXint | getVSpacing () const |
void | setHSpacing (FXint hs) |
void | setVSpacing (FXint vs) |
void | setPackingHints (FXuint ph) |
FXuint | getPackingHints () const |
void | setDecorations (FXuint decorations) |
FXuint | getDecorations () const |
FXIcon * | getIcon () const |
void | setIcon (FXIcon *ic) |
FXIcon * | getMiniIcon () const |
void | setMiniIcon (FXIcon *ic) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXTopWindow () |
TopWindows are usually managed by a Window Manager under X11 and therefore borders and window-menus and other decorations like resize- handles are subject to the Window Manager's interpretation of the decoration hints. When a TopWindow is closed, it sends a SEL_CLOSE message to its target. The target should return 0 in response to this message if there is no objection to proceed with the closing of the window, and return 1 otherwise. After the SEL_CLOSE message has been sent and no objection was raised, the window will delete itself. When the session is closed, the window will send a SEL_SESSION_NOTIFY message to its target, allowing the application to write any unsaved data to the disk. If the target returns 0, then the system will proceed to close the session. Subsequently a SEL_SESSION_CLOSED will be received which causes the window to be closed with prejudice by calling the function close(FALSE). When receiving a SEL_UPDATE, the target can update the title string of the window, so that the title of the window reflects the name of the document, for example. For convenience, TopWindow provides the same layout behavior as the Packer widget, as well as docking and undocking of toolbars. TopWindows can be owned by other windows, or be free-floating. Owned TopWindows will usually remain stacked on top of the owner windows. The lifetime of an owned window should not exceed that of the owner.
See also:
|
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXShell. Reimplemented in FX::FXMainWindow, FX::FXPrintDialog, FX::FXSplashWindow, and FX::FXToolBarShell. |
|
Detach the server-side resources for this window.
Reimplemented from FX::FXComposite. Reimplemented in FX::FXSplashWindow. |
|
Destroy the server-side resources for this window.
Reimplemented from FX::FXComposite. |
|
Perform layout.
Reimplemented from FX::FXComposite. Reimplemented in FX::FXToolBarShell. |
|
Move the focus to this window.
Reimplemented from FX::FXShell. |
|
Remove the focus from this window.
Reimplemented from FX::FXShell. |
|
Show this window.
Reimplemented from FX::FXWindow. Reimplemented in FX::FXSplashWindow. |
|
Hide this window.
Reimplemented from FX::FXWindow. Reimplemented in FX::FXDirDialog, FX::FXFileDialog, and FX::FXSplashWindow. |
|
Show this window with given placement.
Reimplemented in FX::FXSplashWindow. |
|
Position the window based on placement.
|
|
Return the default width of this window.
Reimplemented from FX::FXComposite. Reimplemented in FX::FXSplashWindow, and FX::FXToolBarShell. |
|
Return the default height of this window.
Reimplemented from FX::FXComposite. Reimplemented in FX::FXSplashWindow, and FX::FXToolBarShell. |
|
Obtain border sizes added to our window by the window manager.
|
|
Raise this window to the top of the stacking order.
Reimplemented from FX::FXWindow. |
|
Move this window to the specified position in the parent's coordinates.
Reimplemented from FX::FXWindow. |
|
Resize this window to the specified width and height.
Reimplemented from FX::FXWindow. |
|
Move and resize this window in the parent's coordinates.
Reimplemented from FX::FXWindow. |
|
Maximize window, return TRUE if maximized.
|
|
Minimize or iconify window, return TRUE if minimized.
|
|
Restore window to normal, return TRUE if restored.
|
|
Close the window, return TRUE if actually closed. If notify=TRUE, the target will receive a SEL_CLOSE message to determine if it is OK to close the window. If the target ignores the SEL_CLOSE message or returns 0, the window will be closed, and subsequently deleted. When the last main window has been closed, the application will receive an ID_QUIT message and will be closed. |
|
Return TRUE if maximized.
|
|
Return TRUE if minimized.
|
|
Change window title.
|
|
Return window title.
|
|
Change top padding.
|
|
Get top interior padding.
|
|
Change bottom padding.
|
|
Get bottom interior padding.
|
|
Change left padding.
|
|
Get left interior padding.
|
|
Change right padding.
|
|
Get right interior padding.
|
|
Return horizontal spacing between children.
|
|
Return vertical spacing between children.
|
|
Change horizontal spacing between children.
|
|
Change vertical spacing between children.
|
|
Change packing hints for children.
|
|
Return packing hints for children.
|
|
Change title and border decorations.
|
|
Return current title and border decorations.
|
|
Return window icon.
Reimplemented in FX::FXSplashWindow. |
|
Change window icon.
Reimplemented in FX::FXSplashWindow. |
|
Return window mini (title) icon.
|
|
Change window mini (title) icon.
|
|
Save to stream.
Reimplemented from FX::FXWindow. Reimplemented in FX::FXChoiceBox, FX::FXColorDialog, FX::FXDirDialog, FX::FXFileDialog, FX::FXFontDialog, FX::FXPrintDialog, FX::FXReplaceDialog, FX::FXSplashWindow, FX::FXToolBarShell, and FX::FXWizard. |
|
Load from stream.
Reimplemented from FX::FXWindow. Reimplemented in FX::FXChoiceBox, FX::FXColorDialog, FX::FXDirDialog, FX::FXFileDialog, FX::FXFontDialog, FX::FXPrintDialog, FX::FXReplaceDialog, FX::FXSplashWindow, FX::FXToolBarShell, and FX::FXWizard. |
Copyright © 1997-2005 Jeroen van der Zijp |