本文整理汇总了C++中setInline函数的典型用法代码示例。如果您正苦于以下问题:C++ setInline函数的具体用法?C++ setInline怎么用?C++ setInline使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setInline函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LayoutBox
LayoutListMarker::LayoutListMarker(LayoutListItem* item)
: LayoutBox(nullptr)
, m_listItem(item)
{
setInline(true);
setIsAtomicInlineLevel(true);
}
示例2: RenderBlock
RenderRubyRun::RenderRubyRun(Node* node)
: RenderBlock(node)
, m_beingDestroyed(false)
{
setReplaced(true);
setInline(true);
}
示例3: RenderBlockFlow
RenderView::RenderView(Document* document)
: RenderBlockFlow(document)
, m_frameView(document->view())
, m_selectionStart(0)
, m_selectionEnd(0)
, m_selectionStartPos(-1)
, m_selectionEndPos(-1)
, m_maximalOutlineSize(0)
, m_pageLogicalHeight(0)
, m_pageLogicalHeightChanged(false)
, m_layoutState(0)
, m_layoutStateDisableCount(0)
, m_renderQuoteHead(0)
, m_renderCounterCount(0)
{
// init RenderObject attributes
setInline(false);
m_minPreferredLogicalWidth = 0;
m_maxPreferredLogicalWidth = 0;
setPreferredLogicalWidthsDirty(MarkOnlyThis);
setPositionState(AbsolutePosition); // to 0,0 :)
}
示例4: setInline
void RenderSVGInline::updateFromStyle()
{
RenderInline::updateFromStyle();
// SVG text layout code expects us to be an inline-level element.
setInline(true);
}
示例5: RenderBox
RenderFrameSet::RenderFrameSet(HTMLFrameSetElement& frameSet, Ref<RenderStyle>&& style)
: RenderBox(frameSet, WTF::move(style), 0)
, m_isResizing(false)
, m_isChildResizing(false)
{
setInline(false);
}
示例6: RenderBox
RenderFrameSet::RenderFrameSet(HTMLFrameSetElement* frameSet)
: RenderBox(frameSet)
, m_isResizing(false)
, m_isChildResizing(false)
{
setInline(false);
}
示例7: RenderBlock
RenderView::RenderView(Node* node, FrameView* view)
: RenderBlock(node)
, m_frameView(view)
, m_selectionStart(0)
, m_selectionEnd(0)
, m_selectionStartPos(-1)
, m_selectionEndPos(-1)
, m_printImages(true)
, m_maximalOutlineSize(0)
, m_bestTruncatedAt(0)
, m_truncatorWidth(0)
, m_minimumColumnHeight(0)
, m_forcedPageBreak(false)
, m_layoutState(0)
, m_layoutStateDisableCount(0)
{
// Clear our anonymous bit, set because RenderObject assumes
// any renderer with document as the node is anonymous.
setIsAnonymous(false);
// init RenderObject attributes
setInline(false);
m_minPrefWidth = 0;
m_maxPrefWidth = 0;
setPrefWidthsDirty(true, false);
setPositioned(true); // to 0,0 :)
}
示例8: WInteractWidget
WPaintedWidget::WPaintedWidget(WContainerWidget *parent)
: WInteractWidget(parent),
preferredMethod_(HtmlCanvas),
painter_(0),
needRepaint_(false),
sizeChanged_(false),
areaImageAdded_(false),
repaintFlags_(0),
areaImage_(0),
renderWidth_(0), renderHeight_(0)
{
if (WApplication::instance()) {
const WEnvironment& env = WApplication::instance()->environment();
if (env.agentIsOpera()
&& env.userAgent().find("Mac OS X") == std::string::npos)
preferredMethod_ = InlineSvgVml;
}
setLayoutSizeAware(true);
setJavaScriptMember(WT_RESIZE_JS,
"function(self, w, h) {"
"""var u = $(self).find('canvas, img');"
"""if (w >= 0) "
"" "u.width(w);"
"""if (h >= 0) "
"" "u.height(h);"
"}");
setInline(false);
}
示例9: WInteractWidget
WPaintedWidget::WPaintedWidget(WContainerWidget *parent)
: WInteractWidget(parent),
preferredMethod_(HtmlCanvas),
painter_(0),
needRepaint_(false),
sizeChanged_(false),
areaImageAdded_(false),
repaintFlags_(0),
areaImage_(0),
renderWidth_(0), renderHeight_(0),
repaintSlot_("function() {"
"var o=" + this->objJsRef() + ";"
"if(o){o.repaint();}"
"}", this),
jsObjects_(this->objJsRef())
{
if (WApplication::instance()) {
const WEnvironment& env = WApplication::instance()->environment();
if (env.agentIsOpera()
&& env.userAgent().find("Mac OS X") == std::string::npos)
preferredMethod_ = InlineSvgVml;
}
setInline(false);
}
示例10: RenderBlock
RenderView::RenderView(Node* node, FrameView* view)
: RenderBlock(node)
, m_frameView(view)
, m_selectionStart(0)
, m_selectionEnd(0)
, m_selectionStartPos(-1)
, m_selectionEndPos(-1)
, m_printImages(true)
, m_maximalOutlineSize(0)
, m_layoutState(0)
, m_layoutStateDisableCount(0)
{
// Clear our anonymous bit, set because RenderObject assumes
// any renderer with document as the node is anonymous.
setIsAnonymous(false);
// init RenderObject attributes
setInline(false);
m_minPrefWidth = 0;
m_maxPrefWidth = 0;
setPrefWidthsDirty(true, false);
setPositioned(true); // to 0,0 :)
// Create a new root layer for our layer hierarchy.
m_layer = new (node->document()->renderArena()) RenderLayer(this);
setHasLayer(true);
}
示例11: RenderBlockFlow
RenderRubyBase::RenderRubyBase(Document& document, Ref<RenderStyle>&& style)
: RenderBlockFlow(document, WTF::move(style))
, m_initialOffset(0)
, m_isAfterExpansion(true)
{
setInline(false);
}
示例12: WFormWidget
WLineEdit::WLineEdit(WContainerWidget *parent)
: WFormWidget(parent),
textSize_(10),
maxLength_(-1),
echoMode_(Normal)
{
setInline(true);
setFormObject(true);
}
示例13: WInteractWidget
WTemplate::WTemplate(WContainerWidget *parent)
: WInteractWidget(parent),
previouslyRendered_(0),
newlyRendered_(0),
encodeInternalPaths_(false),
changed_(false)
{
setInline(false);
}
示例14: WContainerWidget
WAnchor::WAnchor(WContainerWidget *parent)
: WContainerWidget(parent),
text_(0),
image_(0),
target_(TargetSelf),
changeInternalPathJS_(0)
{
setInline(true);
}
示例15: setInline
void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
{
RenderBlock::styleDidChange(diff, oldStyle);
setInline(false);
clearPositionedState();
setFloating(false);
setHasOverflowClip(false);
if (oldStyle && m_scrollbar && m_part != NoPart && diff >= StyleDifferenceRepaint)
m_scrollbar->theme()->invalidatePart(*m_scrollbar, m_part);
}