FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
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

◆ GuiImage() [1/2]

FIFE::GuiImage::GuiImage ( )

Definition at line 39 of file gui_image.cpp.

◆ GuiImage() [2/2]

FIFE::GuiImage::GuiImage ( ImagePtr  img)

Definition at line 42 of file gui_image.cpp.

◆ ~GuiImage()

FIFE::GuiImage::~GuiImage ( )

Definition at line 46 of file gui_image.cpp.

Member Function Documentation

◆ convertToDisplayFormat()

void FIFE::GuiImage::convertToDisplayFormat ( )

Definition at line 74 of file gui_image.cpp.

◆ free()

◆ getFIFEImage()

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:

◆ getHeight()

int32_t FIFE::GuiImage::getHeight ( ) const

Definition at line 59 of file gui_image.cpp.

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

◆ getPixel()

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.

◆ getWidth()

int32_t FIFE::GuiImage::getWidth ( ) const

Definition at line 53 of file gui_image.cpp.

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

◆ putPixel()

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

◆ m_imgPtr

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: