![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXImageFrame.h>
Public Member Functions | |
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) | |
virtual void | create () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setImage (FXImage *img) |
FXImage * | getImage () const |
void | setJustify (FXuint mode) |
FXuint | getJustify () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXImageFrame () |
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.
FX::FXImageFrame::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 FX::FXImageFrame::~FXImageFrame | ( | ) | [virtual] |
Destroy the widget, but do not destroy the image.
virtual void FX::FXImageFrame::create | ( | ) | [virtual] |
Create window.
Reimplemented from FX::FXWindow.
virtual FXint FX::FXImageFrame::getDefaultWidth | ( | ) | [virtual] |
Get default width.
Reimplemented from FX::FXFrame.
virtual FXint FX::FXImageFrame::getDefaultHeight | ( | ) | [virtual] |
Get default height.
Reimplemented from FX::FXFrame.
void FX::FXImageFrame::setImage | ( | FXImage * | img | ) |
Change the image being displayed.
FXImage* FX::FXImageFrame::getImage | ( | ) | const [inline] |
Return the current image.
void FX::FXImageFrame::setJustify | ( | FXuint | mode | ) |
Set the current justification mode.
FXuint FX::FXImageFrame::getJustify | ( | ) | const |
Get the current justification mode.
virtual void FX::FXImageFrame::save | ( | FXStream & | store | ) | const [virtual] |
Save to stream.
Reimplemented from FX::FXFrame.
virtual void FX::FXImageFrame::load | ( | FXStream & | store | ) | [virtual] |
Load from stream.
Reimplemented from FX::FXFrame.
![]() |