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

FX::FXBitmapFrame Class Reference

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. More...

#include <FXBitmapFrame.h>

Inheritance diagram for FX::FXBitmapFrame:

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

Public Member Functions

 FXBitmapFrame (FXComposite *p, FXBitmap *bmp, 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)
virtual void create ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setBitmap (FXBitmap *bmp)
FXBitmapgetBitmap () const
void setOnColor (FXColor clr)
FXColor getOnColor () const
void setOffColor (FXColor clr)
FXColor getOffColor () const
void setJustify (FXuint mode)
FXuint getJustify () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXBitmapFrame ()

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.


Constructor & Destructor Documentation

FX::FXBitmapFrame::FXBitmapFrame FXComposite p,
FXBitmap bmp,
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 FX::FXBitmapFrame::~FXBitmapFrame  )  [virtual]
 

Destroy the widget, but do not destroy the image.


Member Function Documentation

virtual void FX::FXBitmapFrame::create  )  [virtual]
 

Create window.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXBitmapFrame::getDefaultWidth  )  [virtual]
 

Get default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXBitmapFrame::getDefaultHeight  )  [virtual]
 

Get default height.

Reimplemented from FX::FXFrame.

void FX::FXBitmapFrame::setBitmap FXBitmap bmp  ) 
 

Change the image being displayed.

FXBitmap* FX::FXBitmapFrame::getBitmap  )  const [inline]
 

Return the current image.

void FX::FXBitmapFrame::setOnColor FXColor  clr  ) 
 

Set on color.

FXColor FX::FXBitmapFrame::getOnColor  )  const [inline]
 

Get on color.

void FX::FXBitmapFrame::setOffColor FXColor  clr  ) 
 

Set off color.

FXColor FX::FXBitmapFrame::getOffColor  )  const [inline]
 

Get off color.

void FX::FXBitmapFrame::setJustify FXuint  mode  ) 
 

Set the current justification mode.

FXuint FX::FXBitmapFrame::getJustify  )  const
 

Get the current justification mode.

virtual void FX::FXBitmapFrame::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXFrame.

virtual void FX::FXBitmapFrame::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2004 Jeroen van der Zijp