Ticket #15060: richtooltip_const.patch

File richtooltip_const.patch, 3.7 KB (added by lpoujoulat, 5 years ago)
  • include/wx/generic/private/richtooltip.h

     
    4242    virtual void SetTipKind(wxTipKind tipKind);
    4343    virtual void SetTitleFont(const wxFont& font);
    4444
    45     virtual void ShowFor(wxWindow* win, wxRect* rect = NULL);
     45    virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL);
    4646
    4747protected:
    4848    wxString m_title,
  • include/wx/private/richtooltip.h

     
    3434    virtual void SetTipKind(wxTipKind tipKind) = 0;
    3535    virtual void SetTitleFont(const wxFont& font) = 0;
    3636
    37     virtual void ShowFor(wxWindow* win, wxRect* rect = NULL) = 0;
     37    virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL) = 0;
    3838
    3939    virtual ~wxRichToolTipImpl() { }
    4040
  • include/wx/richtooltip.h

     
    8888    void SetTitleFont(const wxFont& font);
    8989
    9090    // Show the tooltip for the given window and optionally a specified area.
    91     void ShowFor(wxWindow* win, wxRect* rect = NULL);
     91    void ShowFor(wxWindow* win, const wxRect* rect = NULL);
    9292
    9393    // Non-virtual dtor as this class is not supposed to be derived from.
    9494    ~wxRichToolTip();
  • interface/wx/richtooltip.h

     
    188188
    189189        Parameter @a rect is new since wxWidgets 2.9.5.
    190190     */
    191     void ShowFor(wxWindow* win, wxRect* rect = NULL);
     191    void ShowFor(wxWindow* win, const wxRect* rect = NULL);
    192192
    193193    /**
    194194        Destructor.
  • src/common/richtooltipcmn.cpp

     
    7373    m_impl->SetTitleFont(font);
    7474}
    7575
    76 void wxRichToolTip::ShowFor(wxWindow* win, wxRect* rect)
     76void wxRichToolTip::ShowFor(wxWindow* win, const wxRect* rect)
    7777{
    7878    wxCHECK_RET( win, wxS("Must have a valid window") );
    7979
  • src/generic/richtooltipg.cpp

     
    232232        }
    233233    }
    234234
    235     void SetPosition(wxRect* rect)
     235    void SetPosition(const wxRect* rect)
    236236    {
    237237        wxPoint pos;
    238238
     
    673673    m_titleFont = font;
    674674}
    675675
    676 void wxRichToolTipGenericImpl::ShowFor(wxWindow* win, wxRect* rect)
     676void wxRichToolTipGenericImpl::ShowFor(wxWindow* win, const wxRect* rect)
    677677{
    678678    // Set the focus to the window the tooltip refers to to make it look active.
    679679    win->SetFocus();
  • src/msw/richtooltip.cpp

     
    151151        wxRichToolTipGenericImpl::SetTitleFont(font);
    152152    }
    153153
    154     virtual void ShowFor(wxWindow* win, wxRect* rect)
     154    virtual void ShowFor(wxWindow* win, const wxRect* rect)
    155155    {
    156156        // TODO: We could use native tooltip control to show native balloon
    157157        //       tooltips for any window but right now we use the simple