/external/skia/src/views/ |
SkWidgets.cpp | 298 SkTextBox box; local 299 box.setMode(SkTextBox::kOneLine_Mode); 300 box.setSpacingAlign(SkTextBox::kCenter_SpacingAlign); 301 box.setBox(0, 0, this->width(), this->height()); 308 box.draw(canvas, label.c_str(), label.size(), p); 457 SkTextBox box; 459 box.setMode(fMode == kAutoWidth_Mode ? SkTextBox::kOneLine_Mode : SkTextBox::kLineBreak_Mode); 460 box.setSpacingAlign(this->getSpacingAlign()); 461 box.setBox(fMargin.fX, fMargin.fY, this->width() - fMargin.fX, this->height() - fMargin.fY); 462 box.draw(canvas, fText.c_str(), fText.size(), fPaint) [all...] |
/external/webkit/Source/WebCore/html/ |
HTMLImageElement.cpp | 279 RenderBox* box = renderBox(); local 280 return box ? adjustForAbsoluteZoom(box->contentWidth(), box) : 0; 302 RenderBox* box = renderBox(); local 303 return box ? adjustForAbsoluteZoom(box->contentHeight(), box) : 0;
|
/external/webkit/Source/WebCore/page/ |
PrintContext.cpp | 250 RenderBoxModelObject* box = enclosingBoxModelObject(element->renderer()); local 251 if (!box) 262 int top = box->offsetTop(); 263 int left = box->offsetLeft();
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
PathCG.cpp | 183 CGRect box = CGContextIsPathEmpty(context) ? CGRectZero : CGContextGetPathBoundingBox(context); local 186 return box;
|
/external/webkit/Source/WebCore/rendering/ |
RenderLineBoxList.cpp | 52 void RenderLineBoxList::appendLineBox(InlineFlowBox* box) 57 m_firstLineBox = m_lastLineBox = box; 59 m_lastLineBox->setNextLineBox(box); 60 box->setPreviousLineBox(m_lastLineBox); 61 m_lastLineBox = box; 79 void RenderLineBoxList::extractLineBox(InlineFlowBox* box) 83 m_lastLineBox = box->prevLineBox(); 84 if (box == m_firstLineBox) 86 if (box->prevLineBox()) 87 box->prevLineBox()->setNextLineBox(0) 335 RootInlineBox* box = 0; local [all...] |
RenderReplaced.cpp | 284 InlineBox* box = inlineBoxWrapper(); local 285 if (!box) 290 RootInlineBox* root = box->root(); 295 int blockDirectionPosition = box->isHorizontal() ? point.y() + y() : point.x() + x(); 296 int lineDirectionPosition = box->isHorizontal() ? point.x() + x() : point.y() + y(); 305 if (lineDirectionPosition <= box->logicalLeft() + (box->logicalWidth() / 2))
|
RenderThemeChromiumLinux.cpp | 273 const RenderBox* box = toRenderBox(o); local 275 extraParams.menuList.hasBorder = box->borderRight() || box->borderLeft() || box->borderTop() || box->borderBottom();
|
RenderTreeAsText.cpp | 251 // FIXME: Would be better to dump the bounding box x and y rather than the first run's x and y, but that would involve updating 264 // FIXME: Deliberately dump the "inner" box of table cells, since that is what current results reflect. We'd like 265 // to clean up the results to dump both the outer box and the intrinsic padding so that both bits of information are 307 const RenderBoxModelObject& box = *toRenderBoxModelObject(&o); local 308 if (box.borderTop() || box.borderRight() || box.borderBottom() || box.borderLeft()) { 314 if (!box.borderTop()) 317 ts << " (" << box.borderTop() << "px " [all...] |
/external/webkit/Tools/DumpRenderTree/chromium/ |
WebThemeControlDRTWin.cpp | 119 void WebThemeControlDRTWin::box(const SkIRect& rect, SkColor fillColor) function in class:WebThemeControlDRTWin 217 box(m_irect, outerColor); 222 box(lirect, innerColor); 295 // Indent amounts for the short and long sides of a scroll thumb box. 327 box(m_irect, m_bgColor); 335 // Indeterminate checkbox is a box containing '-'. 349 // Draw a box with a notch at the left. 357 // Draw a box with a notch at the right. 365 // Draw a box with a notch at the top. 373 // Draw a box with a notch at the bottom [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
BoundingBox.java | 52 * container for a group of vertices of a particular piece of geometry. This box
100 * <code>computeFromPoints</code> creates a new Bounding Box from a given
111 * <code>computeFromTris</code> creates a new Bounding Box from a given
206 * box of the points, then selects the smallest enclosing sphere of the box
262 * <code>transform</code> modifies the center of the box to reflect the
268 * box to store result in
272 BoundingBox box;
local 274 box = new BoundingBox();
276 box = (BoundingBox) store; 304 BoundingBox box; local [all...] |
/external/chromium/chrome/browser/ui/gtk/bookmarks/ |
bookmark_utils_gtk.cc | 63 GtkWidget* box = gtk_hbox_new(FALSE, kBarButtonPadding); local 64 gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 0); 78 gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 0); 90 gtk_container_add(GTK_CONTAINER(alignment), box); local
|
/external/chromium/chrome/browser/ui/gtk/ |
collected_cookies_gtk.cc | 28 // Padding within the banner box. 229 GtkWidget* box = gtk_hbox_new(FALSE, 0); local 230 gtk_box_pack_start(GTK_BOX(box), cookie_list_vbox, TRUE, TRUE, 232 return box; 315 GtkWidget* box = gtk_hbox_new(FALSE, 0); local 316 gtk_box_pack_start(GTK_BOX(box), cookie_list_vbox, TRUE, TRUE, 318 return box;
|
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
TestFancyCar.java | 123 // Box floor = new Box(Vector3f.ZERO, 140, 1f, 140); 164 BoundingBox box = (BoundingBox) chasis.getModelBound(); local 186 box = (BoundingBox) wheel_fr.getModelBound(); 187 wheelRadius = box.getYExtent(); 190 player.addWheel(wheel_fr.getParent(), box.getCenter().add(0, -front_wheel_h, 0), 195 box = (BoundingBox) wheel_fl.getModelBound(); 196 player.addWheel(wheel_fl.getParent(), box.getCenter().add(0, -front_wheel_h, 0), 201 box = (BoundingBox) wheel_br.getModelBound(); 202 player.addWheel(wheel_br.getParent(), box.getCenter().add(0, -back_wheel_h, 0) [all...] |
TestAttachDriver.java | 52 import com.jme3.scene.shape.Box; 115 Box floor = new Box(Vector3f.ZERO, 100, 1f, 100); 133 BoxCollisionShape box = new BoxCollisionShape(new Vector3f(1.2f, 0.5f, 2.4f)); local 134 compoundShape.addChildShape(box, new Vector3f(0, 1, 0));
|
TestHoveringTank.java | 173 BoundingBox box = (BoundingBox) missile.getWorldBound(); local 174 final Vector3f extent = box.getExtent(null);
|
/external/opencv/cv/src/ |
cvrotcalipers.cpp | 351 CvBox2D box; local 356 memset(&box, 0, sizeof(box)); 443 box.center.x = out[0].x + (out[1].x + out[2].x)*0.5f; 444 box.center.y = out[0].y + (out[1].y + out[2].y)*0.5f; 445 box.size.height = (float)sqrt((double)out[1].x*out[1].x + (double)out[1].y*out[1].y); 446 box.size.width = (float)sqrt((double)out[2].x*out[2].x + (double)out[2].y*out[2].y); 447 box.angle = (float)atan2( -(double)out[1].y, (double)out[1].x ); 451 box.center.x = (points[0].x + points[1].x)*0.5f; 452 box.center.y = (points[0].y + points[1].y)*0.5f [all...] |
/external/webkit/Source/WebCore/editing/ |
VisiblePosition.cpp | 115 InlineBox* box; local 117 p.getInlineBoxAndOffset(m_affinity, primaryDirection, box, offset); 118 if (!box) 121 RenderObject* renderer = box->renderer(); 124 if ((renderer->isReplaced() || renderer->isBR()) && offset == box->caretRightmostOffset()) 125 return box->isLeftToRightDirection() ? previousVisuallyDistinctCandidate(m_deepPosition) : nextVisuallyDistinctCandidate(m_deepPosition); 127 offset = box->isLeftToRightDirection() ? renderer->previousOffset(offset) : renderer->nextOffset(offset); 129 int caretMinOffset = box->caretMinOffset(); 130 int caretMaxOffset = box->caretMaxOffset(); 135 if (box->isLeftToRightDirection() ? offset < caretMinOffset : offset > caretMaxOffset) 266 InlineBox* box; local [all...] |
/external/webkit/Source/WebCore/rendering/svg/ |
SVGRenderTreeAsText.cpp | 434 SVGRootInlineBox* box = static_cast<SVGRootInlineBox*>(text.firstRootBox()); local 435 if (!box) 440 int logicalWidth = ceilf(box->x() + box->logicalWidth()) - box->x(); 441 ts << " at (" << text.x() << "," << text.y() << ") size " << logicalWidth << "x" << box->logicalHeight(); 509 for (InlineTextBox* box = text.firstTextBox(); box; box = box->nextTextBox()) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MailboxFinderTest.java | 109 Mailbox box = new Mailbox(); local 110 box.mServerId = box.mDisplayName = "mailbox"; 111 box.mAccountKey = accountId; 112 box.mType = mailboxType; 113 box.mFlagVisible = true; 114 box.mVisibleLimit = Email.VISIBLE_LIMIT_DEFAULT; 115 box.save(mProviderContext); 116 return box.mId;
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
ViewHierarchyScene.java | 74 GradientWidget box = new GradientWidget(this, node); local 75 box.setLayout(LayoutFactory.createVerticalFlowLayout()); 76 box.setBorder(BorderFactory.createLineBorder(2, Color.BLACK)); 77 box.setOpaque(true); 85 box.addChild(label); 93 box.addressWidget = label; 95 box.addChild(label); 103 box.addChild(label); 105 return box;
|
/external/webkit/Source/WebCore/css/ |
CSSComputedStyleDeclaration.cpp | 460 RenderBox* box = toRenderBox(renderer); 461 return box->style()->boxSizing() == CONTENT_BOX ? box->contentBoxRect() : box->borderBoxRect(); 474 IntRect box = sizingBox(renderer); 477 style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOrigin); 921 EFillBox box = isClip ? layers->clip() : layers->origin(); local 927 EFillBox box = isClip ? currLayer->clip() : currLayer->origin(); local 1599 IntRect box = sizingBox(renderer); local 1643 IntRect box = sizingBox(renderer); local [all...] |
/external/webkit/Source/WebCore/dom/ |
ContainerNode.cpp | 865 RenderBox* box = toRenderBox(o); local 866 point.move(box->x(), box->y()); 890 RenderBox* box = toRenderBox(o); local 892 point.move(box->width(), box->height()); 922 RenderBox* box = toRenderBox(o); local 923 point.move(box->x() + box->width(), box->y() + box->height()) [all...] |
Position.cpp | 400 for (InlineTextBox *box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) { 401 int start = box->start(); 402 int end = box->start() + box->len(); 409 result += box->len(); 592 for (InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) 1086 InlineTextBox* box; local [all...] |
/external/webkit/Source/WebCore/inspector/front-end/ |
MetricsSidebarPane.js | 106 if (style.getPropertyValue("box-sizing") === "border-box") { 119 if (style.getPropertyValue("box-sizing") === "border-box") { 211 startEditing: function(targetElement, box, styleProperty, computedStyle) 216 var context = { box: box, styleProperty: styleProperty, computedStyle: computedStyle }; 240 if (context.box !== "position" && (!userInput || userInput === "\u2012")) 242 else if (context.box === "position" && (!userInput || userInput === "\u2012")) 253 if (computedStyle.getPropertyValue("box-sizing") === "border-box" && (styleProperty === "width" || styleProperty === "height")) [all...] |
/external/webkit/Source/WebCore/platform/gtk/ |
RenderThemeGtk.cpp | 163 const RenderBox* box = toRenderBox(o); local 164 return box->marginTop() + box->height() - 2; 310 // We also add one pixel here to ensure that the y coordinate is rounded up for box heights 311 // that are even, which looks in relation to the box text. 314 // Make sure the scaled decoration stays square and will fit in its parent's box.
|