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

FX::FXBitmapFrame Class Reference

The bitmap frame is a simple frame widget displaying an monochrome bitmap image; the bitmap is not owned by the bitmap 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

long onPaint (FXObject *, FXSelector, void *ptr)
 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 void create ()
 Create window.
virtual FXint getDefaultWidth ()
 Get default width.
virtual FXint getDefaultHeight ()
 Get default height.
void setBitmap (FXBitmap *bmp)
 Change the image being displayed.
FXBitmapgetBitmap () const
 Return the current image.
void setOnColor (FXColor clr)
 Set on color.
FXColor getOnColor () const
 Get on color.
void setOffColor (FXColor clr)
 Set off color.
FXColor getOffColor () const
 Get off color.
void setJustify (FXuint mode)
 Set the current justification mode.
FXuint getJustify () const
 Get the current justification mode.
virtual void save (FXStream &store) const
 Save to stream.
virtual void load (FXStream &store)
 Load from stream.
virtual ~FXBitmapFrame ()
 Destroy the widget, but do not destroy the image.

Protected Attributes

FXBitmapbitmap
FXColor onColor
FXColor offColor

Detailed Description

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


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp