本文整理汇总了C++中IsBeingDeleted函数的典型用法代码示例。如果您正苦于以下问题:C++ IsBeingDeleted函数的具体用法?C++ IsBeingDeleted怎么用?C++ IsBeingDeleted使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IsBeingDeleted函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: OnMouseEvent
void GSPanel::OnMouseEvent( wxMouseEvent& evt )
{
if( IsBeingDeleted() ) return;
// Do nothing for left-button event
if (!evt.Button(wxMOUSE_BTN_LEFT)) {
evt.Skip();
DoShowMouse();
}
#if defined(__unix__)
// HACK2: In gsopen2 there is one event buffer read by both wx/gui and pad plugin. Wx deletes
// the event before the pad see it. So you send key event directly to the pad.
if( (PADWriteEvent != NULL) && (GSopen2 != NULL) ) {
keyEvent event;
// FIXME how to handle double click ???
if (evt.ButtonDown()) {
event.evt = 4; // X equivalent of ButtonPress
event.key = evt.GetButton();
} else if (evt.ButtonUp()) {
event.evt = 5; // X equivalent of ButtonRelease
event.key = evt.GetButton();
} else if (evt.Moving() || evt.Dragging()) {
event.evt = 6; // X equivalent of MotionNotify
long x,y;
evt.GetPosition(&x, &y);
wxCoord w, h;
wxWindowDC dc( this );
dc.GetSize(&w, &h);
// Special case to allow continuous mouvement near the border
if (x < 10)
x = 0;
else if (x > (w-10))
x = 0xFFFF;
if (y < 10)
y = 0;
else if (y > (w-10))
y = 0xFFFF;
// For compatibility purpose with the existing structure. I decide to reduce
// the position to 16 bits.
event.key = ((y & 0xFFFF) << 16) | (x & 0xFFFF);
} else {
event.key = 0;
event.evt = 0;
}
PADWriteEvent(event);
}
#endif
}
开发者ID:jerrys123111,项目名称:pcsx2,代码行数:55,代码来源:FrameForGS.cpp
示例17: OnPaint
void BitmapToggleButton::OnPaint(wxPaintEvent& event) {
if (IsBeingDeleted()) return;
const wxSize size = GetClientSize();
const wxSize bmpSize = bitmapSize();
const wxSize delta = size - bmpSize;
const wxPoint offset(delta.x / 2, delta.y / 2);
wxPaintDC dc(this);
dc.DrawBitmap(currentBitmap(), offset);
}
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:11,代码来源:BitmapToggleButton.cpp
示例18: if
void SplitterWindow2::OnMouseButton(wxMouseEvent& event) {
if (IsBeingDeleted()) return;
assert(m_splitMode != SplitMode_Unset);
if (event.LeftDown())
m_sash->CaptureMouse();
else if (event.LeftUp() && dragging())
m_sash->ReleaseMouse();
setSashCursor();
Refresh();
}
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:12,代码来源:SplitterWindow2.cpp
示例19: OnContentFlagChanged
void FaceAttribsEditor::OnContentFlagChanged(FlagChangedCommand& command) {
if (IsBeingDeleted()) return;
Model::ChangeBrushFaceAttributesRequest request;
if (command.flagSet())
request.setContentFlag(command.index());
else
request.unsetContentFlag(command.index());
MapDocumentSPtr document = lock(m_document);
if (!document->setFaceAttributes(request))
command.Veto();
}
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:13,代码来源:FaceAttribsEditor.cpp
示例20: OnYOffsetChanged
void FaceAttribsEditor::OnYOffsetChanged(SpinControlEvent& event) {
if (IsBeingDeleted()) return;
Model::ChangeBrushFaceAttributesRequest request;
if (event.IsSpin())
request.addYOffset(static_cast<float>(event.GetValue()));
else
request.setYOffset(static_cast<float>(event.GetValue()));
MapDocumentSPtr document = lock(m_document);
if (!document->setFaceAttributes(request) || event.IsSpin())
event.Veto();
}
开发者ID:Gustavo6046,项目名称:TrenchBroom,代码行数:13,代码来源:FaceAttribsEditor.cpp
注:本文中的IsBeingDeleted函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论