跳轉到

Class gridpp::Label

ClassList > gridpp > Label

使用像素座標繪製一行文字。

  • #include <Overlay.h>

Inherits the following classes: gridpp::Overlay

Public Functions

Type Name
virtual void Draw () override
每幀繪製時呼叫。
Label (std::string text, int x, int y, int font_size=20, Color color=BLACK)
void set_text (const std::string & text)

Public Functions inherited from gridpp::Overlay

See gridpp::Overlay

Type Name
virtual void Draw ()
每幀繪製時呼叫。
virtual void OnUpdate ()
每幀更新時呼叫。
virtual ~Overlay () = default

Public Functions Documentation

function Draw

每幀繪製時呼叫。

inline virtual void gridpp::Label::Draw () override

Implements gridpp::Overlay::Draw


function Label

inline gridpp::Label::Label (
    std::string text,
    int x,
    int y,
    int font_size=20,
    Color color=BLACK
) 

function set_text

inline void gridpp::Label::set_text (
    const std::string & text
) 


The documentation for this class was generated from the following file Overlay.h