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

C++ IsCreated函数代码示例

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

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



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

示例1: Delete

void GLBufferObject::Delete()
{
	if(!IsCreated()) return;

	glDeleteBuffers(m_id.GetCount(), &m_id[0]);
	m_id.Clear();
	m_type = 0;
}
开发者ID:Magn3s1um,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp


示例2: SHVASSERT

/*************************************
 * SetHandle
 *************************************/
void SHVControlImplementerWin32Base::SetHandle(HWND handle)
{
	if (Window == handle)
		return;

	SHVASSERT(!IsCreated());
	Window = handle;
}
开发者ID:ElmerFuddDK,项目名称:libshiva,代码行数:11,代码来源:shvcontrolimplementerwin32base.cpp


示例3: Delete

void GLvao::Delete()
{
	if(!IsCreated()) return;

	Unbind();
	glDeleteVertexArrays(1, &m_id);
	m_id = 0;
}
开发者ID:Apicio,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp


示例4: SetHandle

/*************************************
 * Create
 *************************************/
SHVBool SHVControlImplementerButtonGtk::Create(SHVControl* owner, SHVControlImplementer* parent, int flags)
{
	if (!IsCreated() && parent && parent->IsCreated())
	{
		SetHandle(gtk_button_new_with_label(NULL));
		gtk_container_add(GTK_CONTAINER (parent->GetNative()), GetHandle());
		
		g_signal_connect (G_OBJECT (GetHandle()), "clicked",
						  G_CALLBACK (SHVControlImplementerButtonGtk::on_clicked), owner);
		owner->SetFont(NULL,true);
		owner->SetFlag(flags);
		
		return IsCreated();
	}
	
	return SHVBool::False;
}
开发者ID:ElmerFuddDK,项目名称:libshiva,代码行数:20,代码来源:shvcontrolimplementerbuttongtk.cpp


示例5: Stop

void XLAcceptorThread::Stop()
{
	if(IsCreated())
	{
		m_bExit = true;
		XLSimpleThreads::Destroy();
	}
}
开发者ID:akhileshzmishra,项目名称:ServerClient,代码行数:8,代码来源:XLAcceptorThread.cpp


示例6: Start

void XLAcceptorThread::Start()
{
	if(!IsCreated())
	{
		m_bExit = false;
		XLSimpleThreads::Create("ACCEPTORTHREAD");
	}
}
开发者ID:akhileshzmishra,项目名称:ServerClient,代码行数:8,代码来源:XLAcceptorThread.cpp


示例7: Create

void GLBufferObject::Create(GLuint type, u32 count)
{
	if(IsCreated()) return;

	m_id.InsertRoomEnd(count);
	glGenBuffers(count, &m_id[0]);
	m_type = type;
}
开发者ID:Magn3s1um,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp


示例8: OpenTransparencyDialog

void PS_TransparencyDialog::OpenTransparencyDialog(CWnd* pParentWnd)
{
    if (!IsCreated())
        DoCreateDialog(pParentWnd);

    Manage();

    UpdateUIFromDef();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:9,代码来源:PS_TransparencyDialog.cpp


示例9: Create

void GLfbo::Create()
{
	if(IsCreated())
	{
		return;
	}

	glGenFramebuffers(1, &m_id);
}
开发者ID:Apicio,项目名称:rpcs3,代码行数:9,代码来源:GLBuffers.cpp


示例10: OnPropertyChanged

 void Nametag::OnPropertyChanged(const PropertyInfo *id, bool implicit)
 {
     if(id == &PlayerNameProperty || id == &HealthProperty)
     {
         if(IsCreated())
             UpdateStatus();
     }
     Billboard::OnPropertyChanged(id, implicit);
 }
开发者ID:ANerd,项目名称:Skyport-gl,代码行数:9,代码来源:Nametag.cpp


示例11: DebugAssert

Void D2D1RenderState::GetDesc( D2D1RenderStateDesc * outDesc ) const
{
    DebugAssert( IsCreated() );

    D2D1_DRAWING_STATE_DESCRIPTION hDesc;
    m_pStateBlock->GetDescription( &hDesc );

    outDesc->ConvertFrom( &hDesc );
}
开发者ID:Shikifuyin,项目名称:Scarab-Engine,代码行数:9,代码来源:D2D1RenderState.cpp


示例12: AdjustOffsets

 void GridControl::SetWindowPosition(const CRect& rect, int level)
 {
     CRect rcOff = AdjustOffsets(rect);
     if (!IsCreated()) {
         Create(rcOff);
     } else {
         CWnd::MoveWindow(rcOff);
     }
 }
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:9,代码来源:PS_UIGrid.cpp


示例13: SetEnabled

void TButton::SetEnabled(bool enabled)
{
	if (fEnabled != enabled)
	{
		fEnabled = enabled;
		if (IsCreated())
			Redraw();
	}
}	
开发者ID:mikevoydanoff,项目名称:zoinks,代码行数:9,代码来源:TButton.cpp


示例14: Create

// ---------------------------------------------------------------------
void WinBitmapDC::Create(
	HDC dc,			//!< 作成したいビットマップDCと互換性のあるDC
	SInt32 width,	//!< ビットマップの幅
	SInt32 height	//!< ビットマップの高さ
)
{
	if (IsCreated())
	{
		throw new WinBitmapDCExceptions::AlreadyCreated();
	}
	
	HDC memDC;
	HBITMAP bitmap;
	
	// 指定されたDCと互換性のあるメモリDCを作成
	memDC = ::CreateCompatibleDC(dc);
	if (NULL == memDC)
	{
		throw new WinBitmapDCException();
	}
	
	try
	{
		// 指定されたDCと互換性のあるビットマップを作成
		bitmap = ::CreateCompatibleBitmap(dc, width, height);
		if (NULL == bitmap)
		{
			throw new WinBitmapDCException();
		}		
		
		try
		{
			// メモリDC にビットマップを結びつけておく
			this->oldBitmap = static_cast<HBITMAP>(::SelectObject(memDC, bitmap));
			if (NULL == this->oldBitmap)
			{
				throw new WinBitmapDCException();
			}
		}
		catch (...)
		{
			::DeleteObject(bitmap);
			bitmap = NULL;
			throw;
		}
	}
	catch (...)
	{
		::DeleteDC(memDC);
		memDC = NULL;
		throw;
	}

	this->memDC = memDC;
	this->bitmap = bitmap;
}
开发者ID:HaikuArchives,项目名称:CoveredCalc,代码行数:57,代码来源:WinBitmapDC.cpp


示例15: DebugAssert

Void D3D11Texture2D::AttachToBackBuffer( UInt iBackBuffer )
{
    DebugAssert( !(IsCreated()) );
    DebugAssert( iBackBuffer < m_pRenderer->m_hSwapChainDesc.iBufferCount );

    m_hCreationParameters.pData = NULL;

    m_iBoundToBackBuffer = iBackBuffer;
    _NakedCreate();
}
开发者ID:Shikifuyin,项目名称:Scarab-Engine,代码行数:10,代码来源:D3D11Texture.cpp


示例16: Erase

void Erase(uint64_t aID)
{
  if (!IsCreated() || aID == 0) {
    return;
  }
  CompositableMap_t::iterator it = sCompositableMap->find(aID);
  if (it != sCompositableMap->end()) {
    sCompositableMap->erase(it);
  }
}
开发者ID:jalbertbowden,项目名称:mozilla-central,代码行数:10,代码来源:CompositableHost.cpp


示例17: wxCHECK_RET

void wxVListBoxComboPopup::SetSelection( int item )
{
    wxCHECK_RET( item == wxNOT_FOUND || ((unsigned int)item < GetCount()),
                 wxT("invalid index in wxVListBoxComboPopup::SetSelection") );

    m_value = item;

    if ( IsCreated() )
        wxVListBox::SetSelection(item);
}
开发者ID:252525fb,项目名称:rpcs3,代码行数:10,代码来源:odcombo.cpp


示例18: Redraw

void TWindow::Redraw()
{
	if (IsCreated())
	{
		TRect	r(0, 0, GetWidth(), GetHeight());
		const TPoint& scroll = GetScroll();
		r.Offset(scroll.h, scroll.v);
		RedrawRect(r);
	}
}
开发者ID:mikevoydanoff,项目名称:zoinks,代码行数:10,代码来源:TWindow.cpp


示例19: SetHandle

/*************************************
 * Create(parent)
 *************************************/
SHVBool SHVControlImplementerContainerWindowWin32::Create(SHVControl* owner, SHVControlImplementer* parent, int flags)
{
	if (!IsCreated() && parent && parent->IsCreated())
	{
		SetHandle(::CreateWindowExW(WS_EX_CONTROLPARENT,SHVWIN32CLASS_CONTAINERWND, L"", WS_CHILD|Win32::MapFlags(flags),
			CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, Win32::GetHandle(parent), NULL, Win32::GetInstance(owner), NULL));

		if (IsCreated())
		{
			owner->SetFont(NULL,false);

			SetWindowLongPtr(GetHandle(),0,(LONG_PTR)owner);
		}

		return IsCreated();
	}

	return SHVBool::False;
}
开发者ID:ElmerFuddDK,项目名称:libshiva,代码行数:22,代码来源:shvcontrolimplementercontainerwindowwin32.cpp


示例20: OnPropertyChanged

void Textbox::OnPropertyChanged(const PropertyInfo *id, bool implicit)
{
    if(id == &TextProperty || id == &ColorProperty)
    {
        //Debug("Change text");
        if(IsCreated())
            UpdateText();
    }
    GUISprite::OnPropertyChanged(id, implicit);
}
开发者ID:ANerd,项目名称:Skyport-gl,代码行数:10,代码来源:Textbox.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ IsCreatureValid函数代码示例发布时间:2022-05-30
下一篇:
C++ IsContextLost函数代码示例发布时间: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