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

FX::FXBitmapView Class Reference

The Bitmap View widget display a scrollable view of a monochrome bitmap image; the bitmap is not owned by the bitmap frame so it must be explicitly deleted elsewhere. More...

#include <FXBitmapView.h>

Inheritance diagram for FX::FXBitmapView:
FX::FXScrollArea FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Types

enum  { ID_XYZ = FXScrollArea::ID_LAST, ID_LAST }

Public Member Functions

long onPaint (FXObject *, FXSelector, void *)
long onMotion (FXObject *, FXSelector, void *)
long onRightBtnPress (FXObject *, FXSelector, void *)
long onRightBtnRelease (FXObject *, FXSelector, void *)
 FXBitmapView (FXComposite *p, FXBitmap *bmp=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct a scroll window.
virtual void create ()
 Create server-side resources.
virtual void detach ()
 Detach server-side resources.
virtual void layout ()
 Perform layout immediately.
virtual FXbool canFocus () const
 Image view widget can receive focus.
virtual FXint getContentWidth ()
 Return the width of the contents.
virtual FXint getContentHeight ()
 Return the height of the contents.
void setBitmap (FXBitmap *bmp)
 Change image.
FXBitmapgetBitmap () const
 Return 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 setAlignment (FXuint mode)
 Set the current alignment.
FXuint getAlignment () const
 Get the current alignment.
virtual void save (FXStream &store) const
 Save list to a stream.
virtual void load (FXStream &store)
 Load list from a stream.
virtual ~FXBitmapView ()
 Destroy.

Protected Attributes

FXBitmapbitmap
FXColor onColor
FXColor offColor
FXint grabx
FXint graby

Detailed Description

The Bitmap View widget display a scrollable view of a monochrome bitmap image; the bitmap is not owned by the bitmap frame so it must be explicitly deleted elsewhere.

Thus, a single bitmap image can be displayed inside multiple bitmap view widgets.


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

Copyright © 1997-2011 Jeroen van der Zijp