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


C++ IsBeingDeleted函数代码示例

本文整理汇总了C++中IsBeingDeleted函数的典型用法代码示例。如果您正苦于以下问题:C++ IsBeingDeleted函数的具体用法?C++ IsBeingDeleted怎么用?C++ IsBeingDeleted使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: OnClickUrl

        void AboutFrame::OnClickUrl(wxMouseEvent& event) {
            if (IsBeingDeleted()) return;

            const wxVariant* var = static_cast<wxVariant*>(event.GetEventUserData());
            const wxString url = var->GetString();
            ::wxLaunchDefaultBrowser(url);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:7,代码来源:AboutFrame.cpp

示例2: OnActivate

void GSFrame::OnActivate( wxActivateEvent& evt )
{
	if( IsBeingDeleted() ) return;

	evt.Skip();
	if( wxWindow* gsPanel = GetViewport() ) gsPanel->SetFocus();
}
开发者ID:jerrys123111,项目名称:pcsx2,代码行数:7,代码来源:FrameForGS.cpp

示例3: OnMoveAround

void MainEmuFrame::OnMoveAround( wxMoveEvent& evt )
{
	if( IsBeingDeleted() || !IsVisible() || IsIconized() ) return;

	// Uncomment this when doing logger stress testing (and then move the window around
	// while the logger spams itself)
	// ... makes for a good test of the message pump's responsiveness.
	if( EnableThreadedLoggingTest )
		Console.Warning( "Threaded Logging Test!  (a window move event)" );

	// evt.GetPosition() returns the client area position, not the window frame position.
	// So read the window's screen-relative position directly.
	g_Conf->MainGuiPosition = GetScreenPosition();

	// wxGTK note: X sends gratuitous amounts of OnMove messages for various crap actions
	// like selecting or deselecting a window, which muck up docking logic.  We filter them
	// out using 'lastpos' here. :)

	static wxPoint lastpos( wxDefaultCoord, wxDefaultCoord );
	if( lastpos == evt.GetPosition() ) return;
	lastpos = evt.GetPosition();

	if( g_Conf->ProgLogBox.AutoDock )
	{
		g_Conf->ProgLogBox.DisplayPosition = GetRect().GetTopRight();
		if( ConsoleLogFrame* proglog = wxGetApp().GetProgramLog() )
			proglog->SetPosition( g_Conf->ProgLogBox.DisplayPosition );
	}

	evt.Skip();
}
开发者ID:Silanda,项目名称:pcsx2,代码行数:31,代码来源:MainFrame.cpp

示例4: AppStatusEvent_OnSettingsApplied

void GSPanel::AppStatusEvent_OnSettingsApplied()
{
	if( IsBeingDeleted() ) return;
	DoResize();
	DoShowMouse();
	Show( !EmuConfig.GS.DisableOutput );
}
开发者ID:jerrys123111,项目名称:pcsx2,代码行数:7,代码来源:FrameForGS.cpp

示例5: OnResize

void GSPanel::OnResize(wxSizeEvent& event)
{
	if( IsBeingDeleted() ) return;
	DoResize();
	//Console.Error( "Size? %d x %d", GetSize().x, GetSize().y );
	//event.
}
开发者ID:jerrys123111,项目名称:pcsx2,代码行数:7,代码来源:FrameForGS.cpp

示例6: OnAngleChanged

        void RotateObjectsToolPage::OnAngleChanged(SpinControlEvent& event) {
            if (IsBeingDeleted()) return;

            const double newAngleDegs = Math::correct(event.IsSpin() ? m_angle->GetValue() + event.GetValue() : event.GetValue());
            m_angle->SetValue(newAngleDegs);
            m_tool->setAngle(Math::radians(newAngleDegs));
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:7,代码来源:RotateObjectsToolPage.cpp

示例7: OnCloseWindow

// Close out the console log windows along with the main emu window.
// Note: This event only happens after a close event has occurred and was *not* veto'd.  Ie,
// it means it's time to provide an unconditional closure of said window.
//
void MainEmuFrame::OnCloseWindow(wxCloseEvent& evt)
{
	if( IsBeingDeleted() ) return;

	CoreThread.Suspend();

	//bool isClosing = false;

	if( !evt.CanVeto() )
	{
		// Mandatory destruction...
		//isClosing = true;
	}
	else
	{
		// TODO : Add confirmation prior to exit here!
		// Problem: Suspend is often slow because it needs to wait until the current EE frame
		// has finished processing (if the GS or logging has incurred severe overhead this makes
		// closing PCSX2 difficult).  A non-blocking suspend with modal dialog might suffice
		// however. --air

		//evt.Veto( true );

	}

	sApp.OnMainFrameClosed( GetId() );

	RemoveCdvdMenu();

	RemoveEventHandler( &wxGetApp().GetRecentIsoManager() );
	wxGetApp().PostIdleAppMethod( &Pcsx2App::PrepForExit );

	evt.Skip();
}
开发者ID:Alchemistxxd,项目名称:pcsx2,代码行数:38,代码来源:MainFrame.cpp

示例8: OnMoveSpeedChanged

        void MousePreferencePane::OnMoveSpeedChanged(wxScrollEvent& event) {
            if (IsBeingDeleted()) return;

            const float value = m_moveSpeedSlider->GetValue() / 100.0f;
            
            PreferenceManager& prefs = PreferenceManager::instance();
            prefs.set(Preferences::CameraMoveSpeed, value);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:8,代码来源:MousePreferencePane.cpp

示例9: OnInvertPanVAxisChanged

        void MousePreferencePane::OnInvertPanVAxisChanged(wxCommandEvent& event) {
            if (IsBeingDeleted()) return;

            const bool value = event.GetInt() != 0;
            
            PreferenceManager& prefs = PreferenceManager::instance();
            prefs.set(Preferences::CameraPanInvertV, value);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:8,代码来源:MousePreferencePane.cpp

示例10: updateSashPosition

        void SplitterWindow2::OnSize(wxSizeEvent& event) {
            if (IsBeingDeleted()) return;

            updateSashPosition(m_oldSize, event.GetSize());
            sizeWindows();
            m_oldSize = event.GetSize();
            event.Skip();
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:8,代码来源:SplitterWindow2.cpp

示例11: OnHideMouseTimeout

void GSPanel::OnHideMouseTimeout( wxTimerEvent& evt )
{
	if( IsBeingDeleted() || !m_HasFocus ) return;
	if( CoreThread.GetExecutionMode() != SysThreadBase::ExecMode_Opened ) return;

	SetCursor( wxCursor( wxCURSOR_BLANK ) );
	m_CursorShown = false;
}
开发者ID:jerrys123111,项目名称:pcsx2,代码行数:8,代码来源:FrameForGS.cpp

示例12: OnMoveCameraInCursorDirChanged

        void MousePreferencePane::OnMoveCameraInCursorDirChanged(wxCommandEvent& event) {
            if (IsBeingDeleted()) return;

            const bool value = event.GetInt() != 0;
            
            PreferenceManager& prefs = PreferenceManager::instance();
            prefs.set(Preferences::CameraMoveInCursorDir, value);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:8,代码来源:MousePreferencePane.cpp

示例13: OnRotate

        void RotateObjectsToolPage::OnRotate(wxCommandEvent& event) {
            if (IsBeingDeleted()) return;

            const Vec3 center = m_tool->rotationCenter();
            const Vec3 axis = getAxis();
            const FloatType angle = Math::radians(m_angle->GetValue());
            
            MapDocumentSPtr document = lock(m_document);
            document->rotateObjects(center, axis, angle);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:10,代码来源:RotateObjectsToolPage.cpp

示例14: Unbind

        void SplitterWindow2::OnIdle(wxIdleEvent& event) {
            if (IsBeingDeleted()) return;

            if (IsShownOnScreen()) {
                Unbind(wxEVT_IDLE, &SplitterWindow2::OnIdle, this);
                
                // if the initial sash position could not be set until now, then it probably cannot be set at all
                m_initialSplitRatio = -1.0;
            }
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:10,代码来源:SplitterWindow2.cpp

示例15: OnIdle

        void FaceAttribsEditor::OnIdle(wxIdleEvent& event) {
            if (IsBeingDeleted()) return;

            MapDocumentSPtr document = lock(m_document);
            Grid& grid = document->grid();
            
            m_xOffsetEditor->SetIncrements(grid.actualSize(), 2.0 * grid.actualSize(), 1.0);
            m_yOffsetEditor->SetIncrements(grid.actualSize(), 2.0 * grid.actualSize(), 1.0);
            m_rotationEditor->SetIncrements(Math::degrees(grid.angle()), 90.0, 1.0);
        }
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:10,代码来源:FaceAttribsEditor.cpp


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