void GCMenu::pointerReleaseEvent(MAPoint2d point) { if (moved < 8) { locateItem(point); } else if (subLayout->contains(point.x, point.y)) { int xEnd = point.x; int distance = abs(xEnd - xStart); if (distance >= (scrWidth * 0.3)) { moved=0; if (xEnd>xStart) { mainImage->setTransition(TT_PUSH, 1, 0); selectPrevious(); } else { mainImage->setTransition(TT_PUSH, -1, 0); selectNext(); } } } else if (iconList->contains(point.x, point.y)) { int xEnd = point.x; int distance = abs(xEnd - xStart); if (distance >= (scrWidth * 0.3)) { moved=0; xEnd>xStart?swipeList(-1):swipeList(1); } } }
LIB_ITEM* LIB_EDIT_FRAME::LocateItemUsingCursor( const wxPoint& aPosition, const KICAD_T aFilterList[] ) { LIB_PART* part = GetCurPart(); if( !part ) return NULL; LIB_ITEM* item = locateItem( aPosition, aFilterList ); wxPoint pos = GetNearestGridPosition( aPosition ); if( item == NULL && aPosition != pos ) item = locateItem( pos, aFilterList ); return item; }
LIB_ITEM* LIB_EDIT_FRAME::LocateItemUsingCursor( const wxPoint& aPosition, const KICAD_T aFilterList[] ) { if( m_component == NULL ) return NULL; LIB_ITEM* item = locateItem( aPosition, aFilterList ); if( item == NULL ) return NULL; wxPoint pos = GetNearestGridPosition( aPosition ); if( item == NULL && aPosition != pos ) item = locateItem( pos, aFilterList ); return item; }
void GameCardScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void ImageScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); }
void ShopCategoriesScreen::pointerMoveEvent(MAPoint2d point) { moved++; locateItem(point); }
void CompareScreen::pointerPressEvent(MAPoint2d point) { pointPressed = point; locateItem(point); }
void ShopCategoriesScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void DeckListScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void Login::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void RedeemScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void ContactScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); }
void EditDeckScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); moved++; }
void EditDeckScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void NoteScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void TradeFriendDetailScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); moved++; }
void TradeFriendDetailScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void RedeemScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); moved++; }
void OptionsScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); }
void AuctionListScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); moved++; }
void AuctionListScreen::pointerPressEvent(MAPoint2d point) { locateItem(point); }
void DeckListScreen::pointerMoveEvent(MAPoint2d point) { moved++; locateItem(point); }
void TutorialScreen::pointerPressEvent(MAPoint2d point) { pointPressed = point; locateItem(point); }
void Login::pointerMoveEvent(MAPoint2d point) { locateItem(point); moved++; }
void TutorialScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); }
void CompareScreen::pointerMoveEvent(MAPoint2d point) { locateItem(point); }
void TouchListBox::pointerMoveEvent(MAPoint2d point) { locateItem(point); }