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

C++ AddFrame函数代码示例

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

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



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

示例1: BackPaint

DockCont::DockCont()
{
	dragging = false;
	dockstate = STATE_NONE;
	base = NULL;
	waitsync = false;
	ignoreminsize = false;
	usersize.cx = usersize.cy = Null;
	BackPaint();
#ifdef PLATFORM_WIN32
	ToolWindow();
#endif
	NoCenter().Sizeable(true).MaximizeBox(false).MinimizeBox(false);

	AddFrame(FieldFrame());
	AddFrame(tabbar);
	AddFrame(handle);
	tabbar.AutoHideMin(1);
	tabbar.WhenCursor 		= THISBACK(TabSelected);
	tabbar.WhenDrag 		= THISBACK(TabDragged);
	tabbar.WhenContext 		= THISBACK(TabContext);
	tabbar.WhenClose 		= THISBACK(TabClosed);
	tabbar.WhenCloseAll		= THISBACK(RefreshLayout);
	tabbar.SetBottom();

	handle << close << autohide << windowpos;
	handle.WhenContext = THISBACK(WindowMenu);
	handle.WhenLeftDrag = THISBACK(MoveBegin);
	close.Tip(t_("Close")) 				<<= THISBACK(CloseAll);
	autohide.Tip(t_("Auto-Hide")) 		<<= THISBACK(AutoHide);
	windowpos.Tip(t_("Window Menu")) 	<<= THISBACK(WindowMenu);
	WhenClose 							= THISBACK(CloseAll);
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:33,代码来源:DockCont.cpp


示例2: GI

Apple::Apple(int rXPx, int rYPx)
{

	APPLESZX = GI("APPLESZX");
	APPLESZY = GI("APPLESZY");

	APPLE_BRTM = GF("APPLE_BRTM");

	mSizeX = APPLESZX;
	mSizeY = APPLESZY;

	mX = rXPx;
	mY = rYPx;
	mZ = 1.0f;

	mNo = 0;
	mTimer = 0.0f;
	mBaseStatus = NORMAL;

	// あたり判定
	AddFrame(FR_NORMAL);
	AddCircle(FR_NORMAL, SP->GRID_BOGYO, 20, 20, 15);

	AddFrame(FR_DISABLE);

	SetCurFrame(FR_DISABLE);

}
开发者ID:LakeIshikawa,项目名称:splstage2,代码行数:28,代码来源:Apple.cpp


示例3: TGMainFrame

RtMainFrame::RtMainFrame(const TGWindow* p) :
    TGMainFrame(p, 800, 600)
{
    // Create canvas
    TRootEmbeddedCanvas* eCanvas = new TRootEmbeddedCanvas("Embedded canvas",this,800,600);
    m_canvas = eCanvas->GetCanvas();
	AddFrame(eCanvas, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY,
                                        10, 10, 10, 1));

    // ========================================
    // Tooltip
    m_canvas->Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)",
                       "RtMainFrame", this, "eventHandler(Int_t,Int_t,Int_t,TObject*)");
    m_tip = new TGToolTip( gClient->GetDefaultRoot(), eCanvas, "", 0 );

    // ========================================
    // Buttons
	TGHorizontalFrame *hframe= new TGHorizontalFrame(this, 200,40);
    // Exit button
    hframe->AddFrame( new TGTextButton(hframe, "&Quit", "gApplication->Terminate()")
					, new TGLayoutHints(kLHintsCenterX,5,5,3,4));
    // Save button
    TGTextButton* buttonPDF = new TGTextButton(hframe, "Save &PDF");
    TQObject::Connect(buttonPDF, "Clicked()",
                     "RtMainFrame", this, "savePDF()" );
    hframe->AddFrame( buttonPDF
                    , new TGLayoutHints(kLHintsCenterX,5,5,3,4));
    AddFrame(hframe,new TGLayoutHints(kLHintsCenterX,2,2,2,2));
    
	// Sets window name and shows the main frame
	SetWindowName("RT-Biplot");
	MapSubwindows();
	Resize(GetDefaultSize());
	MapWindow();
}
开发者ID:Shimuuar,项目名称:root-plot,代码行数:35,代码来源:RtMainFrame.cpp


示例4: AddFrame

void AtmelSWIAnalyzer::ParsePacket(const SWI_Block& block, size_t block_ndx, const std::vector<std::pair<U64, U64> >& ByteSamples)
{
	const U8 Count = block.GetCount();

	// is this a status/response block?
	if (Count == 4)
	{
		// make a status block frame
		AddFrame(ByteSamples[1].first, ByteSamples[1].second, FramePacketSegment, 0, 0x100000000ull | (U64)block_ndx);
	} else {
		int offset = 1;		// I/O block offset - we are skipping the Count byte
		int param_cnt = 0;
		SWI_PacketParam* param;
		for (param_cnt = 0; PacketParams[param_cnt].Name != NULL; ++param_cnt)
		{
			param = PacketParams + param_cnt;

			if (param->IsCommand == block.IsCommand  &&  param->ForOpcode == block.Opcode
					&&  (Count == param->ValidIfCount  ||  param->ValidIfCount == 0))
			{
				// pack the offset and block index into mData2
				U64 data2 = offset;
				data2 <<= 32;
				data2 |= block_ndx;

				AddFrame(ByteSamples[offset].first, ByteSamples[offset + param->Length - 1].second, FramePacketSegment, 
								param_cnt, data2);

				offset += param->Length;
			}

			param++;
		}
	}
}
开发者ID:blargony,项目名称:RFFEAnalyzer,代码行数:35,代码来源:AtmelSWIAnalyzer.cpp


示例5: Size

Puzzle::Puzzle()
{
    size = Size(4, 4);
    AddFrame(menu);
    AddFrame(status);
    lang = LNG_ENGLISH;
    Init();
}
开发者ID:kolyden,项目名称:mirror,代码行数:8,代码来源:Puzzle.cpp


示例6: AddedToFrameCallback

void ZFrame_MemoryMonitor::AddedToFrameCallback(ZFrame * Frame)
{
  ULong i;

  for (i=0;i<8;i++) AddFrame(&Digits[i]);
  for (i=0;i<ZFRAME_MEMORYMONITOR_DISPLAYLINES;i++) AddFrame(&MemLines[i]);
  for (i=0;i<3;i++)  AddFrame(&DispSize[i]);

}
开发者ID:Blackvoxel,项目名称:Blackvoxel,代码行数:9,代码来源:ZGui_Memory_Monitor.cpp


示例7: AddDialogFrame

GtkWidget * AddDialogFrame( GtkWidget * parent )
{
 GtkWidget * frame;
 frame=AddFrame( NULL,GTK_SHADOW_IN,parent,1 );
 gtk_container_set_border_width( GTK_CONTAINER( frame ),1 );
 frame=AddFrame( NULL,GTK_SHADOW_NONE,frame,1 );
 frame=AddFrame( NULL,GTK_SHADOW_ETCHED_OUT,frame,1 );
 frame=AddFrame( NULL,GTK_SHADOW_NONE,frame,1 );
 return frame;
}
开发者ID:Gamer125,项目名称:wiibrowser,代码行数:10,代码来源:tools.c


示例8: parser

	void Animation::LoadFromFile(std::string _file)
	{
		Parser parser(_file);

		int isSpriteSheet = parser.retrieveContent("isSpriteSheet").getInt();
		int nbFrames = parser.retrieveContent("nbFrames").getInt();

		if( parser.retrieveContent("isLoop").getInt() )
			m_isLoop = true;
		else
			m_isLoop = false;

		if( isSpriteSheet )
		{
			ParserContent spriteSheetConfig = parser.retrieveContent("spriteSheetConfig");

			int width = spriteSheetConfig.getInt();
			int height = spriteSheetConfig.getInt();
			int nbWidth = spriteSheetConfig.getInt();
			int nbHeight = spriteSheetConfig.getInt();

			int w = width / nbWidth;
			int h = height / nbHeight;

			ParserContent frames = parser.retrieveContent("frames");

			for( int i = 0; i < nbFrames; i++ )
			{
				ParserContent frame = frames.getLineAsContent();

				std::string filePath = frame.getString();
				float duration = frame.getFloat();

				int x = i%nbWidth;
				int y = i / nbWidth;

				AddFrame(filePath, duration, sf::IntRect(x * w, y * h, w, h));
			}
		}
		else
		{
			ParserContent frames = parser.retrieveContent("frames");

			for( int i = 0; i < nbFrames; i++ )
			{
				ParserContent frame = frames.getLineAsContent();

				std::string filePath = frame.getString();
				float duration = frame.getFloat();

				AddFrame(filePath, duration);
			}
		}
	}
开发者ID:c6h8o7,项目名称:sfgmk,代码行数:54,代码来源:Animation.cpp


示例9: AddFrame

void FileTabsExample::OnAllAlign()
{
	if (allalign) {
		for (int i = 1; i < 4; i++)
			AddFrame(bar[i]);
	}
	else {
		for (int i = 0; i < 4; i++)
			bar[i].Remove();			
		ClearFrames();
		AddFrame(bar[0]);
	}
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:13,代码来源:main.cpp


示例10: GetSize

void DockBase::InitFrameWork()
{
	panesize = GetSize();
	int cx = panesize.cx / 4;
	int cy = panesize.cy / 3;
	
	AddFrame(hide[0]);
	AddFrame(hide[1]);
	AddFrame(hide[2]);
	AddFrame(hide[3]);

	hide[0].SetLayout(DockCtrlCustomFrame::LAYOUT_LEFT);
	hide[2].SetLayout(DockCtrlCustomFrame::LAYOUT_RIGHT);
	hide[1].SetLayout(DockCtrlCustomFrame::LAYOUT_TOP);
	hide[3].SetLayout(DockCtrlCustomFrame::LAYOUT_BOTTOM);	

	AddFrame(pane[0]);
	AddFrame(pane[2]);
	AddFrame(pane[1]);
	AddFrame(pane[3]);
	
	pane[0].SetLayout(this, PaneFrame::LEFT, cx);
	pane[2].SetLayout(this, PaneFrame::RIGHT, cx);
	pane[1].SetLayout(this, PaneFrame::TOP, cy);
	pane[3].SetLayout(this, PaneFrame::BOTTOM, cy);
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:26,代码来源:DockCtrl.cpp


示例11: AddFrame

void CMoveList::NewMove( const CBotMove& rMove, const CVector& vDelta )
{
	CMoveData*	pNewMoveData;
	double		nRenderTime;
	CVector		vTemp;

	// Deal with the rendering time
	nRenderTime = m_tLastSent.Elapsed();
	m_tLastSent.SetCurrent();
	m_nTotalTime += (float)nRenderTime;
	m_nTotalMoves++;
	// Prepare the new CMoveData object
	pNewMoveData = new CMoveData;
	rMove.PrepareMoveData( pNewMoveData, vDelta );
	pNewMoveData->SetMilliseconds( (BYTE)(nRenderTime * 1000) );
	AddFrame( pNewMoveData );
	// If this CBotMove moves the bot, record with a CSentMove
	if ( rMove.GetMove().Length() )
	{
		CSentMove*	pNewSentMove = new CSentMove( rMove );
		pNewSentMove->SetDuration( nRenderTime );
		pNewSentMove->Delta( vTemp );
		m_vDeltaOrigin += vTemp;
		m_lstSentMoves.AddTail( pNewSentMove );
	}
}
开发者ID:dwcullop,项目名称:PandoraQuake2Bot,代码行数:26,代码来源:MoveList.cpp


示例12: AddFrame

void IKTimelineModel::AddData(float time, float mix, bool isBlendPositive, Math::TweenType tweenType, const List<float>& args)
{
	mMixes.Add(mix);
	mBlendPositives.Add(isBlendPositive);
	AddFrame(time, (uint)mMixes.Count() - 1, tweenType, args);

}
开发者ID:johndpope,项目名称:Medusa,代码行数:7,代码来源:IKTimelineModel.cpp


示例13: AddFrame

Animation::Animation()
{
    max_width = 0.0f;
    max_height = 0.0f;

    error_frame = AddFrame(0,0,0,0,0,0, true);
}
开发者ID:akadjoker,项目名称:mob2d,代码行数:7,代码来源:Animation.cpp


示例14: ParseTile

// Parse a 'TILE' chunk and any image bearing chunks that immediately follow.
// 'tile_chunk_size' is the previously validated, padded chunk size.
static ParseStatus ParseTile(WebPDemuxer* const dmux,
                             uint32_t tile_chunk_size) {
  const int has_tiles = !!(dmux->feature_flags_ & TILE_FLAG);
  const uint32_t min_size = tile_chunk_size + CHUNK_HEADER_SIZE;
  int added_tile = 0;
  MemBuffer* const mem = &dmux->mem_;
  Frame* frame;
  ParseStatus status =
      NewFrame(mem, min_size, TILE_CHUNK_SIZE, tile_chunk_size, &frame);
  if (status != PARSE_OK) return status;

  frame->is_tile_  = 1;
  frame->x_offset_ = 2 * GetLE24s(mem);
  frame->y_offset_ = 2 * GetLE24s(mem);
  Skip(mem, tile_chunk_size - TILE_CHUNK_SIZE);  // skip any trailing data.

  // Store a (potentially partial) tile only if the tile flag is set
  // and the tile contains some data.
  status = StoreFrame(dmux->num_frames_, mem, frame);
  if (status != PARSE_ERROR && has_tiles && frame->frame_num_ > 0) {
    // Note num_frames_ is incremented only when all tiles have been consumed.
    added_tile = AddFrame(dmux, frame);
    if (!added_tile) status = PARSE_ERROR;
  }

  if (!added_tile) free(frame);
  return status;
}
开发者ID:ansgri,项目名称:rsdt-students,代码行数:30,代码来源:demux.c


示例15: AddFrame

HelpViewer::HelpViewer()
{
	// adds toolbar
	AddFrame(toolBar);
	
	// setups splitter and its contents
	Add(splitter);
	splitter.Horz(tocPane, contentsPane).SetPos(2500);
	contentsPane.AutoHideSb();
	contentsPane.SetZoom(Zoom(1,1));
	contentsPane.HMargins(20);
	
	tocPane.Add(mainTocTree.NoRoot().SizePos());
	
	// setup TOC link callback
	mainTocTree.WhenSel = THISBACK(tocLinkCb);
	contentsPane.WhenLink << THISBACK(contentLinkCb);

	// initialize link stack
	stack.Clear();
	tos = -1;
	
	Sizeable().Zoomable();

	// loads toolbar
	toolBar.Set(THISBACK(toolBarCb));
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:27,代码来源:HelpViewer.cpp


示例16: QFrame

void QModelRAW::Import()
{

	QFrame *pNewFrame = new QFrame(m_pEngine,1);	// Crea frame con espacio para 1 QMalla
	QMesh  *pNewMesh  = new QMesh(1);	// Crea QMalla con espacio para una QPrimitiva
	
	// Crea primitiva : QTriangleList basado en los datos leidos

	QTriangleList *pNewTriangleList = new QTriangleList(m_pEngine,NumVertex,pVertexList, NumTriangles,pTriangleList,0,NULL); // Crea lista de triangulos
	
	// Añadir primitiva a la QMalla

	pNewMesh->AddPrimitive(pNewTriangleList);

	// Añadir QMalla a QFrame

	pNewFrame->AddMesh(pNewMesh);

	// Añadir el QFrame final

	AddFrame(pNewFrame);

	// IMPORTANTE
	// SE CREAN AQUILAS MESHES
	
	//QMesh *pMesh = new QMesh(MAX_PRIMITIVES_PER_MESH,m_pEngine,NumVertex,pVertexList, NumTriangles,pTriangleList);

	//m_pMeshes[m_NumMeshes] = pMesh;
	//m_NumMeshes++;
//	delete pMesh; NO, porque se destruye en pmeshes

}
开发者ID:manufy,项目名称:QEngine,代码行数:32,代码来源:QModelRAW.cpp


示例17: CalculateDialogWidth

void CTaskDialog::LayoutControls(void)
{
	// layout controls

	int cx_buttons = 0;
	int cx_width = CalculateDialogWidth(cx_buttons);
	int cy_height = 0;

	int x = cx_margin;
	int y = cy_margin;

	// add content area

	{
		if (config_.pszMainInstruction != 0 || config_.pszMainIcon != 0)
			y += cy_spacing + AddMainInstruction(x, y, cx_width - cx_margin - cx_margin);
		if (config_.pszContent != 0)
			y += cy_spacing + AddContent(x, y, cx_width - cx_margin - cx_margin);
		if (config_.cRadioButtons != 0)
			y += cy_spacing + AddRadioButtons(x, y, cx_width - cx_margin - cx_margin);
		if (HasFlag(TDF_SHOW_PROGRESS_BAR))
			y += cy_spacing + AddProgressBar(x, y, cx_width - cx_margin - cx_margin);

		cy_height = y;
	}

	{
		y  = AddFrame(0, 0, cx_width, cy_height);
		y += AddDividingLine(0, y, cx_width);
		y += cy_spacing;
	}

	// add row of buttons

	{
		y += cy_spacing + AddButtons(cx_margin + cx_width - cx_buttons, y, cx_width);
	}

	// add verification text

	if (config_.pszVerificationText != 0) {
		y += cy_spacing + AddVerificationCheckBox(cx_margin, y, cx_width - cx_margin - cx_margin);
	}

	// add footer area

	if (config_.pszFooter != 0 || config_.pszFooterIcon != 0) {

		y += cy_spacing + AddFooterDividingLine(0, y, cx_width);
		y += cy_spacing + AddFooter(cx_margin, y, cx_width - cx_margin - cy_margin);
	}

	y += cy_margin - cy_spacing;
	y += ::GetSystemMetrics(SM_CYCAPTION);

	// update dialog dimension

	RECT rect = { 0, 0, cx_width, y };
	SetWindowPos(0, &rect, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER);
}
开发者ID:cherry-wb,项目名称:upgradr,代码行数:60,代码来源:CTaskDialog.cpp


示例18: AddFrame

MainDlg::MainDlg()
{
	::CtrlLayout( *this, "I18n Layout Test" );
	
	AddFrame( m_menu );
	m_menu.Set( THISBACK(OnMenu) );
	AddFrame( InsetFrame() );
	
	m_file <<= THISBACK(OnFile);
	m_pallette <<= THISBACK(OnPallette);
	m_printer <<= THISBACK(OnPrinter);
	
	OnChangeLanguage( ::GetCurrentLanguage() );
	
	m_close <<= Rejector( IDCANCEL );
}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:16,代码来源:main.cpp


示例19: AddFrame

ICCItem *CCodeChainCtx::RunLambda (ICCItem *pCode)

//	RunLambda
//
//	Runs a piece of code or a lambda expression
//	and returns a result (which must be discarded by the caller)

	{
	DEBUG_TRY

	AddFrame();

	//	If this is a lambda expression, then eval as if
	//	it were an expression with no arguments

	ICCItem *pResult;
	if (pCode->IsFunction())
		pResult = m_CC.Apply(pCode, m_CC.CreateNil(), this);
	else
		pResult = m_CC.TopLevel(pCode, this);

	//	Done

	RemoveFrame();

	return pResult;

	DEBUG_CATCH
	}
开发者ID:bmer,项目名称:Mammoth,代码行数:29,代码来源:CCodeChainCtx.cpp


示例20: AddFrame

void MediaRecorder::Stop()
{
    if(oc) {
	if(in_audio_buf2)
	    AddFrame((u16 *)0);
	av_write_trailer(oc);
	avformat_free_context(oc);
	oc = NULL;
    }
    if(audio_buf) {
	free(audio_buf);
	audio_buf = NULL;
    }
    if(video_buf) {
	free(video_buf);
	video_buf = NULL;
    }
    if(audio_buf2) {
	free(audio_buf2);
	audio_buf2 = NULL;
    }
    if(convpic) {
	avpicture_free((AVPicture *)convpic);
	av_free(convpic);
	convpic = NULL;
    }
    if(converter) {
	sws_freeContext(converter);
	converter = NULL;
    }
}
开发者ID:chipsoftwaretester,项目名称:OpenEmu,代码行数:31,代码来源:ffmpeg.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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