FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::SdlGuiGraphics Class Reference

Overrides Fifechan Graphics to enable usage of normal fife images & related facilities. More...

#include <sdl_gui_graphics.h>

Inherits SDLGraphics.

+ Collaboration diagram for FIFE::SdlGuiGraphics:

Public Member Functions

 SdlGuiGraphics ()
 Constructor. More...
 
void updateTarget ()
 
virtual void drawImage (const fcn::Image *image, int32_t srcX, int32_t srcY, int32_t dstX, int32_t dstY, int32_t width, int32_t height)
 
virtual void drawText (const std::string &text, int32_t x, int32_t y, uint32_t alignment)
 
virtual void drawPoint (int32_t x, int32_t y)
 
virtual void drawLine (int32_t x1, int32_t y1, int32_t x2, int32_t y2)
 
virtual void drawLine (int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t width)
 
virtual void drawPolyLine (const fcn::PointVector &points, uint32_t width)
 
virtual void drawBezier (const fcn::PointVector &points, int32_t steps, uint32_t width)
 
virtual void drawRectangle (const fcn::Rectangle &rectangle)
 
virtual void fillRectangle (const fcn::Rectangle &rectangle)
 
virtual void drawCircle (const fcn::Point &p, uint32_t radius)
 
virtual void drawFillCircle (const fcn::Point &p, uint32_t radius)
 
virtual void drawCircleSegment (const fcn::Point &p, uint32_t radius, int32_t sangle, int32_t eangle)
 
virtual void drawFillCircleSegment (const fcn::Point &p, uint32_t radius, int32_t sangle, int32_t eangle)
 
virtual void _beginDraw ()
 
virtual void _endDraw ()
 
virtual bool pushClipArea (fcn::Rectangle area)
 
virtual void popClipArea ()
 
virtual void setColor (const fcn::Color &color)
 

Private Attributes

RenderBackendm_renderbackend
 

Detailed Description

Overrides Fifechan Graphics to enable usage of normal fife images & related facilities.

Definition at line 39 of file sdl_gui_graphics.h.

Constructor & Destructor Documentation

FIFE::SdlGuiGraphics::SdlGuiGraphics ( )

Member Function Documentation

void FIFE::SdlGuiGraphics::_beginDraw ( )
virtual

Definition at line 159 of file sdl_gui_graphics.cpp.

References m_renderbackend, and FIFE::RenderBackend::pushClipArea().

void FIFE::SdlGuiGraphics::_endDraw ( )
virtual

Definition at line 165 of file sdl_gui_graphics.cpp.

References m_renderbackend, and FIFE::RenderBackend::popClipArea().

void FIFE::SdlGuiGraphics::drawBezier ( const fcn::PointVector &  points,
int32_t  steps,
uint32_t  width 
)
virtual

Definition at line 113 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawBezier(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawCircle ( const fcn::Point &  p,
uint32_t  radius 
)
virtual

Definition at line 139 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawCircle(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawCircleSegment ( const fcn::Point &  p,
uint32_t  radius,
int32_t  sangle,
int32_t  eangle 
)
virtual
void FIFE::SdlGuiGraphics::drawFillCircle ( const fcn::Point &  p,
uint32_t  radius 
)
virtual

Definition at line 144 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawFillCircle(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawFillCircleSegment ( const fcn::Point &  p,
uint32_t  radius,
int32_t  sangle,
int32_t  eangle 
)
virtual
void FIFE::SdlGuiGraphics::drawImage ( const fcn::Image *  image,
int32_t  srcX,
int32_t  srcY,
int32_t  dstX,
int32_t  dstY,
int32_t  width,
int32_t  height 
)
virtual
void FIFE::SdlGuiGraphics::drawLine ( int32_t  x1,
int32_t  y1,
int32_t  x2,
int32_t  y2 
)
virtual

Definition at line 93 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawLine(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawLine ( int32_t  x1,
int32_t  y1,
int32_t  x2,
int32_t  y2,
uint32_t  width 
)
virtual

Definition at line 98 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawThickLine(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawPoint ( int32_t  x,
int32_t  y 
)
virtual

Definition at line 87 of file sdl_gui_graphics.cpp.

References m_renderbackend, and FIFE::RenderBackend::putPixel().

void FIFE::SdlGuiGraphics::drawPolyLine ( const fcn::PointVector &  points,
uint32_t  width 
)
virtual

Definition at line 103 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawPolyLine(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawRectangle ( const fcn::Rectangle &  rectangle)
virtual

Definition at line 123 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::drawRectangle(), and m_renderbackend.

void FIFE::SdlGuiGraphics::drawText ( const std::string &  text,
int32_t  x,
int32_t  y,
uint32_t  alignment 
)
virtual

Definition at line 64 of file sdl_gui_graphics.cpp.

References FIFE::_log, and FL_WARN.

void FIFE::SdlGuiGraphics::fillRectangle ( const fcn::Rectangle &  rectangle)
virtual

Definition at line 131 of file sdl_gui_graphics.cpp.

References FIFE::RenderBackend::fillRectangle(), and m_renderbackend.

void FIFE::SdlGuiGraphics::popClipArea ( )
virtual

Definition at line 185 of file sdl_gui_graphics.cpp.

References m_renderbackend, and FIFE::RenderBackend::popClipArea().

bool FIFE::SdlGuiGraphics::pushClipArea ( fcn::Rectangle  area)
virtual

Definition at line 171 of file sdl_gui_graphics.cpp.

References m_renderbackend, and FIFE::RenderBackend::pushClipArea().

void FIFE::SdlGuiGraphics::setColor ( const fcn::Color &  color)
virtual

Definition at line 190 of file sdl_gui_graphics.cpp.

void FIFE::SdlGuiGraphics::updateTarget ( )

Member Data Documentation


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