19 set_virtual_frame(PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top) {
30 _has_virtual_frame =
true;
31 _virtual_frame = frame;
34 _needs_remanage =
true;
36 _needs_recompute_clip =
true;
57 return _has_virtual_frame;
68 _has_virtual_frame =
false;
81 _manage_pieces = manage_pieces;
82 _needs_remanage =
true;
83 _needs_recompute_clip =
true;
92 return _manage_pieces;
106 _auto_hide = auto_hide;
109 _needs_remanage =
true;
130 if (_horizontal_slider !=
nullptr) {
131 _horizontal_slider->set_notify(
nullptr);
133 _horizontal_slider = horizontal_slider;
134 if (_horizontal_slider !=
nullptr) {
137 _needs_recompute_clip =
true;
156 return _horizontal_slider;
167 if (_vertical_slider !=
nullptr) {
168 _vertical_slider->set_notify(
nullptr);
170 _vertical_slider = vertical_slider;
171 if (_vertical_slider !=
nullptr) {
174 _needs_recompute_clip =
true;
193 return _vertical_slider;
const LVecBase4 & get_clip_frame() const
Returns the bounding rectangle of the clip frame.
void set_notify(PGSliderBarNotify *notify)
Sets the object which will be notified when the PGSliderBar changes.
Similar to MutexHolder, but for a light reentrant mutex.
This is a particular kind of PGItem that draws a little bar with a slider that moves from left to rig...