Lines Matching defs:frame
162 BLayoutUtils::AlignInFrame(BRect frame, BSize maxSize, BAlignment alignment)
165 if (maxSize.width < frame.Width()
167 frame.left += (int)((frame.Width() - maxSize.width)
169 frame.right = frame.left + maxSize.width;
171 if (maxSize.height < frame.Height()
173 frame.top += (int)((frame.Height() - maxSize.height)
175 frame.bottom = frame.top + maxSize.height;
178 return frame;
184 BLayoutUtils::AlignInFrame(BView* view, BRect frame)
191 if (maxSize.width < frame.Width()
193 frame.OffsetBy(floorf((frame.Width() - maxSize.width)
195 frame.right = frame.left + maxSize.width;
201 view->GetHeightForWidth(frame.Width(), &minHeight, &maxHeight,
203 frame.bottom = frame.top + std::max(frame.Height(), minHeight);
206 frame = AlignInFrame(frame, maxSize, alignment);
207 view->MoveTo(frame.LeftTop());
208 view->ResizeTo(frame.Size());
230 frame.
232 If the rectangle is too wide/high to fully fit in the frame, its left/top
236 \param frameSize The size of the frame the rect shall be moved into. The
237 frame's left-top is (0, 0).
290 BRect frame = view->Frame();
296 "%s frame: (%f, %f, %f, %f)\n"
301 indent.String(), frame.left, frame.top, frame.right, frame.bottom,
337 BRect frame = item->Frame();
349 "%s frame: (%f, %f, %f, %f)\n"
353 indent.String(), frame.left, frame.top, frame.right, frame.bottom,