1
/****************************************************************************
3
GLUI User Interface Toolkit
4
---------------------------
6
glui_column.cpp - GLUI_Column control class
9
--------------------------------------------------
11
Copyright (c) 1998 Paul Rademacher
13
This program is freely distributable without licensing fees and is
14
provided without guarantee or warrantee expressed or implied. This
15
program is -not- in the public domain.
17
*****************************************************************************/
22
/**************************************** GLUI_Column::draw() ************/
24
void GLUI_Column::draw( int x, int y )
27
int panel_x, panel_y, panel_w, panel_h, panel_x_off, panel_y_off;
33
if ( int_val == 1 ) { /* Draw a vertical bar */
34
orig = set_to_glut_window();
36
if ( parent() != NULL ) {
37
get_this_column_dims(&panel_x, &panel_y, &panel_w, &panel_h,
38
&panel_x_off, &panel_y_off);
40
y_diff = y_abs - panel_y;
45
glColor3f( .5, .5, .5 );
46
glVertex2i( -GLUI_XOFF+1, -y_diff + GLUI_SEPARATOR_HEIGHT/2 );
47
glVertex2i( -GLUI_XOFF+1, -y_diff + panel_h - GLUI_SEPARATOR_HEIGHT/2);
49
glColor3f( 1.0, 1.0, 1.0 );
50
glVertex2i( -GLUI_XOFF+2, -y_diff + GLUI_SEPARATOR_HEIGHT/2 );
51
glVertex2i( -GLUI_XOFF+2, -y_diff + panel_h - GLUI_SEPARATOR_HEIGHT/2);
57
glColor3f( .5, .5, .5 );
60
/*glVertex2i( 0, -y_diff + GLUI_SEPARATOR_HEIGHT/2 ); */
61
/*glVertex2i( 0, -y_diff + panel_h - GLUI_SEPARATOR_HEIGHT/2); */
63
glColor3f( 1.0, 1.0, 1.0 );
66
/*glVertex2i( 1, -y_diff + GLUI_SEPARATOR_HEIGHT/2 ); */
67
/*glVertex2i( 1, -y_diff + panel_h - GLUI_SEPARATOR_HEIGHT/2); */