/haiku/src/add-ons/translators/wonderbrush/support/ |
H A D | blending.h | 216 blend_colors_copy(uint8* dest, uint8* bottom, uint8* top) in blend_colors_copy() argument 218 if (bottom[3] == 0 || top[3] == 255) { in blend_colors_copy() 219 dest[0] = top[0]; in blend_colors_copy() 220 dest[1] = top[1]; in blend_colors_copy() 221 dest[2] = top[2]; in blend_colors_copy() 222 dest[3] = top[3]; in blend_colors_copy() 225 top[0], top[1], top[2], top[3], in blend_colors_copy() 232 blend_pixels(uint8* bottom, uint8* top, uint8 alpha) in blend_pixels() argument 236 bottom[0] = top[0]; in blend_pixels() 237 bottom[1] = top[1]; in blend_pixels() [all …]
|
/haiku/src/kits/interface/ |
H A D | RegionSupport.cpp | 101 (r1)->bottom > (r2)->top && \ 102 (r1)->top < (r2)->bottom) 110 if ((r)->top < (idRect)->fBounds.top)\ 111 (idRect)->fBounds.top = (r)->top;\ 138 ((R-1)->top == (Ry1)) &&\ 148 (r)->top = (ry1);\ 164 (r)->top = (ry1);\ 180 ( ((r).top <= y)) ) 223 pReg->fBounds.top = 0; in miSetExtents() 241 pExtents->top = pBox->top; in miSetExtents() [all …]
|
H A D | Rect.cpp | 22 top = point.y; in SetLeftTop() 46 top = point.y; in SetRightTop() 55 top += point.y; in InsetBy() 65 top += dy; in InsetBy() 109 top += point.y; in OffsetBy() 119 top += dy; in OffsetBy() 163 bottom = (bottom - top) + point.y; in OffsetTo() 164 top = point.y; in OffsetTo() 173 bottom = (bottom - top) + y; in OffsetTo() 174 top=y; in OffsetTo() [all …]
|
/haiku/headers/private/interface/ |
H A D | clipping.h | 30 rect.top = min_c(r1.top, r2.top); in union_rect() 47 rect.top = max_c(r1.top, r2.top); in sect_rect() 60 rect.top += y; in offset_rect() 70 rect.top = (int)(rect.top * y); in scale_rect() 80 return BRect((float)rect.left, (float)rect.top, in to_BRect() 101 clipRect.top = (int32)rect.top; in to_clipping_rect() 114 && py >= rect.top && py <= rect.bottom) in point_in() 125 && pt.y >= rect.top && pt.y <= rect.bottom) in point_in() 134 return rect.top <= testRect.top && rect.bottom >= testRect.bottom in rect_contains() 143 if (rect.left <= rect.right && rect.top <= rect.bottom) in valid_rect() [all …]
|
H A D | RegionSupport.h | 90 int top, int bottom); 95 clipping_rect* rEnd, int top, int bottom); 99 int top, int bottom); 103 int top, int bottom); 106 int top, int bottom); 116 int top, 123 int top, 134 int top, 140 int top, 147 int top,
|
/haiku/src/apps/icon-o-matic/generic/command/ |
H A D | CommandStack.cpp | 68 Command* command = fUndoHistory.top(); in Undo() 92 Command* command = fRedoHistory.top(); in Redo() 115 fUndoHistory.top()->GetName(name); in GetUndoName() 131 fRedoHistory.top()->GetName(name); in GetRedoName() 145 delete fUndoHistory.top(); in Clear() 149 delete fRedoHistory.top(); in Clear() 164 fSavedCommand = fUndoHistory.top(); in Save() 179 if (fSavedCommand == fUndoHistory.top()) in IsSaved() 200 if (Command* top = fUndoHistory.top()) { in _AddCommand() local 201 if (command->UndoesPrevious(top)) { in _AddCommand() [all …]
|
/haiku/headers/os/interface/ |
H A D | Rect.h | 18 float top; variable 24 BRect(float left, float top, float right, 32 void Set(float left, float top, float right, 116 return BPoint(right, top); in RightTop() 124 top(0), in BRect() 132 BRect::BRect(float left, float top, float right, float bottom) in BRect() argument 135 top(top), in BRect() 146 top(other.top), in BRect() 157 top(leftTop.y), in BRect() 168 top(leftTop.y), in BRect() [all …]
|
/haiku/src/libs/alm/ |
H A D | ALMLayoutBuilder.cpp | 61 BALMLayoutBuilder::Add(BView* view, XTab* left, YTab* top, in Add() argument 64 Area* a = (fLayout->AddView(view, left, top, right, bottom)); in Add() 79 BALMLayoutBuilder::Add(BLayoutItem* item, XTab* left, YTab* top, in Add() argument 82 _SetCurrentArea(fLayout->AddItem(item, left, top, right, bottom)); in Add() 113 BALMLayoutBuilder::SetInsets(float left, float top, float right, in SetInsets() argument 116 fLayout->SetInsets(left, top, right, bottom); in SetInsets() 148 BALMLayoutBuilder::AddToLeft(BView* view, XTab* _left, YTab* top, YTab* bottom) in AddToLeft() argument 155 if (!top) in AddToLeft() 156 top = currentArea->Top(); in AddToLeft() 160 return Add(view, left, top, right, bottom); in AddToLeft() [all …]
|
H A D | ALMGroup.cpp | 67 ALMGroup::BuildLayout(BALMLayout* layout, XTab* left, YTab* top, XTab* right, in BuildLayout() argument 72 if (top == NULL) in BuildLayout() 73 top = layout->Top(); in BuildLayout() 79 _Build(layout, left, top, right, bottom); in BuildLayout() 100 BReference<YTab> top, BReference<XTab> right, BReference<YTab> bottom) const in _Build() argument 103 layout->AddItem(LayoutItem(), left, top, right, bottom); in _Build() 105 layout->AddView(View(), left, top, right, bottom); in _Build() 115 current._Build(layout, left, top, currentRight, bottom); in _Build() 123 current._Build(layout, left, top, right, currentBottom); in _Build() 124 top = currentBottom; in _Build()
|
/haiku/src/apps/mediaplayer/support/ |
H A D | CommandStack.cpp | 71 Command* command = fUndoHistory.top(); in Undo() 95 Command* command = fRedoHistory.top(); in Redo() 118 fUndoHistory.top()->GetName(name); in GetUndoName() 134 fRedoHistory.top()->GetName(name); in GetRedoName() 148 delete fUndoHistory.top(); in Clear() 152 delete fRedoHistory.top(); in Clear() 167 fSavedCommand = fUndoHistory.top(); in Save() 182 if (fSavedCommand == fUndoHistory.top()) in IsSaved() 203 if (Command* top = fUndoHistory.top()) { in _AddCommand() local 204 if (command->UndoesPrevious(top)) { in _AddCommand() [all …]
|
/haiku/src/add-ons/print/drivers/gutenprint/ |
H A D | Rectangle.h | 22 top(0), in Rectangle() 33 top(static_cast<T>(rect.top)), in Rectangle() 40 Rectangle(T left, T top, T right, T bottom) in Rectangle() argument 43 top(top), in Rectangle() 52 top = static_cast<T>(rect.top); 65 return bottom - top; in Height() 70 T top; variable
|
/haiku/src/servers/app/ |
H A D | IntRect.cpp | 19 top = p.y; in SetLeftTop() 43 top = p.y; in SetRightTop() 52 top += point.y; in InsetBy() 62 top += dy; in InsetBy() 106 top += point.y; in OffsetBy() 116 top += dy; in OffsetBy() 160 bottom = (bottom - top) + point.y; in OffsetTo() 161 top = point.y; in OffsetTo() 170 bottom = (bottom - top) + y; in OffsetTo() 171 top=y; in OffsetTo() [all …]
|
H A D | IntRect.h | 21 int32 top; variable 80 { return BRect(left, top, in BRect() 120 return IntPoint(right, top); in RightTop() 127 top = left = 0; in IntRect() 136 top = t; in IntRect() 146 top = r.top; in IntRect() 156 top = (int32)r.top; in IntRect() 166 top = leftTop.y; in IntRect() 176 top = from.top; 187 top = t; in Set() [all …]
|
/haiku/src/apps/icon-o-matic/generic/gui/popup_control/ |
H A D | SliderView.cpp | 43 fButtonRect.bottom = fButtonRect.top + buttonHeight; in SliderView() 93 BPoint(r.left, r.top), lightShadow); in Draw() 94 AddLine(BPoint(r.left + 1.0, r.top), in Draw() 95 BPoint(r.right, r.top), lightShadow); in Draw() 96 AddLine(BPoint(r.right, r.top + 1.0), in Draw() 103 BPoint(r.left, r.top), light); in Draw() 104 AddLine(BPoint(r.left + 1.0, r.top), in Draw() 105 BPoint(r.right, r.top), light); in Draw() 106 AddLine(BPoint(r.right, r.top + 1.0), in Draw() 113 BPoint(r.left, r.top), background); in Draw() [all …]
|
H A D | InputSlider.cpp | 191 BPoint(r.left, r.top), lightShadow); in DrawSlider() 192 AddLine(BPoint(r.left + 1.0, r.top), in DrawSlider() 193 BPoint(r.right, r.top), lightShadow); in DrawSlider() 194 AddLine(BPoint(r.right, r.top + 1.0), in DrawSlider() 202 BPoint(r.left, r.top), darkShadow); in DrawSlider() 203 AddLine(BPoint(r.left + 1.0, r.top), in DrawSlider() 204 BPoint(r.right, r.top), darkShadow); in DrawSlider() 205 AddLine(BPoint(r.right, r.top + 1.0), in DrawSlider() 214 BPoint(r.left, r.top + 1.0), midShadow); in DrawSlider() 215 AddLine(BPoint(r.left, r.top), in DrawSlider() [all …]
|
/haiku/src/add-ons/translators/wonderbrush/ |
H A D | Layer.cpp | 67 int32 left, top, right, bottom; in Compose() local 68 rect_to_int(r, left, top, right, bottom); in Compose() 73 src += 4 * left + bpr * top; in Compose() 74 dst += 4 * left + bpr * top; in Compose() 80 for (; top <= bottom; top++) { in Compose() 133 for (; top <= bottom; top++) { in Compose() 160 for (; top <= bottom; top++) { in Compose() 187 for (; top <= bottom; top++) { in Compose() 206 for (; top <= bottom; top++) { in Compose() 225 for (; top <= bottom; top++) { in Compose() [all …]
|
/haiku/src/add-ons/print/drivers/pcl6/ |
H A D | Rasterizer.cpp | 29 fBounds.top = (int)bounds.top; in SetBitmap() 33 int height = fBounds.bottom - fBounds.top + 1; in SetBitmap() 37 fBounds.bottom = fBounds.top + height - 1; in SetBitmap() 44 fHeight = fBounds.bottom - fBounds.top + 1; in SetBitmap() 49 fBits += fBounds.top * fBPR + fBounds.left * 4; in SetBitmap() 53 fY += fBounds.top; in SetBitmap() 54 fIndex = fBounds.top; in SetBitmap()
|
/haiku/src/add-ons/control_look/BeControlLook/ |
H A D | BeControlLook.cpp | 210 BPoint(rect.left, rect.top), darken2); in DrawCheckBox() 211 view->AddLine(BPoint(rect.left, rect.top), in DrawCheckBox() 212 BPoint(rect.right, rect.top), darken2); in DrawCheckBox() 216 BPoint(rect.right, rect.top), darken4); in DrawCheckBox() 223 BPoint(rect.left, rect.top), darken1); in DrawCheckBox() 224 view->AddLine(BPoint(rect.left, rect.top), in DrawCheckBox() 225 BPoint(rect.right, rect.top), darken1); in DrawCheckBox() 229 BPoint(rect.left, rect.top), darken4); in DrawCheckBox() 230 view->AddLine(BPoint(rect.left, rect.top), in DrawCheckBox() 231 BPoint(rect.right, rect.top), darken4); in DrawCheckBox() [all …]
|
/haiku/src/apps/haikudepot/edits_generic/ |
H A D | EditManager.cpp | 71 UndoableEditRef edit(fUndoHistory.top()); in Undo() 91 UndoableEditRef edit(fRedoHistory.top()); in Redo() 111 fUndoHistory.top()->GetName(name); in GetUndoName() 123 fRedoHistory.top()->GetName(name); in GetRedoName() 146 fEditAtSave = fUndoHistory.top(); in Save() 157 if (fEditAtSave == fUndoHistory.top()) in IsSaved() 195 const UndoableEditRef& top = fUndoHistory.top(); in _AddEdit() local 196 if (edit->UndoesPrevious(top.Get())) { in _AddEdit() 199 } else if (top->CombineWithNext(edit.Get())) { in _AddEdit() 204 if (top->InitCheck() != B_OK) { in _AddEdit() [all …]
|
/haiku/src/apps/pulse/ |
H A D | NormalPulseView.cpp | 201 StrokeLine(BPoint(innerRect.left, innerRect.top + 1), in DrawChip() 203 StrokeLine(BPoint(innerRect.right, innerRect.top + 1), in DrawChip() 205 StrokeLine(BPoint(innerRect.left + 1, innerRect.top), in DrawChip() 206 BPoint(innerRect.right - 1, innerRect.top), B_MIXED_COLORS); in DrawChip() 213 StrokeLine(BPoint(innerRect.left, innerRect.top + 6), in DrawChip() 215 StrokeLine(BPoint(innerRect.right, innerRect.top + 6), in DrawChip() 217 StrokeLine(BPoint(innerRect.left + 6, innerRect.top), in DrawChip() 218 BPoint(innerRect.right - 6, innerRect.top), B_MIXED_COLORS); in DrawChip() 225 StrokeLine(BPoint(innerRect.left, innerRect.top + 7), in DrawChip() 227 StrokeLine(BPoint(innerRect.right, innerRect.top + 7), in DrawChip() [all …]
|
H A D | ProgressBar.cpp | 22 float height = (r.bottom - r.top) - 8; in ProgressBar() 24 segments[counter].rect.Set(r.left + (counter * 7), r.top, in ProgressBar() 25 (r.left + (counter * 7) + 5), r.top + height); in ProgressBar() 114 start.Set(left, bounds.top); in Render() 157 StrokeLine(BPoint(frame.left, frame.top), BPoint(frame.right, frame.top)); in Draw() 158 StrokeLine(BPoint(frame.left, frame.top + 1), BPoint(frame.right, in Draw() 159 frame.top + 1)); in Draw() 160 StrokeLine(BPoint(frame.left, frame.top), BPoint(frame.left, in Draw() 162 StrokeLine(BPoint(frame.left + 1, frame.top), in Draw() 166 StrokeLine(BPoint(frame.right-1, frame.top + 2), in Draw() [all …]
|
/haiku/src/tests/kits/device/stickit_BJoystick/ |
H A D | JoystickWindow.cpp | 60 rect.top += 15; in JoystickView() 103 r.top += 18; in Draw() 109 r.top += 15; in Draw() 110 r.bottom = r.top + 30; in Draw() 120 AddLine(BPoint(r.left+10, r.top), BPoint(r.left+10, r.bottom), in Draw() 122 AddLine(BPoint(r.left+20, r.top), BPoint(r.left+20, r.bottom), in Draw() 124 AddLine(BPoint(r.left, r.top+10), BPoint(r.right, r.top+10), in Draw() 126 AddLine(BPoint(r.left, r.top+20), BPoint(r.right, r.top+20), in Draw() 129 curHatRect.Set(r.left, r.top, r.left+10, r.top+10); in Draw() 137 r.top += 20; in Draw() [all …]
|
/haiku/src/servers/app/drawing/Painter/bitmap_painter/ |
H A D | DrawBitmapNearestNeighbor.h | 42 if (clippingRegion.Frame().top > destinationRect.top) { in Draw() 43 filterWeightYIndexOffset = (int32)(clippingRegion.Frame().top in Draw() 44 - destinationRect.top); in Draw() 57 const int32 yBitmapShift = (int32)(destinationRect.top - offset.y); in Draw() 88 const int32 top = (int32)destinationRect.top; in Draw() local 104 int32 y1 = max_c(baseRenderer.ymin(), top); in Draw() 116 y1 -= top + filterWeightYIndexOffset; in Draw() 117 y2 -= top + filterWeightYIndexOffset; in Draw()
|
/haiku/src/apps/launchbox/ |
H A D | support.cpp | 70 stroke_frame(BView* v, BRect r, rgb_color left, rgb_color top, rgb_color right, in stroke_frame() argument 76 BPoint(r.left, r.top), left); in stroke_frame() 77 v->AddLine(BPoint(r.left + 1.0, r.top), in stroke_frame() 78 BPoint(r.right, r.top), top); in stroke_frame() 79 v->AddLine(BPoint(r.right, r.top + 1.0), in stroke_frame() 110 if (frame.top < screenFrame.top) in make_sure_frame_is_on_screen() 111 frame.OffsetBy(0.0, (screenFrame.top - frame.top)); in make_sure_frame_is_on_screen()
|
/haiku/headers/libs/alm/ |
H A D | ALMLayoutBuilder.h | 36 BALMLayoutBuilder& Add(BView* view, XTab* left, YTab* top, 41 YTab* top, XTab* right = NULL, 48 BALMLayoutBuilder& SetInsets(float left, float top, float right, 54 XTab* left = NULL, YTab* top = NULL, 57 XTab* right = NULL, YTab* top = NULL, 60 YTab* top = NULL, XTab* left = NULL, 66 XTab* left = NULL, YTab* top = NULL, 69 XTab* right = NULL, YTab* top = NULL, 72 YTab* top = NULL, XTab* left = NULL,
|