mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-15 23:37:02 +00:00
Button widget and mouse events
This commit is contained in:
@@ -20,6 +20,7 @@ class TextView : public View
|
||||
boo::IShaderDataBinding* m_shaderBinding;
|
||||
const FontAtlas& m_fontAtlas;
|
||||
bool m_valid = false;
|
||||
int m_width = 0;
|
||||
|
||||
public:
|
||||
class Resources
|
||||
@@ -64,8 +65,12 @@ public:
|
||||
void colorGlyphsTypeOn(const Zeus::CColor& newColor, float startInterval=0.2, float fadeTime=0.5);
|
||||
void think();
|
||||
|
||||
void resized(const boo::SWindowRect &rootView, const boo::SWindowRect& sub);
|
||||
void draw(boo::IGraphicsCommandQueue* gfxQ);
|
||||
|
||||
int nominalWidth() const {return m_width;}
|
||||
int nominalHeight() const {return m_fontAtlas.FT_LineHeight() >> 6;}
|
||||
|
||||
private:
|
||||
std::vector<RenderGlyph> m_glyphs;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user