FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::GuiImage Class Reference

#include <gui_image.h>

Inherits Image.

+ Collaboration diagram for FIFE::GuiImage:

Public Member Functions

 GuiImage ()
 
 GuiImage (ImagePtr img)
 
 ~GuiImage ()
 
void free ()
 
int32_t getWidth () const
 
int32_t getHeight () const
 
fcn::Color getPixel (int32_t x, int32_t y)
 
void putPixel (int32_t x, int32_t y, const fcn::Color &color)
 
void convertToDisplayFormat ()
 
ImagePtr getFIFEImage () const
 

Protected Attributes

ImagePtr m_imgPtr
 

Detailed Description

Definition at line 41 of file gui_image.h.

Constructor & Destructor Documentation

FIFE::GuiImage::GuiImage ( )

Definition at line 39 of file gui_image.cpp.

FIFE::GuiImage::GuiImage ( ImagePtr  img)

Definition at line 42 of file gui_image.cpp.

FIFE::GuiImage::~GuiImage ( )

Definition at line 46 of file gui_image.cpp.

Member Function Documentation

void FIFE::GuiImage::convertToDisplayFormat ( )

Definition at line 74 of file gui_image.cpp.

ImagePtr FIFE::GuiImage::getFIFEImage ( ) const
inline

Definition at line 52 of file gui_image.h.

References m_imgPtr.

Referenced by FIFE::OpenGLGuiGraphics::drawImage(), and FIFE::SdlGuiGraphics::drawImage().

+ Here is the caller graph for this function:

int32_t FIFE::GuiImage::getHeight ( ) const

Definition at line 59 of file gui_image.cpp.

References FIFE::Image::getHeight(), and m_imgPtr.

fcn::Color FIFE::GuiImage::getPixel ( int32_t  x,
int32_t  y 
)

Definition at line 65 of file gui_image.cpp.

References FIFE::_log, and FL_PANIC.

int32_t FIFE::GuiImage::getWidth ( ) const

Definition at line 53 of file gui_image.cpp.

References FIFE::Image::getWidth(), and m_imgPtr.

void FIFE::GuiImage::putPixel ( int32_t  x,
int32_t  y,
const fcn::Color &  color 
)

Definition at line 70 of file gui_image.cpp.

References FIFE::_log, and FL_PANIC.

Member Data Documentation

ImagePtr FIFE::GuiImage::m_imgPtr
protected

Definition at line 54 of file gui_image.h.

Referenced by free(), getFIFEImage(), getHeight(), and getWidth().


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