Lines Matching refs:column
70 BTextWidget::BTextWidget(Model* model, BColumn* column, BPoseView* view) in BTextWidget() argument
72 fText(WidgetAttributeText::NewWidgetText(model, column, view)), in BTextWidget()
73 fAttrHash(column->AttrHash()), in BTextWidget()
74 fAlignment(column->Alignment()), in BTextWidget()
75 fEditable(column->Editable()), in BTextWidget()
128 BTextWidget::ColumnRect(BPoint poseLoc, const BColumn* column, in ColumnRect() argument
134 return CalcRect(poseLoc, column, view); in ColumnRect()
137 result.left = column->Offset() + poseLoc.x; in ColumnRect()
138 result.right = result.left + column->Width(); in ColumnRect()
147 BTextWidget::CalcRectCommon(BPoint poseLoc, const BColumn* column, in CalcRectCommon() argument
155 viewWidth = std::min(column->Width(), textWidth); in CalcRectCommon()
157 poseLoc.x += column->Offset(); in CalcRectCommon()
167 + roundf((column->Width() - viewWidth) / 2); in CalcRectCommon()
175 result.right = poseLoc.x + column->Width(); in CalcRectCommon()
210 BTextWidget::CalcRect(BPoint poseLoc, const BColumn* column, in CalcRect() argument
213 return CalcRectCommon(poseLoc, column, view, fText->Width(view)); in CalcRect()
218 BTextWidget::CalcOldRect(BPoint poseLoc, const BColumn* column, in CalcOldRect() argument
221 return CalcRectCommon(poseLoc, column, view, fText->CurrentWidth()); in CalcOldRect()
226 BTextWidget::CalcClickRect(BPoint poseLoc, const BColumn* column, in CalcClickRect() argument
229 BRect result = CalcRect(poseLoc, column, view); in CalcClickRect()
233 if (column != NULL && column->Width() < kWidthMargin) in CalcClickRect()
234 result.right = result.left + column->Width(); in CalcClickRect()
473 BColumn* column = view->ColumnFor(fAttrHash); in StartEdit() local
474 ASSERT(column != NULL); in StartEdit()
475 fMaxWidth = column->Width(); in StartEdit()
555 BColumn* column = view->ColumnFor(fAttrHash); in StopEdit() local
556 ASSERT(column != NULL); in StopEdit()
557 if (column == NULL) in StopEdit()
567 view->Invalidate(ColumnRect(poseLoc, column, view)); in StopEdit()
582 BTextWidget::CheckAndUpdate(BPoint loc, const BColumn* column, in CheckAndUpdate() argument
587 oldRect = CalcOldRect(loc, column, view); in CheckAndUpdate()
591 BRect invalRect(ColumnRect(loc, column, view)); in CheckAndUpdate()