1
/****************************************************************************
3
GLUI User Interface Toolkit
4
---------------------------
6
glui_separator.cpp - GLUI_Separator 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_Separator::draw() **********/
24
void GLUI_Separator::draw( int x, int y )
26
int width, indent, orig;
27
int cont_x, cont_y, cont_w, cont_h, cont_x_off, cont_y_off;
32
orig = set_to_glut_window();
34
if ( parent() != NULL ) {
35
get_this_column_dims(&cont_x, &cont_y, &cont_w, &cont_h,
36
&cont_x_off, &cont_y_off);
38
width = cont_w - cont_x_off*2;
48
glColor3f( .5, .5, .5 );
49
glVertex2i( indent, GLUI_SEPARATOR_HEIGHT/2-1 );
50
glVertex2i( width-indent, GLUI_SEPARATOR_HEIGHT/2-1 );
52
glColor3f( 1., 1., 1. );
53
glVertex2i( indent, GLUI_SEPARATOR_HEIGHT/2 );
54
glVertex2i( width-indent, GLUI_SEPARATOR_HEIGHT/2 );