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

FX::FXImageFrame Class Reference

#include <FXImageFrame.h>

Inheritance diagram for FX::FXImageFrame:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Methods

 FXImageFrame (FXComposite *p, FXImage *img, FXuint opts=FRAME_SUNKEN|FRAME_THICK, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=0, FXint pr=0, FXint pt=0, FXint pb=0)
 Construct image frame and pass it an image.

virtual void create ()
 Create window.

virtual FXint getDefaultWidth ()
 Get default width.

virtual FXint getDefaultHeight ()
 Get default height.

void setImage (FXImage *img)
 Change the image being displayed.

FXImagegetImage () const
 Return the current image.

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

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

virtual ~FXImageFrame ()
 Destroy the widget, but do not destroy the image.


Detailed Description

The image frame is a simple frame widget displaying an image; the image is not owned by the image frame so it must be explicitly deleted elsewhere.