Lines Matching refs:frame

39 BCalendarView::BCalendarView(BRect frame, const char* name, uint32 resizeMask,
42 BView(frame, name, resizeMask, flags),
216 BCalendarView::DrawDay(BView* owner, BRect frame, const char* text,
219 _DrawItem(owner, frame, text, isSelected, isEnabled, focus, highlight);
224 BCalendarView::DrawDayName(BView* owner, BRect frame, const char* text)
227 // shrinks the frame to work properly when drawing a day item
228 _DrawItem(owner, frame.InsetByCopy(-1.0, -1.0), text, true);
233 BCalendarView::DrawWeekNumber(BView* owner, BRect frame, const char* text)
236 // shrinks the frame to work properly when drawing a day item
237 _DrawItem(owner, frame.InsetByCopy(-1.0, -1.0), text, true);
350 BRect frame = Bounds();
352 frame.top += frame.Height() / 7 - 1.0;
355 frame.left += frame.Width() / 8 - 1.0;
357 if (!frame.Contains(where))
361 frame = _SetNewSelectedDay(where);
373 Draw(frame);
646 BRect frame = Bounds();
648 frame.top += frame.Height() / 7 - 1.0;
651 frame.left += frame.Width() / 8 - 1.0;
653 Draw(frame.InsetBySelf(4.0, 4.0));
949 int32 column, int32 counter, BRect frame, const char* text,
971 DrawDay(this, frame, text, selected, enabled, focus, highlight);
978 BRect frame = _FirstCalendarItemFrame();
992 BRect tmp = frame;
1003 frame.OffsetBy(0.0, frame.Height());
1011 BRect frame = _FirstCalendarItemFrame();
1024 BRect tmp = frame;
1043 frame.OffsetBy(0.0, frame.Height());
1061 BRect frame = Bounds();
1062 frame.right = frame.Width() / columns - 1.0;
1063 frame.bottom = frame.Height() / 7.0 - 2.0;
1064 frame.OffsetBy(4.0, 4.0);
1068 DrawDayName(this, frame, "");
1069 frame.OffsetBy(frame.Width(), 0.0);
1072 DrawDayName(this, frame, fDayNames[i - offset].String());
1073 frame.OffsetBy(frame.Width(), 0.0);
1088 BRect frame = Bounds();
1089 frame.right = frame.Width() / 8.0 - 2.0;
1090 frame.bottom = frame.Height() / rows - 1.0;
1094 offsetY += frame.Height();
1096 frame.OffsetBy(4.0, offsetY);
1099 DrawWeekNumber(this, frame, fWeekNumbers[row].String());
1100 frame.OffsetBy(0.0, frame.Height());
1106 BCalendarView::_DrawItem(BView* owner, BRect frame, const char* text,
1133 FillRect(frame.InsetByCopy(1.0, 1.0));
1138 StrokeRect(frame.InsetByCopy(1.0, 1.0));
1148 float offsetH = frame.Width() / 2.0;
1149 float offsetV = frame.Height() / 2.0 + FontHeight(owner) / 2.0 - 2.0;
1158 DrawString(text, BPoint(frame.right - offsetH - StringWidth(text) / 2.0,
1159 frame.top + offsetV));
1169 BRect frame = _FirstCalendarItemFrame();
1182 BRect tmp = frame;
1203 frame.OffsetBy(0.0, frame.Height());
1211 BRect frame = _FirstCalendarItemFrame();
1224 BRect tmp = frame;
1252 frame.OffsetBy(0.0, frame.Height());
1291 BRect frame = Bounds();
1292 frame.right = frame.Width() / columns - 1.0;
1293 frame.bottom = frame.Height() / rows - 1.0;
1297 offsetY += frame.Height();
1301 offsetX += frame.Width();
1303 return frame.OffsetBySelf(offsetX, offsetY);
1310 BRect frame = _FirstCalendarItemFrame();
1314 BRect tmp = frame;
1332 frame.OffsetBy(0.0, frame.Height());
1335 return frame;
1342 BRect frame = _FirstCalendarItemFrame();
1346 BRect tmp = frame;
1353 frame.OffsetBy(0.0, frame.Height());
1356 return frame;