PaneDivider::PaneDivider(MWindow *mwindow, int x, int y, int length, int is_x)
- : BC_SubWindow(x,
- y,
- is_x ? mwindow->theme->pane_w : length,
+ : BC_SubWindow(x,
+ y,
+ is_x ? mwindow->theme->pane_w : length,
is_x ? length : mwindow->theme->pane_h,
mwindow->theme->pane_color)
{
set_cursor(VSEPARATE_CURSOR, 0, 0);
image_src = mwindow->theme->get_image_set("ypane");
}
-
+
for(int i = 0; i < 3; i++)
{
images[i] = new BC_Pixmap(this, image_src[i], PIXMAP_ALPHA);
}
-
+
draw(0);
}
{
if(is_x)
{
- draw_3segmentv(0,
- 0,
+ draw_3segmentv(0,
+ 0,
get_h(),
images[status]);
}
else
{
- draw_3segmenth(0,
- 0,
+ draw_3segmenth(0,
+ 0,
get_w(),
images[status]);
}
void PaneDivider::reposition_window(int x, int y, int length)
{
- BC_SubWindow::reposition_window(x,
- y,
- is_x ? mwindow->theme->pane_w : length,
-
+ BC_SubWindow::reposition_window(x,
+ y,
+ is_x ? mwindow->theme->pane_w : length,
+
is_x ? length : mwindow->theme->pane_h);
}
if(button_down)
{
button_down = 0;
-
+
if(is_dragging)
{
is_dragging = 0;
status = BUTTON_UPHI;
draw(1);
}
-
+
return 1;
}
return 0;