예제 #1
0
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);
		}
	}
}
예제 #2
0
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;
}
예제 #4
0
void GameCardScreen::pointerPressEvent(MAPoint2d point)
{
	locateItem(point);
}
예제 #5
0
void ImageScreen::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
}
void ShopCategoriesScreen::pointerMoveEvent(MAPoint2d point)
{
	moved++;
    locateItem(point);
}
예제 #7
0
void CompareScreen::pointerPressEvent(MAPoint2d point)
{
	pointPressed = point;
    locateItem(point);
}
void ShopCategoriesScreen::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #9
0
void DeckListScreen::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #10
0
void Login::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #11
0
void RedeemScreen::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #12
0
void ContactScreen::pointerMoveEvent(MAPoint2d point)
{
	locateItem(point);
}
예제 #13
0
void EditDeckScreen::pointerMoveEvent(MAPoint2d point) {
    locateItem(point);
    moved++;
}
예제 #14
0
void EditDeckScreen::pointerPressEvent(MAPoint2d point) {
    locateItem(point);
}
예제 #15
0
void NoteScreen::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
void TradeFriendDetailScreen::pointerMoveEvent(MAPoint2d point) {
    locateItem(point);
    moved++;
}
void TradeFriendDetailScreen::pointerPressEvent(MAPoint2d point) {
    locateItem(point);
}
예제 #18
0
void RedeemScreen::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
    moved++;
}
예제 #19
0
void OptionsScreen::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #20
0
void AuctionListScreen::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
    moved++;
}
예제 #21
0
void AuctionListScreen::pointerPressEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #22
0
void DeckListScreen::pointerMoveEvent(MAPoint2d point)
{
	moved++;
    locateItem(point);
}
예제 #23
0
void TutorialScreen::pointerPressEvent(MAPoint2d point) {
	pointPressed = point;
    locateItem(point);
}
예제 #24
0
void Login::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
    moved++;
}
예제 #25
0
void TutorialScreen::pointerMoveEvent(MAPoint2d point) {
    locateItem(point);
}
예제 #26
0
void CompareScreen::pointerMoveEvent(MAPoint2d point)
{
    locateItem(point);
}
예제 #27
0
void TouchListBox::pointerMoveEvent(MAPoint2d point) {
    locateItem(point);
}