本文整理汇总了C++中DEFINE_STATIC_LOCAL函数的典型用法代码示例。如果您正苦于以下问题:C++ DEFINE_STATIC_LOCAL函数的具体用法?C++ DEFINE_STATIC_LOCAL怎么用?C++ DEFINE_STATIC_LOCAL使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DEFINE_STATIC_LOCAL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cachedFrameCounter
static WTF::RefCountedLeakCounter& cachedFrameCounter()
{
DEFINE_STATIC_LOCAL(WTF::RefCountedLeakCounter, counter, ("CachedFrame"));
return counter;
}
示例2: rowResizeCursor
const Cursor& rowResizeCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::RowResize));
return c;
}
示例3: northWestPanningCursor
const Cursor& northWestPanningCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::NorthWestPanning));
return c;
}
示例4: southWestResizeCursor
const Cursor& southWestResizeCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::SouthWestResize));
return c;
}
示例5: northWestSouthEastResizeCursor
const Cursor& northWestSouthEastResizeCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::NorthWestSouthEastResize));
return c;
}
示例6: notAllowedCursor
const Cursor& notAllowedCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::NotAllowed));
return c;
}
示例7: waitCursor
const Cursor& waitCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Wait));
return c;
}
示例8: handCursor
const Cursor& handCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Hand));
return c;
}
示例9: moveCursor
const Cursor& moveCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Move));
return c;
}
示例10: pointerCursor
const Cursor& pointerCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Pointer));
return c;
}
示例11: crossCursor
const Cursor& crossCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Cross));
return c;
}
示例12: DEFINE_STATIC_LOCAL
// We aim to match IE here.
// -IE uses a font based on the encoding as the default font for form controls.
// -Gecko uses MS Shell Dlg (actually calls GetStockObject(DEFAULT_GUI_FONT),
// which returns MS Shell Dlg)
// -Safari uses Lucida Grande.
//
// FIXME: The only case where we know we don't match IE is for ANSI encodings.
// IE uses MS Shell Dlg there, which we render incorrectly at certain pixel
// sizes (e.g. 15px). So, for now we just use Arial.
const String& RenderThemeChromiumSkia::defaultGUIFont()
{
DEFINE_STATIC_LOCAL(String, fontFace, ("Arial"));
return fontFace;
}
示例13: DEFINE_STATIC_LOCAL
const String& Animation::initialAnimationName()
{
DEFINE_STATIC_LOCAL(String, initialValue, (ASCIILiteral("none")));
return initialValue;
}
示例14: progressCursor
const Cursor& progressCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::Progress));
return c;
}
示例15: verticalTextCursor
const Cursor& verticalTextCursor()
{
DEFINE_STATIC_LOCAL(Cursor, c, (Cursor::VerticalText));
return c;
}