void CBorderVisualizerPanel::Paint() { BaseClass::Paint(); surface()->PushMakeCurrent( GetVPanel(), false ); m_pBorder->Paint( GetVPanel() ); surface()->PopMakeCurrent( GetVPanel() ); }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CBitmapImagePanel::PaintBorder() { int x, y, w, h; ComputeImagePosition(x, y, w, h); IBorder *pBorder = GetBorder(); if ( pBorder ) pBorder->Paint( x, y, x+w, y+h, -1, 0, 0 ); }
//----------------------------------------------------------------------------- // Purpose: Paint our border specially, with the tabs in mind //----------------------------------------------------------------------------- void PropertySheet::PaintBorder() { IBorder *border = GetBorder(); if (!border) return; // draw the border, but with a break at the active tab int px = 0, py = 0, pwide = 0, ptall = 0; if (_activeTab) { _activeTab->GetBounds(px, py, pwide, ptall); ptall -= 1; } // draw the border underneath the buttons, with a break int wide, tall; GetSize(wide, tall); border->Paint(0, py + ptall, wide, tall, IBorder::SIDE_TOP, px + 1, px + pwide - 1); }
//----------------------------------------------------------------------------- // Purpose: Paints the border, but with the required breaks for the page tab //----------------------------------------------------------------------------- void PropertyPage::PaintBorder() { IBorder *border = GetBorder(); // setup border break if (_paintRaised==true && border && _pageTab.Get()) { int px, py, pwide, ptall; _pageTab->GetBounds(px, py, pwide, ptall); int wide, tall; GetSize(wide, tall); border->Paint(0, 0, wide, tall, IBorder::SIDE_TOP, px+1, px + pwide -1); } else { // Paint the border BaseClass::PaintBorder(); } }