Reimplemented from OglGui::StaticText. Definition at line 79 of file WindowView2DWithRect.h. References OglGui::StaticText::DisplayFunc(), OglGui::OglWindow::GetBorderType(), mActAsButton, mDragHX, mDragHY, mDragLX, mDragLY, mIsDragging, mIsPressed, OglGui::OglWindow::mOglWnd, mOldBorderType, mScaleToWnd, mView, and OglGui::OglWindow::SetBorderType(). 00080 { 00081 int w = mOglWnd->width; 00082 int h = mOglWnd->height; 00083 00084 viewSys.SetDimensions(mView, 0, 0, w, h); 00085 00086 if (mScaleToWnd && mView->im) 00087 viewSys.SetZoom(mView, w / (float) mView->im->w, 00088 h / (float) mView->im->h); 00089 00090 if (mActAsButton && mIsPressed) 00091 { 00092 mOldBorderType = GetBorderType(); 00093 mView->x++; mView->y--; 00094 } 00095 StaticText::DisplayFunc(); 00096 00097 if (mActAsButton && mIsPressed){ 00098 SetBorderType(mOldBorderType); 00099 mView->x--; mView->y++; 00100 } 00101 00102 if (mIsDragging) { 00103 OGC prevOGC; 00104 OGCSave( &prevOGC ); 00105 SetLineWidth(2); 00106 SetSolidLineColor(0xffdddd22); 00107 DrawRectangle(mDragLX, mDragLY, mDragHX - mDragLX, mDragHY - mDragLY); 00108 OGCRestore( &prevOGC ); 00109 } 00110 00111 //CenterStr(mIsPressed ? 1 : 0, mIsPressed ? 2 : 3); 00112 }
Here is the call graph for this function:
|