2
0
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:
Jack Andersen
2015-12-04 14:42:46 -10:00
parent 382016d4d7
commit 857615ab00
17 changed files with 709 additions and 112 deletions

View File

@@ -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;
};