This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9862 for ps


Ignore:
Timestamp:
07/17/11 19:30:07 (13 years ago)
Author:
philip
Message:

Fix "hides overloaded virtual function" warnings in Clang

Location:
ps/trunk/source/gui
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/gui/CButton.cpp

    r9362 r9862  
    117117
    118118    CColor color = ChooseColor();
    119     IGUITextOwner::Draw(0, color, m_TextPos, bz+0.1f);
     119    DrawText(0, color, m_TextPos, bz+0.1f);
    120120}
  • ps/trunk/source/gui/CCheckBox.cpp

    r9362 r9862  
    176176        text_pos.y += square_side/2.f - line_height/2.f;
    177177
    178     IGUITextOwner::Draw(0, color, text_pos, bz+0.1f, m_CachedActualSize);
     178    DrawText(0, color, text_pos, bz+0.1f, m_CachedActualSize);
    179179}
  • ps/trunk/source/gui/CDropDown.cpp

    r9340 r9862  
    338338
    339339        CPos pos(m_CachedActualSize.left, m_CachedActualSize.top);
    340         IGUITextOwner::Draw(selected, color, pos, bz+0.1f, cliparea);
     340        DrawText(selected, color, pos, bz+0.1f, cliparea);
    341341    }
    342342
  • ps/trunk/source/gui/CList.cpp

    r9362 r9862  
    402402            }
    403403
    404             IGUITextOwner::Draw(i, color, rect.TopLeft() - CPos(0.f, scroll - m_ItemsYPositions[i]),
    405                                 bz+0.1f, cliparea);
     404            DrawText(i, color, rect.TopLeft() - CPos(0.f, scroll - m_ItemsYPositions[i]), bz+0.1f, cliparea);
    406405        }
    407406    }
  • ps/trunk/source/gui/CText.cpp

    r9362 r9862  
    245245        GUI<CColor>::GetSetting(this, "textcolor", color);
    246246
    247         // Draw text
    248247        if (scrollbar)
    249             IGUITextOwner::Draw(0, color, m_CachedActualSize.TopLeft() - CPos(0.f, scroll), bz+0.1f, cliparea);
     248            DrawText(0, color, m_CachedActualSize.TopLeft() - CPos(0.f, scroll), bz+0.1f, cliparea);
    250249        else
    251             IGUITextOwner::Draw(0, color, m_TextPos, bz+0.1f, cliparea);
     250            DrawText(0, color, m_TextPos, bz+0.1f, cliparea);
    252251    }
    253252}
  • ps/trunk/source/gui/CTooltip.cpp

    r9362 r9862  
    161161        GUI<CColor>::GetSetting(this, "textcolor", color);
    162162
    163         // Draw text
    164         IGUITextOwner::Draw(0, color, m_CachedActualSize.TopLeft(), z+0.1f);
     163        DrawText(0, color, m_CachedActualSize.TopLeft(), z+0.1f);
    165164    }
    166165}
  • ps/trunk/source/gui/IGUIObject.h

    r9852 r9862  
    584584public:
    585585
    586     virtual void HandleMessage(const SGUIMessage& UNUSED(Message)) {}
    587586    virtual void Draw() {}
    588587    // Empty can never be hovered. It is only a category.
  • ps/trunk/source/gui/IGUITextOwner.cpp

    r9340 r9862  
    7979}
    8080
    81 void IGUITextOwner::Draw(const int &index, const CColor &color, const CPos &pos,
    82                          const float &z, const CRect &clipping)
     81void IGUITextOwner::DrawText(int index, const CColor& color, const CPos& pos, float z, const CRect& clipping)
    8382{
    8483    if (!m_GeneratedTextsValid)
  • ps/trunk/source/gui/IGUITextOwner.h

    r9340 r9862  
    8989     *        to get no clipping.
    9090     */
    91     virtual void Draw(const int &index, const CColor &color, const CPos &pos,
    92                       const float &z, const CRect &clipping = CRect());
     91    virtual void DrawText(int index, const CColor& color, const CPos& pos, float z, const CRect& clipping = CRect());
    9392
    9493    /**
Note: See TracChangeset for help on using the changeset viewer.