Searched refs:weight (Results 1 - 25 of 52) sorted by relevance

123

/haiku/headers/libs/agg/
H A Dagg_pattern_filters_rgba.h72 calc_type weight; local
80 weight = (line_subpixel_scale - x) *
82 r += weight * ptr->r;
83 g += weight * ptr->g;
84 b += weight * ptr->b;
85 a += weight * ptr->a;
89 weight = x * (line_subpixel_scale - y);
90 r += weight * ptr->r;
91 g += weight * ptr->g;
92 b += weight * pt
[all...]
H A Dagg_span_image_filter_rgba.h134 unsigned weight; local
145 weight = (image_subpixel_scale - x_hr) *
147 fg[0] += weight * *fg_ptr++;
148 fg[1] += weight * *fg_ptr++;
149 fg[2] += weight * *fg_ptr++;
150 fg[3] += weight * *fg_ptr;
153 weight = x_hr * (image_subpixel_scale - y_hr);
154 fg[0] += weight * *fg_ptr++;
155 fg[1] += weight * *fg_ptr++;
156 fg[2] += weight * *fg_pt
246 unsigned weight; local
479 unsigned weight; local
620 int weight = (weight_y * weight_array[x_hr] + local
742 int weight = (weight_y * weight_array[x_hr] + local
870 int weight = (weight_y * weight_array[x_hr] + local
[all...]
H A Dagg_span_image_filter_rgb.h132 unsigned weight; local
142 weight = (image_subpixel_scale - x_hr) *
144 fg[0] += weight * *fg_ptr++;
145 fg[1] += weight * *fg_ptr++;
146 fg[2] += weight * *fg_ptr;
149 weight = x_hr * (image_subpixel_scale - y_hr);
150 fg[0] += weight * *fg_ptr++;
151 fg[1] += weight * *fg_ptr++;
152 fg[2] += weight * *fg_ptr;
155 weight
239 unsigned weight; local
467 unsigned weight; local
603 int weight = (weight_y * weight_array[x_hr] + local
722 int weight = (weight_y * weight_array[x_hr] + local
846 int weight = (weight_y * weight_array[x_hr] + local
[all...]
H A Dagg_span_image_filter_gray.h233 unsigned weight; local
248 weight = (image_subpixel_scale - x_hr) *
253 fg += weight *
255 src_alpha += weight * base_mask;
259 fg += back_v * weight;
260 src_alpha += back_a * weight;
265 weight = x_hr * (image_subpixel_scale - y_hr);
269 fg += weight *
271 src_alpha += weight * base_mask;
275 fg += back_v * weight;
382 unsigned weight; local
603 int weight = (weight_y * weight_array[x_hr] + local
714 int weight = (weight_y * weight_array[x_hr] + local
[all...]
/haiku/src/kits/interface/
H A DGroupLayout.cpp22 const char* const kItemWeightField = "BGroupLayout:item:weight";
28 float weight; member in struct:BGroupLayout::ItemLayoutData
31 : weight(1)
106 return (data ? data->weight : 0);
111 BGroupLayout::SetItemWeight(int32 index, float weight) argument
117 data->weight = weight;
138 BGroupLayout::AddView(BView* child, float weight) argument
140 return AddView(-1, child, weight);
145 BGroupLayout::AddView(int32 index, BView* child, float weight) argument
170 AddItem(BLayoutItem* item, float weight) argument
177 AddItem(int32 index, BLayoutItem* item, float weight) argument
237 float weight; local
[all...]
H A DGroupLayoutBuilder.cpp94 BGroupLayoutBuilder::Add(BView* view, float weight) argument
97 layout->AddView(view, weight);
112 BGroupLayoutBuilder::Add(BLayoutItem* item, float weight) argument
115 layout->AddItem(item, weight);
122 float weight)
127 if (layout->AddView(group, weight))
147 BGroupLayoutBuilder::AddGlue(float weight) argument
150 layout->AddItem(BSpaceLayoutItem::CreateGlue(), weight); local
121 AddGroup(orientation orientation, float spacing, float weight) argument
H A DGridLayoutBuilder.cpp87 BGridLayoutBuilder::SetColumnWeight(int32 column, float weight) argument
89 fLayout->SetColumnWeight(column, weight);
95 BGridLayoutBuilder::SetRowWeight(int32 row, float weight) argument
97 fLayout->SetRowWeight(row, weight);
H A DSplitLayoutBuilder.cpp52 BSplitLayoutBuilder::Add(BView* view, float weight) argument
54 fView->AddChild(view, weight);
68 BSplitLayoutBuilder::Add(BLayoutItem* item, float weight) argument
70 fView->AddChild(item, weight);
H A DSplitView.cpp142 BSplitView::SetItemWeight(int32 index, float weight, bool invalidateLayout) argument
144 fSplitLayout->SetItemWeight(index, weight, invalidateLayout);
149 BSplitView::SetItemWeight(BLayoutItem* item, float weight) argument
151 fSplitLayout->SetItemWeight(item, weight);
205 BSplitView::AddChild(BView* child, float weight) argument
207 return fSplitLayout->AddView(child, weight);
212 BSplitView::AddChild(int32 index, BView* child, float weight) argument
214 return fSplitLayout->AddView(index, child, weight);
226 BSplitView::AddChild(BLayoutItem* child, float weight) argument
228 return fSplitLayout->AddItem(child, weight);
233 AddChild(int32 index, BLayoutItem* child, float weight) argument
[all...]
/haiku/src/libs/alm/
H A DRowColumnManager.cpp134 RowColumnManager::_PreferredHeight(Row* row, double& weight) argument
136 weight = 0;
147 weight += negPen;
151 weight = 1;
154 weight /= nAreas;
161 RowColumnManager::_PreferredWidth(Column* column, double& weight) argument
163 weight = 0;
175 weight += negPen;
179 weight = 1;
182 weight /
191 double weight; local
213 double weight; local
[all...]
H A DRowColumnManager.h54 double& weight);
56 double& weight);
/haiku/headers/os/interface/
H A DSplitLayoutBuilder.h21 BSplitLayoutBuilder& Add(BView* view, float weight);
23 BSplitLayoutBuilder& Add(BLayoutItem* item, float weight);
H A DGroupLayoutBuilder.h27 BGroupLayoutBuilder& Add(BView* view, float weight);
29 BGroupLayoutBuilder& Add(BLayoutItem* item, float weight);
33 float weight = 1.0f);
36 BGroupLayoutBuilder& AddGlue(float weight = 1.0f);
H A DSplitView.h40 void SetItemWeight(int32 index, float weight,
42 void SetItemWeight(BLayoutItem* item, float weight);
55 bool AddChild(BView* child, float weight);
57 float weight);
60 bool AddChild(BLayoutItem* child, float weight);
62 float weight);
H A DGridLayoutBuilder.h28 BGridLayoutBuilder& SetColumnWeight(int32 column, float weight);
29 BGridLayoutBuilder& SetRowWeight(int32 row, float weight);
H A DGroupLayout.h24 void SetItemWeight(int32 index, float weight);
28 virtual BLayoutItem* AddView(BView* child, float weight);
30 float weight);
34 virtual bool AddItem(BLayoutItem* item, float weight);
36 float weight);
H A DLayoutBuilder.h79 inline ThisBuilder& Add(BView* view, float weight);
81 inline ThisBuilder& Add(BLayoutItem* item, float weight);
85 float weight = 1.0f);
87 float weight = 1.0f);
89 float weight = 1.0f);
94 float weight = 1.0f);
96 float weight = 1.0f);
98 float weight = 1.0f);
102 float weight = 1.0f);
104 float weight
539 Add(BView* view, float weight) argument
557 Add(BLayoutItem* item, float weight) argument
566 AddGroup(orientation orientation, float spacing, float weight) argument
578 AddGroup(BGroupView* groupView, float weight) argument
589 AddGroup(BGroupLayout* groupLayout, float weight) argument
600 AddGrid(float horizontalSpacing, float verticalSpacing, float weight) argument
612 AddGrid(BGridLayout* gridLayout, float weight) argument
623 AddGrid(BGridView* gridView, float weight) argument
634 AddSplit(orientation orientation, float spacing, float weight) argument
646 AddSplit(BSplitView* splitView, float weight) argument
657 AddCards(float weight) argument
668 AddCards(BCardLayout* cardLayout, float weight) argument
679 AddCards(BCardView* cardView, float weight) argument
690 AddGlue(float weight) argument
692 fLayout->AddItem(BSpaceLayoutItem::CreateGlue(), weight); local
1078 SetColumnWeight(int32 column, float weight) argument
1087 SetRowWeight(int32 row, float weight) argument
1221 Add(BView* view, float weight) argument
1239 Add(BLayoutItem* item, float weight) argument
1248 AddGroup(orientation orientation, float spacing, float weight) argument
1260 AddGroup(BGroupView* groupView, float weight) argument
1271 AddGroup(BGroupLayout* groupLayout, float weight) argument
1282 AddGrid(float horizontalSpacing, float verticalSpacing, float weight) argument
1294 AddGrid(BGridView* gridView, float weight) argument
1305 AddGrid(BGridLayout* layout, float weight) argument
1316 AddSplit(orientation orientation, float spacing, float weight) argument
1328 AddCards(float weight) argument
1339 AddCards(BCardLayout* cardLayout, float weight) argument
1350 AddCards(BCardView* cardView, float weight) argument
[all...]
/haiku/src/add-ons/kernel/partitioning_systems/atari/
H A Datari.cpp82 float weight = 0.5; local
93 weight -= 0.1; /* possible but likely a PC sector */
95 weight -= 10;
98 weight -= 20;
109 weight -= 10.0;
112 weight -= 1.0;
114 weight -= 1.0;
116 weight -= 1.0;
120 weight -= 10;
128 weight
[all...]
/haiku/src/kits/interface/layouter/
H A DSimpleLayouter.cpp41 float weight; member in class:SimpleLayouter::ElementInfo
49 weight(1),
59 weight(1),
69 weight = info.weight;
164 SimpleLayouter::SetWeight(int32 element, float weight) argument
171 fElements[element].weight = weight;
259 info->weight = weights[i];
267 int64 weight local
295 int64 weight = 0; local
[all...]
H A DOneElementLayouter.h20 virtual void SetWeight(int32 element, float weight);
H A DCollapsingLayouter.cpp85 float weight; member in struct:CollapsingLayouter::ElementInfo
92 weight(0),
105 weight = other.weight;
173 CollapsingLayouter::SetWeight(int32 element, float weight) argument
179 elementInfo.weight = weight;
182 fLayouter->SetWeight(elementInfo.position, weight);
328 fLayouter->SetWeight(fElements[i].position, fElements[i].weight);
H A DCollapsingLayouter.h29 virtual void SetWeight(int32 element, float weight);
H A DLayouter.h32 virtual void SetWeight(int32 element, float weight) = 0;
/haiku/src/apps/debugger/user_interface/gui/util/
H A DGuiSettingsUtils.cpp20 if (settings.AddFloat("weight", view->ItemWeight(i)) != B_OK)
36 float weight; local
37 if (settings.FindFloat("weight", i, &weight) == B_OK)
38 view->SetItemWeight(i, weight, i == view->CountItems() - 1);
/haiku/src/servers/app/drawing/Painter/bitmap_painter/
H A DDrawBitmapBilinear.h31 uint16 weight; // weight of the pixel at index [0..255] member in struct:BitmapPainterPrivate::FilterInfo
78 // x and y are needed as indices into the weight arrays, so the
241 if (this->fWeightsY[yMax].weight == 255)
244 if (this->fWeightsX[xIndexMax].weight == 255)
248 // cache the weight of the top and bottom row
249 const uint16 wTop = this->fWeightsY[y1].weight;
250 const uint16 wBottom = 255 - this->fWeightsY[y1].weight;
265 const uint16 wLeft = this->fWeightsX[x].weight;
302 const uint16 wLeft = this->fWeightsX[x].weight;
[all...]

Completed in 186 milliseconds

123