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

C++ MarkDirty函数代码示例

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

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



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

示例1: memset

void HFAEntry::SetName( const char *pszNodeName )
{
  memset( szName, 0, 64 );
  strncpy( szName, pszNodeName, 64 );

  MarkDirty();
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:7,代码来源:hfaentry.cpp


示例2: GetTickCount

/** make SourceRGB go closer to DestRGB */
void Button::CloseUpColor()
{
	if (!starttime) return;
	//using the realtime timer, because i don't want to
	//handle Game at this point
	unsigned long newtime;

	newtime = GetTickCount();
	if (newtime<starttime) {
		return;
	}
	MarkDirty();
	Color nc;

	nc.r = (SourceRGB.r + DestRGB.r) / 2;
	nc.g = (SourceRGB.g + DestRGB.g) / 2;
	nc.b = (SourceRGB.b + DestRGB.b) / 2;
	nc.a = (SourceRGB.a + DestRGB.a) / 2;
	if (SourceRGB.r == nc.r &&
		SourceRGB.g == nc.g &&
		SourceRGB.b == nc.b &&
		SourceRGB.a == nc.a) {
		SourceRGB = DestRGB;
		starttime = 0;
		return;
	}

	SourceRGB = nc;
	starttime = newtime + 40;
}
开发者ID:ChunHungLiu,项目名称:gemrb,代码行数:31,代码来源:Button.cpp


示例3: mFirstChild

nsLineBox::nsLineBox(nsIFrame* aFrame, int32_t aCount, bool aIsBlock)
  : mFirstChild(aFrame)
// NOTE: memory is already zeroed since we allocate with AllocateByObjectID.
{
  MOZ_COUNT_CTOR(nsLineBox);
#ifdef DEBUG
  ++ctorCount;
  NS_ASSERTION(!aIsBlock || aCount == 1, "Blocks must have exactly one child");
  nsIFrame* f = aFrame;
  for (int32_t n = aCount; n > 0; f = f->GetNextSibling(), --n) {
    NS_ASSERTION(aIsBlock == f->IsBlockOutside(),
                 "wrong kind of child frame");
  }
#endif

  static_assert(NS_STYLE_CLEAR_LAST_VALUE <= 15,
                "FlagBits needs more bits to store the full range of "
                "break type ('clear') values");
#if NS_STYLE_CLEAR_NONE > 0
  mFlags.mBreakType = NS_STYLE_CLEAR_NONE;
#endif
  mChildCount = aCount;
  MarkDirty();
  mFlags.mBlock = aIsBlock;
}
开发者ID:hahajung,项目名称:mozilla-central,代码行数:25,代码来源:nsLineBox.cpp


示例4: mFirstChild

nsLineBox::nsLineBox(nsIFrame* aFrame, PRInt32 aCount, PRBool aIsBlock)
  : mFirstChild(aFrame),
    mBounds(0, 0, 0, 0),
    mAscent(0),
    mData(nsnull)
{
  MOZ_COUNT_CTOR(nsLineBox);
#ifdef DEBUG
  ++ctorCount;
  NS_ASSERTION(!aIsBlock || aCount == 1, "Blocks must have exactly one child");
  nsIFrame* f = aFrame;
  for (PRInt32 n = aCount; n > 0; f = f->GetNextSibling(), --n) {
    NS_ASSERTION(aIsBlock == f->GetStyleDisplay()->IsBlockOutside(),
                 "wrong kind of child frame");
  }
#endif

  mAllFlags = 0;
#if NS_STYLE_CLEAR_NONE > 0
  mFlags.mBreakType = NS_STYLE_CLEAR_NONE;
#endif
  SetChildCount(aCount);
  MarkDirty();
  mFlags.mBlock = aIsBlock;
}
开发者ID:lofter2011,项目名称:Icefox,代码行数:25,代码来源:nsLineBox.cpp


示例5: MarkDirty

/** Special Key Press */
bool TextEdit::OnSpecialKeyPress(unsigned char Key)
{
	MarkDirty();
	switch (Key) {
		case GEM_HOME:
			CurPos = 0;
			break;
		case GEM_END:
			CurPos = Text.length();
			break;
		case GEM_LEFT:
			if (CurPos > 0)
				CurPos--;
			break;
		case GEM_RIGHT:
			if (CurPos < Text.length()) {
				CurPos++;
			}
			break;
		case GEM_DELETE:
			if (CurPos < Text.length()) {
				Text.erase(CurPos, 1);
			}
			break;		
		case GEM_BACKSP:
			if (CurPos != 0) {
				Text.erase(--CurPos, 1);
			}
			break;
		case GEM_RETURN:
			RunEventHandler( EditOnDone );
	}
	RunEventHandler( EditOnChange );
	return true;
}
开发者ID:ChunHungLiu,项目名称:gemrb,代码行数:36,代码来源:TextEdit.cpp


示例6: strlcpy

/** Sets the Text of the current control */
void TextEdit::SetText(const char* string)
{
	int len = strlcpy( ( char * ) Buffer, string, max + 1 );
	if (len > max) CurPos = max + 1;
	else CurPos = len;
	MarkDirty();
}
开发者ID:BehoIder,项目名称:gemrb,代码行数:8,代码来源:TextEdit.cpp


示例7: MonCbStreamReplace

static void MonCbStreamReplace(mon_stream_t *ms, unsigned int new_sid)
{
	assert( ms != NULL );
	ms->state = ST_REPLACED;
	ms->sid = new_sid;
	MarkDirty(ms);
}
开发者ID:knz,项目名称:snet-rts,代码行数:7,代码来源:mon_snet.c


示例8: MarkDirty

void Node::SetScale(const Vector3& scale)
{
    scale_ = scale.Abs();
    MarkDirty();
    
    MarkNetworkUpdate();
}
开发者ID:acremean,项目名称:urho3d,代码行数:7,代码来源:Node.cpp


示例9: memset

void HFAEntry::SetName( const char *pszNodeName )
{
  memset( szName, 0, sizeof(szName) );
  strncpy( szName, pszNodeName, sizeof(szName) );
  szName[sizeof(szName)-1] = '\0';

  MarkDirty();
}
开发者ID:dlsyaim,项目名称:osgEarthX,代码行数:8,代码来源:hfaentry.cpp


示例10: ClearPictureList

/** Sets the Picture */
void Button::SetPicture(Sprite2D* newpic)
{
	Sprite2D::FreeSprite( Picture );
	ClearPictureList();
	Picture = newpic;
	MarkDirty();
	Flags |= IE_GUI_BUTTON_PICTURE;
}
开发者ID:ChunHungLiu,项目名称:gemrb,代码行数:9,代码来源:Button.cpp


示例11: MarkDirty

/** Set Cursor */
void TextEdit::SetCursor(Sprite2D* cur)
{
	core->GetVideoDriver()->FreeSprite( Cursor );
	if (cur != NULL) {
		Cursor = cur;
	}
	MarkDirty();
}
开发者ID:BehoIder,项目名称:gemrb,代码行数:9,代码来源:TextEdit.cpp


示例12: MarkDirty

void Sprite::SetHotSpot(const IntVector2& hotSpot)
{
    if (hotSpot != hotSpot_)
    {
        hotSpot_ = hotSpot;
        MarkDirty();
    }
}
开发者ID:ezhangle,项目名称:AtomicGameEngine,代码行数:8,代码来源:Sprite.cpp


示例13: MonCbStreamWriteFinish

/**
 * @pre ms != NULL
 */
static void MonCbStreamWriteFinish(mon_stream_t *ms)
{
	assert( ms != NULL );

	ms->counter++;
	ms->strevt_flags |= ST_MOVED;
	MarkDirty(ms);
}
开发者ID:knz,项目名称:snet-rts,代码行数:11,代码来源:mon_snet.c


示例14: MonCbStreamClose

/**
 * @pre ms != NULL
 */
static void MonCbStreamClose(mon_stream_t *ms)
{
	assert( ms != NULL );
	ms->state = ST_CLOSED;
	MarkDirty(ms);
	/* do not free ms, as it will be kept until its monintoring
     information has been output via dirty list upon TaskStop() */
}
开发者ID:knz,项目名称:snet-rts,代码行数:11,代码来源:mon_snet.c


示例15: MarkDirty

/** Clears the list of Pictures */
void Button::ClearPictureList()
{
	for (std::list<Sprite2D*>::iterator iter = PictureList.begin();
		 iter != PictureList.end(); ++iter)
		Sprite2D::FreeSprite( *iter );
	PictureList.clear();
	MarkDirty();
}
开发者ID:ChunHungLiu,项目名称:gemrb,代码行数:9,代码来源:Button.cpp


示例16: ClearPictureList

/** Sets the Picture */
void Button::SetPicture(Sprite2D* newpic)
{
	core->GetVideoDriver()->FreeSprite( Picture );
	ClearPictureList();
	Picture = newpic;
	MarkDirty();
	Flags |= IE_GUI_BUTTON_PICTURE;
}
开发者ID:BehoIder,项目名称:gemrb,代码行数:9,代码来源:Button.cpp


示例17: MarkDirty

/** Sets the actual Progressbar Position trimming to the Max and Min Values */
void Progressbar::SetPosition(unsigned int pos)
{
	if(pos>100) pos=100;
	if (Value == pos)
		return;
	Value = pos;
	MarkDirty();
}
开发者ID:ChunHungLiu,项目名称:gemrb,代码行数:9,代码来源:Progressbar.cpp


示例18: MarkDirty

/** Set BackGround */
void TextEdit::SetBackGround(Sprite2D* back)
{
	//if 'back' is NULL then no BackGround will be drawn
	if (Back)
		Sprite2D::FreeSprite(Back);
	Back = back;
	MarkDirty();
}
开发者ID:Esum,项目名称:gemrb,代码行数:9,代码来源:TextEdit.cpp


示例19: MarkDirty

/** Clears the list of Pictures */
void Button::ClearPictureList()
{
	Video* video = core->GetVideoDriver();
	for (std::list<Sprite2D*>::iterator iter = PictureList.begin();
		 iter != PictureList.end(); ++iter)
		video->FreeSprite( *iter );
	PictureList.clear();
	MarkDirty();
}
开发者ID:BehoIder,项目名称:gemrb,代码行数:10,代码来源:Button.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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