当前位置: 首页>>代码示例>>C++>>正文


C++ setInline函数代码示例

本文整理汇总了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);
}
开发者ID:astojilj,项目名称:chromium-crosswalk,代码行数:7,代码来源:LayoutListMarker.cpp

示例2: RenderBlock

RenderRubyRun::RenderRubyRun(Node* node)
    : RenderBlock(node)
    , m_beingDestroyed(false)
{
    setReplaced(true);
    setInline(true);
}
开发者ID:azrul2202,项目名称:WebKit-Smartphone,代码行数:7,代码来源:RenderRubyRun.cpp

示例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 :)
}
开发者ID:Tkkg1994,项目名称:Platfrom-kccat6,代码行数:25,代码来源:RenderView.cpp

示例4: setInline

void RenderSVGInline::updateFromStyle()
{
    RenderInline::updateFromStyle();

    // SVG text layout code expects us to be an inline-level element.
    setInline(true);
}
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:7,代码来源:RenderSVGInline.cpp

示例5: RenderBox

RenderFrameSet::RenderFrameSet(HTMLFrameSetElement& frameSet, Ref<RenderStyle>&& style)
    : RenderBox(frameSet, WTF::move(style), 0)
    , m_isResizing(false)
    , m_isChildResizing(false)
{
    setInline(false);
}
开发者ID:cheekiatng,项目名称:webkit,代码行数:7,代码来源:RenderFrameSet.cpp

示例6: RenderBox

RenderFrameSet::RenderFrameSet(HTMLFrameSetElement* frameSet)
    : RenderBox(frameSet)
    , m_isResizing(false)
    , m_isChildResizing(false)
{
    setInline(false);
}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:7,代码来源:RenderFrameSet.cpp

示例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 :)
}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:30,代码来源:RenderView.cpp

示例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);
}
开发者ID:Dinesh-Ramakrishnan,项目名称:wt,代码行数:30,代码来源:WPaintedWidget.C

示例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);
}
开发者ID:pgquiles,项目名称:wt,代码行数:26,代码来源:WPaintedWidget.C

示例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);
}
开发者ID:halfkiss,项目名称:ComponentSuperAccessor,代码行数:30,代码来源:RenderView.cpp

示例11: RenderBlockFlow

RenderRubyBase::RenderRubyBase(Document& document, Ref<RenderStyle>&& style)
    : RenderBlockFlow(document, WTF::move(style))
    , m_initialOffset(0)
    , m_isAfterExpansion(true)
{
    setInline(false);
}
开发者ID:houzhenggang,项目名称:webkit,代码行数:7,代码来源:RenderRubyBase.cpp

示例12: WFormWidget

WLineEdit::WLineEdit(WContainerWidget *parent)
  : WFormWidget(parent),
    textSize_(10),
    maxLength_(-1),
    echoMode_(Normal)
{ 
  setInline(true);
  setFormObject(true);
}
开发者ID:ChowZenki,项目名称:wt,代码行数:9,代码来源:WLineEdit.C

示例13: WInteractWidget

WTemplate::WTemplate(WContainerWidget *parent)
  : WInteractWidget(parent),
    previouslyRendered_(0),
    newlyRendered_(0),
    encodeInternalPaths_(false),
    changed_(false)
{
  setInline(false);
}
开发者ID:ScienziatoBestia,项目名称:wt,代码行数:9,代码来源:WTemplate.C

示例14: WContainerWidget

WAnchor::WAnchor(WContainerWidget *parent)
  : WContainerWidget(parent),
    text_(0),
    image_(0),
    target_(TargetSelf),
    changeInternalPathJS_(0)
{
  setInline(true);
}
开发者ID:bvanhauwaert,项目名称:wt,代码行数:9,代码来源:WAnchor.C

示例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);
}
开发者ID:nickooms,项目名称:webkit,代码行数:10,代码来源:RenderScrollbarPart.cpp


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