这篇教程C++ IsInside函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中IsInside函数的典型用法代码示例。如果您正苦于以下问题:C++ IsInside函数的具体用法?C++ IsInside怎么用?C++ IsInside使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了IsInside函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: assertvoidThread::Join(){ assert(IsDefined()); assert(!IsInside());#ifdef HAVE_POSIX pthread_join(handle, nullptr); defined = false;#else ::WaitForSingleObject(handle, INFINITE); ::CloseHandle(handle); handle = nullptr;#endif#ifndef NDEBUG all_threads_mutex.lock(); all_threads.erase(all_threads.iterator_to(*this)); all_threads_mutex.unlock();#endif}
开发者ID:Advi42,项目名称:XCSoar,代码行数:21,
示例2: Processunsigned CClanMemberItem::Process( unsigned uiMsg, WPARAM wParam, LPARAM lParam ){ if( !IsInside( LOWORD(lParam), HIWORD( lParam )) ) return 0; switch( uiMsg ) { case WM_LBUTTONDOWN: { CTDialog* pDlg = g_itMGR.FindDlg( DLG_TYPE_CLAN ); if( pDlg ) { CClanDlg* pClanDlg = (CClanDlg*)pDlg; pClanDlg->SetSelectedMember( m_iClanPoint ); } SetSelected(); } return GetControlID(); default: break; } return 0;}
开发者ID:PurpleYouko,项目名称:Wibble_Wibble,代码行数:21,
示例3: Inputvoid UIBase::Input(){ int key = InputManager::GetInstance().GetMouseMousePressKey(); Point mpos = InputManager::GetInstance().GetMouse(); if (IsInside(mpos.x,mpos.y)){ if (key != 0 && OnMousePress){ OnMousePress(this,key,mpos); } key = InputManager::GetInstance().GetMouseMouseReleaseKey(); if (key != 0 && OnMouseRelease){ OnMouseRelease(this,key,mpos); } if (!MouseInside){ if (OnMouseEnter){ OnMouseEnter(this,mpos); } MouseInside = true; } }else{ if (MouseInside){ if (OnMouseLeave){ OnMouseLeave(this,mpos); } MouseInside = false; } } key = InputManager::GetInstance().IsAnyKeyPressed(); if (key != -1 && OnKeyPress){ OnKeyPress(this,key); } /*for (unsigned i = 0; i < Components.size(); ++i) { if (!Components[i]->IsDead()){ Components[i]->Input(); } }*/}
开发者ID:mockthebear,项目名称:bear-engine,代码行数:40,
示例4: CloseWMSG_RESULT CUIPortal::OnLButtonDown( UINT16 x, UINT16 y ){ if (m_bHide) return WMSG_FAIL; if (IsInside(x, y) == FALSE) { Close(); return WMSG_FAIL; } if( m_pmoveArea && m_pmoveArea->IsInside(x, y)) { m_bDrag = true; m_nOriX = x; m_nOriY = y; } CUIManager::getSingleton()->RearrangeOrder( UI_PORTAL, TRUE ); return WMSG_FAIL;}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:22,
示例5: RemovevoidIOThread::LockRemove(int fd){ mutex.Lock(); const bool old_modified = modified; Remove(fd); const bool new_modified = modified; if (new_modified && running && !IsInside()) { /* this method is synchronous: after returning, all handlers must be finished */ do { cond.Wait(mutex); } while (running); } mutex.Unlock(); if (!old_modified && new_modified) pipe.Signal();}
开发者ID:StefanL74,项目名称:XCSoar,代码行数:22,
示例6: OnLButtonDBLClickWMSG_RESULT CUITrade::OnLButtonDBLClick( UINT16 x, UINT16 y ){ if (m_bHide) return WMSG_FAIL; if (IsInside(x, y) == FALSE) return WMSG_FAIL; if (m_pList[eLIST_AMEND_ITEM]->IsInside(x, y) == TRUE) { if (m_pList[eLIST_AMEND_ITEM]->HitTest(x, y) < 0) { UpdateAmendItem(-1); UpdateAmendCondition(-1); if (m_pBtnOk != NULL) m_pBtnOk->SetEnable(FALSE); } } return WMSG_SUCCESS;}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:22,
示例7: OnLButtonDownWMSG_RESULT CUIQuestBook::OnLButtonDown( UINT16 x, UINT16 y ){ if (m_bHide) return WMSG_FAIL; if (m_bLockQuestList == TRUE) return WMSG_FAIL; if (IsInside(x, y) == FALSE) return WMSG_FAIL; if( m_pmoveArea && m_pmoveArea->IsInside(x, y)) { m_bDrag = true; m_nOriX = x; m_nOriY = y; } CUIManager::getSingleton()->RearrangeOrder( UI_QUESTBOOK_LIST, TRUE ); return WMSG_FAIL;}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:22,
示例8: IsSphereInside bool Frustum::IsVisible(const Node& node, Mesh& mesh) const { if (mesh.IsReady()) { Vertex3 center = node.GetGlobalPosition(); float radius = mesh.GetBoundingSphereRadius(); Vector3 scale = node.GetGlobalScale(); float maxScale = std::max(std::max(scale.x, scale.y), scale.z); radius *= maxScale; Intersection sphereFrustumIntersec = IsSphereInside(center, radius); if (sphereFrustumIntersec == Intersection::INTERSECTS) { BoundingBox bb = mesh.GetBB(); bb.Transform(node); return IsInside(bb) != Intersection::OUTSIDE; } else return sphereFrustumIntersec != Intersection::OUTSIDE; } return false; }
开发者ID:dreamsxin,项目名称:nsg-library,代码行数:22,
示例9: MouseWheelWMSG_RESULT CUIBase::MouseWheel(UINT16 x, UINT16 y, int wheel){ if (m_bHide) return WMSG_FAIL; if (IsInside(x, y) == FALSE) return WMSG_FAIL; WMSG_RESULT ret = WMSG_FAIL; if (wheel > 0) OnMouseWheelUp(); else if (wheel < 0) OnMouseWheelDown(); ret = OnMouseWheel(x, y, wheel); if (ret == WMSG_FAIL) ret = MouseWheelChild(x, y, wheel); return ret;}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:22,
示例10: if//=================================================================================================void ListBox::Update(float dt){ if(extended) { if(menu->visible) { // powinno by C++ IsInt函数代码示例 C++ IsInitialized函数代码示例
|