本文整理汇总了C++中MarkDirty函数的典型用法代码示例。如果您正苦于以下问题:C++ MarkDirty函数的具体用法?C++ MarkDirty怎么用?C++ MarkDirty使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MarkDirty函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: memset
void HFAEntry::SetName( const char *pszNodeName )
{
memset( szName, 0, 64 );
strncpy( szName, pszNodeName, 64 );
MarkDirty();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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);
}
示例8: MarkDirty
void Node::SetScale(const Vector3& scale)
{
scale_ = scale.Abs();
MarkDirty();
MarkNetworkUpdate();
}
示例9: memset
void HFAEntry::SetName( const char *pszNodeName )
{
memset( szName, 0, sizeof(szName) );
strncpy( szName, pszNodeName, sizeof(szName) );
szName[sizeof(szName)-1] = '\0';
MarkDirty();
}
示例10: ClearPictureList
/** Sets the Picture */
void Button::SetPicture(Sprite2D* newpic)
{
Sprite2D::FreeSprite( Picture );
ClearPictureList();
Picture = newpic;
MarkDirty();
Flags |= IE_GUI_BUTTON_PICTURE;
}
示例11: MarkDirty
/** Set Cursor */
void TextEdit::SetCursor(Sprite2D* cur)
{
core->GetVideoDriver()->FreeSprite( Cursor );
if (cur != NULL) {
Cursor = cur;
}
MarkDirty();
}
示例12: MarkDirty
void Sprite::SetHotSpot(const IntVector2& hotSpot)
{
if (hotSpot != hotSpot_)
{
hotSpot_ = hotSpot;
MarkDirty();
}
}
示例13: MonCbStreamWriteFinish
/**
* @pre ms != NULL
*/
static void MonCbStreamWriteFinish(mon_stream_t *ms)
{
assert( ms != NULL );
ms->counter++;
ms->strevt_flags |= ST_MOVED;
MarkDirty(ms);
}
示例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() */
}
示例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();
}