mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
apply new Item method name to various other usage sites
This commit is contained in:
parent
f913373351
commit
c9b8a91edb
4 changed files with 13 additions and 13 deletions
|
|
@ -61,7 +61,7 @@ Maschine2Knob::Maschine2Knob (PBD::EventLoop* el, Item* parent)
|
||||||
text->set_font_description (fd);
|
text->set_font_description (fd);
|
||||||
text->set_position (Duple (-_radius, _radius + 2));
|
text->set_position (Duple (-_radius, _radius + 2));
|
||||||
text->set_color (0xffffffff);
|
text->set_color (0xffffffff);
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
}
|
}
|
||||||
|
|
||||||
Maschine2Knob::~Maschine2Knob ()
|
Maschine2Knob::~Maschine2Knob ()
|
||||||
|
|
@ -153,7 +153,7 @@ Maschine2Knob::compute_bounding_box () const
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_bounding_box_dirty) {
|
if (bbox_dirty()) {
|
||||||
_bounding_box = Rect (- _radius, - _radius, _radius, _radius);
|
_bounding_box = Rect (- _radius, - _radius, _radius, _radius);
|
||||||
_bounding_box_dirty = false;
|
_bounding_box_dirty = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ Push2Knob::set_radius (double r)
|
||||||
{
|
{
|
||||||
_r = r;
|
_r = r;
|
||||||
text->set_position (Duple (-_r, -_r - 20));
|
text->set_position (Duple (-_r, -_r - 20));
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
redraw ();
|
redraw ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -241,14 +241,14 @@ Push2Knob::compute_bounding_box () const
|
||||||
{
|
{
|
||||||
if (!_canvas || _r == 0) {
|
if (!_canvas || _r == 0) {
|
||||||
_bounding_box = Rect ();
|
_bounding_box = Rect ();
|
||||||
_bounding_box_dirty = false;
|
set_bbox_clean ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_bounding_box_dirty) {
|
if (bbox_dirty()) {
|
||||||
Rect r = Rect (_position.x - _r, _position.y - _r, _position.x + _r, _position.y + _r);
|
Rect r = Rect (_position.x - _r, _position.y - _r, _position.x + _r, _position.y + _r);
|
||||||
_bounding_box = r;
|
_bounding_box = r;
|
||||||
_bounding_box_dirty = false;
|
set_bbox_clean ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Item::bounding_box() will add children */
|
/* Item::bounding_box() will add children */
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ Push2Layout::compute_bounding_box () const
|
||||||
* child boxes do not.
|
* child boxes do not.
|
||||||
*/
|
*/
|
||||||
_bounding_box = Rect (0, 0, display_width(), display_height());
|
_bounding_box = Rect (0, 0, display_width(), display_height());
|
||||||
_bounding_box_dirty = false;
|
set_bbox_clean ();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ WaveView::set_samples_per_pixel (double samples_per_pixel)
|
||||||
begin_change ();
|
begin_change ();
|
||||||
|
|
||||||
_props->samples_per_pixel = samples_per_pixel;
|
_props->samples_per_pixel = samples_per_pixel;
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
|
|
||||||
end_change ();
|
end_change ();
|
||||||
}
|
}
|
||||||
|
|
@ -1145,7 +1145,7 @@ WaveView::compute_bounding_box () const
|
||||||
_bounding_box = Rect ();
|
_bounding_box = Rect ();
|
||||||
}
|
}
|
||||||
|
|
||||||
_bounding_box_dirty = false;
|
set_bbox_clean ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -1157,7 +1157,7 @@ WaveView::set_height (Distance height)
|
||||||
_props->height = height;
|
_props->height = height;
|
||||||
_draw_image_in_gui_thread = true;
|
_draw_image_in_gui_thread = true;
|
||||||
|
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
end_change ();
|
end_change ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1169,7 +1169,7 @@ WaveView::set_channel (int channel)
|
||||||
begin_change ();
|
begin_change ();
|
||||||
_props->channel = channel;
|
_props->channel = channel;
|
||||||
reset_cache_group ();
|
reset_cache_group ();
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
end_change ();
|
end_change ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1319,7 +1319,7 @@ WaveView::set_region_start (sampleoffset_t start)
|
||||||
|
|
||||||
begin_change ();
|
begin_change ();
|
||||||
_props->region_start = start;
|
_props->region_start = start;
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
end_change ();
|
end_change ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1336,7 +1336,7 @@ WaveView::region_resized ()
|
||||||
begin_change ();
|
begin_change ();
|
||||||
_props->region_start = _region->start_sample();
|
_props->region_start = _region->start_sample();
|
||||||
_props->region_end = _region->start_sample() + _region->length_samples();
|
_props->region_end = _region->start_sample() + _region->length_samples();
|
||||||
_bounding_box_dirty = true;
|
set_bbox_dirty ();
|
||||||
end_change ();
|
end_change ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue