bool cbRowDragPlugin::HitTestCollapsedRowIcon( int iconIdx, const wxPoint& pos ) { wxRect bounds; GetCollapsedInconRect( iconIdx, bounds ); return rect_contains_point( bounds, pos.x, pos.y ); }
bool cbRowDragPlugin::HitTestRowDragHint( cbRowInfo* pRow, const wxPoint& pos ) { wxRect bounds; GetRowHintRect( pRow, bounds ); return rect_contains_point( bounds, pos.x, pos.y ); }
cbDockPane* cbBarDragPlugin::HitTestPanes( wxPoint& pos ) { wxPoint clipped = pos; //ClipPosInFrame( pos ); cbDockPane** pPanes = mpLayout->GetPanesArray(); for( int i = 0; i != MAX_PANES; ++i ) if ( rect_contains_point( pPanes[i]->mBoundsInParent, clipped.x, clipped.y ) ) return pPanes[i]; return NULL; }