当前位置: 首页>>代码示例>>C++>>正文


C++ BASE_SCREEN::ManageCurseur方法代码示例

本文整理汇总了C++中BASE_SCREEN::ManageCurseur方法的典型用法代码示例。如果您正苦于以下问题:C++ BASE_SCREEN::ManageCurseur方法的具体用法?C++ BASE_SCREEN::ManageCurseur怎么用?C++ BASE_SCREEN::ManageCurseur使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BASE_SCREEN的用法示例。


在下文中一共展示了BASE_SCREEN::ManageCurseur方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ExitTrace

static void ExitTrace(WinEDA_DrawFrame * frame, wxDC * DC)
/**********************************************************/
/* Routine de sortie des menus de trace */
{
BASE_SCREEN * Screen = frame->GetScreen();

	if( Screen->m_CurrentItem)  /* trace en cours */
		{
		Screen->ManageCurseur(frame->DrawPanel, DC, FALSE);
		Screen->ManageCurseur = NULL;
		Screen->ForceCloseManageCurseur = NULL;
		EraseStruct(Screen->m_CurrentItem,(SCH_SCREEN*) Screen);
		Screen->m_CurrentItem = NULL;
		return;
		}

	else g_ItemToRepeat = NULL;	// Fin de commande generale
}
开发者ID:BackupTheBerlios,项目名称:kicad-svn,代码行数:18,代码来源:eecreate.cpp

示例2: AbortBlockCurrentCommand

void AbortBlockCurrentCommand(WinEDA_DrawFrame * frame, wxDC * DC)
/******************************************************************/
/*
	Cancel Current block operation.
*/
{
    BASE_SCREEN * screen = frame->GetScreen();

    if( screen->ManageCurseur)	/* Erase current drawing on screen */
    {
        screen->ManageCurseur(frame->DrawPanel, DC, FALSE); /* Efface dessin fantome */
        screen->ManageCurseur = NULL;
        screen->ForceCloseManageCurseur = NULL;
        screen->m_CurrentItem = NULL;

        /* Delete the picked wrapper if this is a picked list. */
        if( (screen->BlockLocate.m_Command != BLOCK_PASTE) &&
                screen->BlockLocate.m_BlockDrawStruct )
        {
            if(screen->BlockLocate.m_BlockDrawStruct->m_StructType == DRAW_PICK_ITEM_STRUCT_TYPE)
            {
                DrawPickedStruct * PickedList;
                PickedList = (DrawPickedStruct*)screen->BlockLocate.m_BlockDrawStruct;
                PickedList->DeleteWrapperList();
            }
            screen->BlockLocate.m_BlockDrawStruct = NULL;
        }
    }

    screen->BlockLocate.m_Flags = 0;
    screen->BlockLocate.m_State = STATE_NO_BLOCK;

    screen->BlockLocate.m_Command = BLOCK_ABORT;
    frame->HandleBlockEnd(DC);

    screen->BlockLocate.m_Command = BLOCK_IDLE;
    frame->DisplayToolMsg(wxEmptyString);
}
开发者ID:BackupTheBerlios,项目名称:kicad-svn,代码行数:38,代码来源:block_commande.cpp


注:本文中的BASE_SCREEN::ManageCurseur方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。