这篇教程C++ GetContainer函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetContainer函数的典型用法代码示例。如果您正苦于以下问题:C++ GetContainer函数的具体用法?C++ GetContainer怎么用?C++ GetContainer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetContainer函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: HandleTextInputbool Widget::TriggerTextInput(const TextInputEvent &event, bool emit){ HandleTextInput(event); if (emit) emit = !onTextInput.emit(event); if (GetContainer()) GetContainer()->TriggerTextInput(event, emit); return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,
示例2: HandleKeyUpbool Widget::TriggerKeyUp(const KeyboardEvent &event, bool emit){ HandleKeyUp(event); if (emit) emit = !onKeyUp.emit(event); if (GetContainer()) GetContainer()->TriggerKeyUp(event, emit); return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,
示例3: HandleTextInputbool Widget::TriggerTextInput(const TextInputEvent &event, bool handled){ HandleTextInput(event); if (!handled) handled = onTextInput.emit(event); if (GetContainer()) handled = GetContainer()->TriggerTextInput(event, handled); return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,
示例4: HandleJoystickHatMovebool Widget::TriggerJoystickHatMove(const JoystickHatMotionEvent &event, bool handled){ HandleJoystickHatMove(event); if (!handled) handled = onJoystickHatMove.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickHatMove(event, handled); return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,
示例5: lockT* HashMapHolder<T>::Find(ObjectGuid guid){ boost::shared_lock<boost::shared_mutex> lock(*GetLock()); typename MapType::iterator itr = GetContainer().find(guid); return (itr != GetContainer().end()) ? itr->second : NULL;}
开发者ID:Diyvol,项目名称:TrinityCore,代码行数:7,
示例6: KUIErrorUObool UKUIInterfaceElement::IsMouseOver() const{ if ( GetInterface() == NULL ) { KUIErrorUO( "Null interface" ); return false; } if ( GetContainer() != NULL ) { if ( !GetContainer()->IsMouseOver() ) return false; } const FVector2D v2CursorLocation = GetInterface()->GetCursorLocation(); const FVector2D v2Size = GetSize(); const FVector2D v2TopLeftLocation = GetScreenLocation(); if ( v2CursorLocation.X >= v2TopLeftLocation.X && v2CursorLocation.Y >= v2TopLeftLocation.Y && v2CursorLocation.X < ( v2TopLeftLocation.X + v2Size.X ) && v2CursorLocation.Y < ( v2TopLeftLocation.Y + v2Size.Y ) ) return true; return false;}
开发者ID:cllpyl,项目名称:KeshUI,代码行数:26,
示例7: HandleKeyUpbool Widget::TriggerKeyUp(const KeyboardEvent &event, bool handled){ HandleKeyUp(event); if (!handled) handled = onKeyUp.emit(event); if (GetContainer()) handled = GetContainer()->TriggerKeyUp(event, handled); return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,
示例8: HandleClickbool Widget::TriggerClick(bool handled){ HandleClick(); if (!handled) handled = onClick.emit(); if (GetContainer()) handled = GetContainer()->TriggerClick(handled); return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,
示例9: HandleJoystickButtonUpbool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool handled){ HandleJoystickButtonUp(event); if (!handled) handled = onJoystickButtonUp.emit(event); if (GetContainer()) handled = GetContainer()->TriggerJoystickButtonUp(event, handled); return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,
示例10: NS_WARN_IFNS_IMETHODIMPInsertNodeTransaction::DoTransaction(){ if (NS_WARN_IF(!mEditorBase) || NS_WARN_IF(!mContentToInsert) || NS_WARN_IF(!mPointToInsert.IsSet())) { return NS_ERROR_NOT_INITIALIZED; } if (!mPointToInsert.IsSetAndValid()) { // It seems that DOM tree has been changed after first DoTransaction() // and current RedoTranaction() call. if (mPointToInsert.GetChild()) { EditorDOMPoint newPointToInsert(mPointToInsert.GetChild()); if (!newPointToInsert.IsSet()) { // The insertion point has been removed from the DOM tree. // In this case, we should append the node to the container instead. newPointToInsert.SetToEndOf(mPointToInsert.GetContainer()); if (NS_WARN_IF(!newPointToInsert.IsSet())) { return NS_ERROR_FAILURE; } } mPointToInsert = newPointToInsert; } else { mPointToInsert.SetToEndOf(mPointToInsert.GetContainer()); if (NS_WARN_IF(!mPointToInsert.IsSet())) { return NS_ERROR_FAILURE; } } } mEditorBase->MarkNodeDirty(GetAsDOMNode(mContentToInsert)); ErrorResult error; mPointToInsert.GetContainer()->InsertBefore(*mContentToInsert, mPointToInsert.GetChild(), error); error.WouldReportJSException(); if (NS_WARN_IF(error.Failed())) { return error.StealNSResult(); } // Only set selection to insertion point if editor gives permission if (mEditorBase->GetShouldTxnSetSelection()) { RefPtr<Selection> selection = mEditorBase->GetSelection(); if (NS_WARN_IF(!selection)) { return NS_ERROR_FAILURE; } // Place the selection just after the inserted element EditorRawDOMPoint afterInsertedNode(mContentToInsert); DebugOnly<bool> advanced = afterInsertedNode.AdvanceOffset(); NS_WARNING_ASSERTION(advanced, "Failed to advance offset after the inserted node"); selection->Collapse(afterInsertedNode, error); if (NS_WARN_IF(error.Failed())) { error.SuppressException(); } } return NS_OK;}
开发者ID:luke-chang,项目名称:gecko-1,代码行数:60,
示例11: HandleClickbool Widget::TriggerClick(bool emit){ HandleClick(); if (emit) emit = !onClick.emit(); if (GetContainer()) GetContainer()->TriggerClick(emit); return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,
示例12: HandleJoystickHatMovebool Widget::TriggerJoystickHatMove(const JoystickHatMotionEvent &event, bool emit){ HandleJoystickHatMove(event); if (emit) emit = !onJoystickHatMove.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickHatMove(event, emit); return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,
示例13: HandleJoystickButtonUpbool Widget::TriggerJoystickButtonUp(const JoystickButtonEvent &event, bool emit){ HandleJoystickButtonUp(event); if (emit) emit = !onJoystickButtonUp.emit(event); if (GetContainer()) GetContainer()->TriggerJoystickButtonUp(event, emit); return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,
示例14: GetContainerbool UKUIInterfaceElement::IsVisibleRecursive() const{ if ( !IsVisible() ) return false; if ( GetContainer() == NULL ) return false; return GetContainer()->IsVisibleRecursive();}
开发者ID:cllpyl,项目名称:KeshUI,代码行数:10,
示例15: HandleMouseWheelbool Widget::TriggerMouseWheel(const MouseWheelEvent &event, bool emit){ HandleMouseWheel(event); if (emit) emit = !onMouseWheel.emit(event); if (GetContainer()) { MouseWheelEvent translatedEvent = MouseWheelEvent(event.direction, event.pos+GetPosition()); GetContainer()->TriggerMouseWheel(translatedEvent, emit); } return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:10,
示例16: HandleMouseMovebool Widget::TriggerMouseMove(const MouseMotionEvent &event, bool emit){ HandleMouseMove(event); if (emit) emit = !onMouseMove.emit(event); if (GetContainer()) { MouseMotionEvent translatedEvent = MouseMotionEvent(event.pos+GetPosition(), event.rel); GetContainer()->TriggerMouseMove(translatedEvent, emit); } return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:10,
示例17: HandleMouseUpbool Widget::TriggerMouseUp(const MouseButtonEvent &event, bool emit){ HandleMouseUp(event); if (emit) emit = !onMouseUp.emit(event); if (GetContainer()) { MouseButtonEvent translatedEvent = MouseButtonEvent(event.action, event.button, event.pos+GetPosition()); GetContainer()->TriggerMouseUp(translatedEvent, emit); } return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:10,
示例18: HandleMouseWheelbool Widget::TriggerMouseWheel(const MouseWheelEvent &event, bool handled){ HandleMouseWheel(event); if (!handled) handled = onMouseWheel.emit(event); if (GetContainer()) { MouseWheelEvent translatedEvent = MouseWheelEvent(event.direction, event.pos+GetPosition()); handled = GetContainer()->TriggerMouseWheel(translatedEvent, handled); } return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:10,
示例19: HandleMouseMovebool Widget::TriggerMouseMove(const MouseMotionEvent &event, bool handled){ HandleMouseMove(event); if (!handled) handled = onMouseMove.emit(event); if (GetContainer()) { MouseMotionEvent translatedEvent = MouseMotionEvent(event.pos+GetPosition(), event.rel); handled = GetContainer()->TriggerMouseMove(translatedEvent, handled); } return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:10,
示例20: HandleMouseUpbool Widget::TriggerMouseUp(const MouseButtonEvent &event, bool handled){ HandleMouseUp(event); if (!handled) handled = onMouseUp.emit(event); if (GetContainer()) { MouseButtonEvent translatedEvent = MouseButtonEvent(event.action, event.button, event.pos+GetPosition()); handled = GetContainer()->TriggerMouseUp(translatedEvent, handled); } return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:10,
示例21: CColourPopupvoid CDuiColorPicker::OnLButtonUp( UINT nFlags,CPoint pt ){ __super::OnLButtonUp(nFlags,pt); CColourPopup *pCrPopup = new CColourPopup(GetContainer()->GetHostHwnd(),this); CRect rcWnd; GetRect(rcWnd); pt.x=rcWnd.left,pt.y=rcWnd.bottom; ::ClientToScreen(GetContainer()->GetHostHwnd(),&pt); pCrPopup->SetDefColor(m_crDef); pCrPopup->Create(pt,m_crCur,_T("д C++ GetContext函数代码示例 C++ GetContactProto函数代码示例
|