~linaro-graphics-wg/nux/nux-gles2

« back to all changes in this revision

Viewing changes to Nux/StaticTextBox.h

  • Committer: Jay Taoko
  • Date: 2011-10-17 21:23:50 UTC
  • Revision ID: jay.taoko@canonical.com-20111017212350-020iwa25r3phkl8j
* Replaced TCHAR with char in Nux

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  {
33
33
    NUX_DECLARE_OBJECT_TYPE(StaticTextBox, View);
34
34
  public:
35
 
    StaticTextBox(const TCHAR *Caption, NUX_FILE_LINE_PROTO);
 
35
    StaticTextBox(const char *Caption, NUX_FILE_LINE_PROTO);
36
36
    ~StaticTextBox();
37
37
    virtual void Draw(GraphicsEngine &graphics_engine, bool force_draw);
38
38
    virtual void DrawContent(GraphicsEngine &graphics_engine, bool force_draw);
39
39
    virtual void PostDraw(GraphicsEngine &graphics_engine, bool force_draw);
40
40
 
41
41
    // API
42
 
    void SetText(const TCHAR &Caption);
43
 
    void SetText(const TCHAR *Caption);
 
42
    void SetText(const char &Caption);
 
43
    void SetText(const char *Caption);
44
44
    void SetText(const tstring &Caption);
45
45
    void SetText(const NString &Caption);
46
 
    const TCHAR *GetText() const;
 
46
    const char *GetText() const;
47
47
    t_u32 GetTextSize() const
48
48
    {
49
49
      return (t_u32) m_Text.Length();