class ffw::GuiBackend

Class List > ffw :: GuiBackend

Inherited by the following classes: ffw::GuiWindow

Public Functions

Type Name
virtual void resize (int width, int height) = 0
virtual void startRender () = 0
virtual void endRender () = 0
virtual void setScissors (const ffw::Pointf & pos, const ffw::Pointf & size) const = 0
virtual void clearWithColor (const ffw::Color & color, const ffw::Pointf & pos, const ffw::Pointf & size) const = 0
virtual void drawRectangle (const ffw::Pointf & pos, const ffw::Pointf & size, const ffw::Color & color) const = 0
virtual void drawRectangleRounded (const ffw::Pointf & pos, const ffw::Pointf & size, const ffw::Color & color, float tl, float tr, float br, float bl) const = 0
virtual void drawLine (const ffw::Pointf & start, const ffw::Pointf & end, const ffw::Color & color, float width = 1.0f) const = 0
virtual void drawCircle (const ffw::Pointf & pos, float radius, const ffw::Color & color) const = 0
virtual void drawArc (const ffw::Pointf & pos, float inner, float outer, float start, float end, const ffw::Color & color) const = 0
virtual void drawQuad (const ffw::Pointf & p0, const ffw::Pointf & p1, const ffw::Pointf & p2, const ffw::Pointf & p3, const ffw::Color & color) const = 0
virtual void drawString (const ffw::Pointf & pos, const ffw::GuiFont * font, const std::string::value_type * str, size_t length, const ffw::Color & color, float lineHeight = 1.25f) const = 0
virtual void drawTriangle (const ffw::Pointf & p0, const ffw::Pointf & p1, const ffw::Pointf & p2, const ffw::Color & color) const = 0
virtual void drawImage (const ffw::Pointf & pos, const ffw::Pointf & size, const GuiImage * image, const ffw::Recti & sub, bool mirrorX, bool mirrorY, const ffw::Color & color) const = 0
virtual void drawBackground (const ffw::Pointf & pos, const ffw::Pointf & size, const ffw::GuiStyle::Background & background, bool ignore = false) const = 0
virtual void drawBorder (const ffw::Pointf & pos, const ffw::Pointf & size, const ffw::GuiStyle::Border & border) const = 0
virtual void drawStringAligned (const ffw::Pointf & pos, const ffw::Pointf & size, const ffw::GuiFont * font, ffw::GuiAlign align, const std::string & str, const ffw::GuiStyle::Text & text, float lineHeight = 1.25f) const

Public Functions Documentation

function resize

virtual void ffw::GuiBackend::resize (
    int width,
    int height
) = 0

function startRender

virtual void ffw::GuiBackend::startRender () = 0

function endRender

virtual void ffw::GuiBackend::endRender () = 0

function setScissors

virtual void ffw::GuiBackend::setScissors (
    const ffw::Pointf & pos,
    const ffw::Pointf & size
) const = 0

function clearWithColor

virtual void ffw::GuiBackend::clearWithColor (
    const ffw::Color & color,
    const ffw::Pointf & pos,
    const ffw::Pointf & size
) const = 0

function drawRectangle

virtual void ffw::GuiBackend::drawRectangle (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const ffw::Color & color
) const = 0

function drawRectangleRounded

virtual void ffw::GuiBackend::drawRectangleRounded (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const ffw::Color & color,
    float tl,
    float tr,
    float br,
    float bl
) const = 0

function drawLine

virtual void ffw::GuiBackend::drawLine (
    const ffw::Pointf & start,
    const ffw::Pointf & end,
    const ffw::Color & color,
    float width = 1.0f
) const = 0

function drawCircle

virtual void ffw::GuiBackend::drawCircle (
    const ffw::Pointf & pos,
    float radius,
    const ffw::Color & color
) const = 0

function drawArc

virtual void ffw::GuiBackend::drawArc (
    const ffw::Pointf & pos,
    float inner,
    float outer,
    float start,
    float end,
    const ffw::Color & color
) const = 0

function drawQuad

virtual void ffw::GuiBackend::drawQuad (
    const ffw::Pointf & p0,
    const ffw::Pointf & p1,
    const ffw::Pointf & p2,
    const ffw::Pointf & p3,
    const ffw::Color & color
) const = 0

function drawString

virtual void ffw::GuiBackend::drawString (
    const ffw::Pointf & pos,
    const ffw::GuiFont * font,
    const std::string::value_type * str,
    size_t length,
    const ffw::Color & color,
    float lineHeight = 1.25f
) const = 0

function drawTriangle

virtual void ffw::GuiBackend::drawTriangle (
    const ffw::Pointf & p0,
    const ffw::Pointf & p1,
    const ffw::Pointf & p2,
    const ffw::Color & color
) const = 0

function drawImage

virtual void ffw::GuiBackend::drawImage (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const GuiImage * image,
    const ffw::Recti & sub,
    bool mirrorX,
    bool mirrorY,
    const ffw::Color & color
) const = 0

function drawBackground

virtual void ffw::GuiBackend::drawBackground (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const ffw::GuiStyle::Background & background,
    bool ignore = false
) const = 0

function drawBorder

virtual void ffw::GuiBackend::drawBorder (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const ffw::GuiStyle::Border & border
) const = 0

function drawStringAligned

virtual void ffw::GuiBackend::drawStringAligned (
    const ffw::Pointf & pos,
    const ffw::Pointf & size,
    const ffw::GuiFont * font,
    ffw::GuiAlign align,
    const std::string & str,
    const ffw::GuiStyle::Text & text,
    float lineHeight = 1.25f
) const

The documentation for this class was generated from the following file: include/ffw/gui/guibackend.h