wxHtmlLinkInfo *wxHtmlContainerCell::GetLink(int x, int y) const { wxHtmlCell *cell = FindCellByPos(x, y); // VZ: I don't know if we should pass absolute or relative coords to // wxHtmlCell::GetLink()? As the base class version just ignores them // anyhow, it hardly matters right now but should still be clarified return cell ? cell->GetLink(x, y) : NULL; }
void wxHtmlContainerCell::OnMouseClick(wxWindow*, int, int, const wxMouseEvent& event) { wxCHECK_RET( gs_helperOnMouseClick, wxT("unexpected call to OnMouseClick") ); wxHtmlWindowInterface *window = gs_helperOnMouseClick->window; const wxPoint& pos = gs_helperOnMouseClick->pos; #endif // WXWIN_COMPATIBILITY_2_6 bool retval = false; wxHtmlCell *cell = FindCellByPos(pos.x, pos.y); if ( cell ) retval = cell->ProcessMouseClick(window, pos, event); #if WXWIN_COMPATIBILITY_2_6 gs_helperOnMouseClick->retval = retval; #else return retval; #endif // WXWIN_COMPATIBILITY_2_6 }
void wxHtmlContainerCell::OnMouseClick(wxWindow *parent, int x, int y, const wxMouseEvent& event) { wxHtmlCell *cell = FindCellByPos(x, y); if ( cell ) cell->OnMouseClick(parent, x, y, event); }