- Timestamp:
- Jun 2, 2006, 11:50:17 AM (18 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_checkbutton.cc
r8116 r8117 96 96 glBegin(GL_QUADS); 97 97 glColor3f( 1, 1 ,1); 98 glTexCoord2i(0,0); glVertex2d( 8,8);99 glTexCoord2i(0,1); glVertex2d( 8, this->getSizeY2D()-8);100 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8 , this->getSizeY2D()-8);101 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8 ,8);98 glTexCoord2i(0,0); glVertex2d(borderLeft()+8, borderTop()+8); 99 glTexCoord2i(0,1); glVertex2d(borderLeft() + 8, this->getSizeY2D()-8 - (borderTop() + borderBottom())); 100 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8 +borderLeft(), this->getSizeY2D()-8- (borderTop() + borderBottom())); 101 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8 +borderLeft(), borderTop()+8); 102 102 glEnd(); 103 103 … … 107 107 glLineWidth(3.0); 108 108 glBegin(GL_LINE_LOOP); 109 glVertex2d( 8,8);110 glVertex2d(this->getSizeY2D()/2 , this->getSizeY2D()/2 - 1);109 glVertex2d(borderLeft()+8,borderTop() +8); 110 glVertex2d(this->getSizeY2D()/2 + borderLeft(), this->getSizeY2D()/2 - 1); 111 111 112 glVertex2d(this->getSizeY2D() -8,8);113 glVertex2d(this->getSizeY2D()/2 +1 , this->getSizeY2D()/2);112 glVertex2d(this->getSizeY2D()-8 + borderLeft(), borderTop()+8); 113 glVertex2d(this->getSizeY2D()/2 +1 + borderLeft(), this->getSizeY2D()/2); 114 114 115 glVertex2d(this->getSizeY2D() -8, this->getSizeY2D() - 8);116 glVertex2d(this->getSizeY2D()/2 , this->getSizeY2D()/2+1);115 glVertex2d(this->getSizeY2D()-8 + borderLeft(), this->getSizeY2D()-8- (borderTop() + borderBottom())); 116 glVertex2d(this->getSizeY2D()/2 + borderLeft(), this->getSizeY2D()/2+1); 117 117 118 glVertex2d( 8, this->getSizeY2D() - 8);119 glVertex2d(this->getSizeY2D()/2 -1 , this->getSizeY2D()/2);118 glVertex2d(borderLeft() + 8, this->getSizeY2D()-8 - (borderTop() + borderBottom())); 119 glVertex2d(this->getSizeY2D()/2 -1 + borderLeft(), this->getSizeY2D()/2); 120 120 glEnd(); 121 121 } … … 124 124 glBegin(GL_QUADS); 125 125 glColor3f(0, 0, 0); 126 glTexCoord2i(0,0); glVertex2d( 8,8);127 glTexCoord2i(0,1); glVertex2d( 8, this->getSizeY2D()-8);128 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8 , this->getSizeY2D()-8);129 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8 ,8);126 glTexCoord2i(0,0); glVertex2d(borderLeft()+8, borderTop()+8); 127 glTexCoord2i(0,1); glVertex2d(borderLeft()+ 8, this->getSizeY2D()-8 - (borderTop() + borderBottom())); 128 glTexCoord2i(1,1); glVertex2d(this->getSizeY2D()-8 +borderLeft(), this->getSizeY2D()-8- (borderTop() + borderBottom())); 129 glTexCoord2i(1,0); glVertex2d(this->getSizeY2D()-8 +borderLeft(), borderTop()+8); 130 130 glEnd(); 131 131 } -
branches/gui/src/lib/gui/gl_gui/glgui_image.cc
r8115 r8117 75 75 void GLGuiImage::resize() 76 76 { 77 this->frontRect().setTopLeft(this->borderLeft(), this->border Right());77 this->frontRect().setTopLeft(this->borderLeft(), this->borderTop()); 78 78 this->frontRect().setSize(this->getSizeX2D() - (borderLeft() + borderRight()), this->getSizeY2D() - (borderTop() + borderBottom()) ); 79 79 GLGuiWidget::resize(); -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r8116 r8117 49 49 50 50 GLGuiWidget::resize(); 51 this->frontRect().setTopLeft(borderLeft(), border Right());51 this->frontRect().setTopLeft(borderLeft(), borderTop()); 52 52 this->frontRect().setSize(this->getSizeX2D() - (borderLeft() + borderRight()), this->getSizeY2D() - (borderTop() + borderBottom())); 53 53 } -
branches/gui/src/lib/gui/gl_gui/glgui_slider.cc
r8115 r8117 231 231 this->drawRect(this->frontRect()); 232 232 233 this->drawRect(Rect2D(this->sliderPosition()-_sliderWidth/2.0, border Left(), _sliderWidth, this->getSizeY2D() - (borderLeft() + borderRight())));233 this->drawRect(Rect2D(this->sliderPosition()-_sliderWidth/2.0, borderTop(), _sliderWidth, this->getSizeY2D() - (borderTop() + borderBottom()))); 234 234 235 235 this->endDraw(); -
branches/gui/src/lib/gui/gl_gui/glgui_widget.cc
r8116 r8117 69 69 this->_frontMat.setDiffuse(1.0, 0.0, 0.0); 70 70 71 this->_borderLeft = 10.0;71 this->_borderLeft = 50.0; 72 72 this->_borderRight = 1.0; 73 73 this->_borderTop = 1.0;
Note: See TracChangeset
for help on using the changeset viewer.