Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXTopWindow Class Reference

Abstract base class for all top-level windows.

#include <FXTopWindow.h>

Inheritance diagram for FXTopWindow:

FXShell FXComposite FXWindow FXDrawable FXId FXObject FXDialogBox FXMainWindow FXToolbarShell FXColorDialog FXDirDialog FXFileDialog FXFontDialog FXInputDialog FXMessageBox FXPrintDialog FXProgressDialog FXReplaceDialog List of all members.

Public Types

enum  {
  ID_ICONIFY = FXShell::ID_LAST,
  ID_DEICONIFY,
  ID_QUERY_DOCK,
  ID_LAST
}

Public Methods

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach the server-side resources for this window.

virtual void setFocus ()
 Move the focus to this window.

virtual void killFocus ()
 Remove the focus from this window.

virtual void show ()
 Show this window.

virtual void hide ()
 Hide this window.

virtual void show (FXuint placement)
 Show this window with given placement.

void place (FXuint placement)
 Position the window based on placement.

virtual FXint getDefaultWidth ()
 Return the default width of this window.

virtual FXint getDefaultHeight ()
 Return the default height of this window.

virtual void move (FXint x, FXint y)
 Move this window to the specified position in the parent's coordinates.

virtual void resize (FXint w, FXint h)
 Resize this window to the specified width and height.

virtual void position (FXint x, FXint y, FXint w, FXint h)
 Move and resize this window in the parent's coordinates.

virtual void iconify ()
 Iconify window.

virtual void deiconify ()
 Deiconify window.

FXbool isIconified () const
 Return TRUE if window has been iconified.

void setTitle (const FXString &name)
 Change window title.

void setPadTop (FXint pt)
 Change top padding.

FXint getPadTop () const
 Get top interior padding.

void setPadBottom (FXint pb)
 Change bottom padding.

FXint getPadBottom () const
 Get bottom interior padding.

void setPadLeft (FXint pl)
 Change left padding.

FXint getPadLeft () const
 Get left interior padding.

void setPadRight (FXint pr)
 Change right padding.

FXint getPadRight () const
 Get right interior padding.

FXint getHSpacing () const
 Return horizontal spacing between children.

FXint getVSpacing () const
 Return vertical spacing between children.

void setHSpacing (FXint hs)
 Change horizontal spacing between children.

void setVSpacing (FXint vs)
 Change vertical spacing between children.

void setPackingHints (FXuint ph)
 Change packing hints for children.

FXuint getPackingHints () const
 Return packing hints for children.

void setDecorations (FXuint decorations)
 Change title and border decorations.

FXuint getDecorations () const
 Return current title and border decorations.

FXIcongetIcon () const
 Return window icon.

void setIcon (FXIcon *ic)
 Change window icon.

FXIcongetMiniIcon () const
 Return window mini (title) icon.

void setMiniIcon (FXIcon *ic)
 Change window mini (title) icon.

virtual void save (FXStream &store) const
 Save to stream.

virtual void load (FXStream &store)
 Load from stream.

virtual ~FXTopWindow ()
 Destructor.


Public Attributes

FXString getTitle () const
 Return window title.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_ICONIFY  Iconify the window.
ID_DEICONIFY  Deiconify the window.
ID_QUERY_DOCK  Toolbar asks to dock.