您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetContainer函数代码示例

51自学网 2021-06-01 21:05:38
  C++
这篇教程C++ GetContainer函数代码示例写得很实用,希望能帮到您。

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

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

示例1: HandleTextInput

bool 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: HandleKeyUp

bool 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: HandleTextInput

bool 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: HandleJoystickHatMove

bool 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: lock

T* 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: KUIErrorUO

bool 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: HandleKeyUp

bool 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: HandleClick

bool Widget::TriggerClick(bool handled){	HandleClick();	if (!handled) handled = onClick.emit();	if (GetContainer()) handled = GetContainer()->TriggerClick(handled);	return handled;}
开发者ID:christiank,项目名称:pioneer,代码行数:7,


示例9: HandleJoystickButtonUp

bool 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_IF

NS_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: HandleClick

bool Widget::TriggerClick(bool emit){	HandleClick();	if (emit) emit = !onClick.emit();	if (GetContainer()) GetContainer()->TriggerClick(emit);	return !emit;}
开发者ID:Faiva78,项目名称:pioneer,代码行数:7,


示例12: HandleJoystickHatMove

bool 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: HandleJoystickButtonUp

bool 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: GetContainer

bool UKUIInterfaceElement::IsVisibleRecursive() const{	if ( !IsVisible() )		return false;	if ( GetContainer() == NULL )		return false;	return GetContainer()->IsVisibleRecursive();}
开发者ID:cllpyl,项目名称:KeshUI,代码行数:10,


示例15: HandleMouseWheel

bool 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: HandleMouseMove

bool 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: HandleMouseUp

bool 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: HandleMouseWheel

bool 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: HandleMouseMove

bool 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: HandleMouseUp

bool 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: CColourPopup

void 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函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。