• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GetContainer函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了GetContainer函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:ObjectAccessor.cpp


示例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,代码来源:KUIInterfaceElement.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例10: NS_WARN_IF

NS_IMETHODIMP
InsertNodeTransaction::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,代码来源:InsertNodeTransaction.cpp


示例11: HandleClick

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


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例14: GetContainer

bool UKUIInterfaceElement::IsVisibleRecursive() const
{
	if ( !IsVisible() )
		return false;

	if ( GetContainer() == NULL )
		return false;

	return GetContainer()->IsVisibleRecursive();
}
开发者ID:cllpyl,项目名称:KeshUI,代码行数:10,代码来源:KUIInterfaceElement.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp


示例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,代码来源:Widget.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetContext函数代码示例发布时间:2022-05-30
下一篇:
C++ GetContactProto函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap