Lines Matching refs:tab
320 // step #1 - draw border around the tab content area
351 // step #2 - draw tab title bars
363 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
365 xSize = tab.mDims.x;
402 if ( mLayoutType != wxTITLE_BORDER_ONLY && tab.HasImg() )
405 tmpDc.SelectObject( tab.GetImg() );
408 curY + ( ySize - tab.ImgHeight() ) / 2,
409 tab.ImgWidth(),
410 tab.ImgHeight(),
415 if ( mLayoutType == wxTITLE_IMG_AND_TEXT && tab.HasText() )
424 dc.GetTextExtent(tab.mText, &w, &h );
427 tab.ImgWidth() + tab.ImageToTxtGap(mImageTextGap);
429 dc.DrawText( tab.GetText(), x, curY + ( ySize - h ) / 2 );
450 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
452 // hit test rectangle of the currnet tab title bar
453 if ( pos.x >= curX && pos.x < curX + tab.mDims.x &&
454 pos.y >= curY && pos.y < curY + tab.mDims.y
460 curX += tab.mDims.x;
482 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
483 tab.mpContent->Show(false);
517 // resetup position of the active tab
541 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
550 dc.GetTextExtent(tab.mText, &w, &h );
552 tab.mDims.x = w + tab.ImageToTxtGap(mImageTextGap) +
553 tab.ImgWidth() + mTitleHorizGap*2;
555 tab.mDims.y = wxMax( h, tab.ImgHeight() ) + mTitleVertGap*2;
556 mTitleHeight = wxMax( mTitleHeight, tab.mDims.y );
558 curX += tab.mDims.x;
595 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
597 if ( tab.HasImg() )
599 tab.mDims.x = tab.ImgWidth() + mTitleHorizGap*2;
600 tab.mDims.y = tab.ImgHeight() + mTitleVertGap*2;
604 tab.mDims.x = mBorderOnlyWidth;
605 tab.mDims.y = mTitleHeight;
608 curX += tab.mDims.x;
627 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
629 tab.mDims.x = mBorderOnlyWidth;
630 tab.mDims.y = mTitleHeight;
761 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
763 len += tab.mDims.x;
771 void wxPagedWindow::DrawPaperBar( twTabInfo& tab, int x, int y,
782 poly[1].y = y + tab.mDims.y-1;
784 poly[2].x = x + tab.mDims.x - mTabTrianGap;
785 poly[2].y = y + tab.mDims.y-1;
787 poly[3].x = x + tab.mDims.x + mTabTrianGap;
802 dc.GetTextExtent(tab.mText, &w, &h );
804 if ( tab.HasImg() )
807 tmpDc.SelectObject( tab.GetImg() );
810 y + ( tab.mDims.y - tab.ImgHeight() ) / 2,
811 tab.ImgWidth(),
812 tab.ImgHeight(),
817 if ( tab.HasText() )
820 tab.ImgWidth() + tab.ImageToTxtGap(mImageTextGap);
822 dc.DrawText( tab.GetText(), tx, y + ( tab.mDims.y - h ) / 2 );
846 // draw inactive tab title bars frist (left-to-right)
876 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
879 DrawPaperBar( tab, curX, curY, mGrayBrush, mBlackPen, tmpDc );
881 curX += tab.mDims.x;
887 // finally, draw the active tab (white-filled)
896 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
900 DrawPaperBar( tab, curX, curY, mWhiteBrush, mBlackPen, tmpDc );
905 curX + tab.mDims.x + mTabTrianGap, curY );
908 curX += tab.mDims.x;
965 // resetup position of the active tab
1016 // layout tab title bars
1024 twTabInfo& tab = *((twTabInfo*)(pNode->GetData()));
1032 dc.GetTextExtent(tab.mText, &w, &h );
1034 tab.mDims.x = w + tab.ImageToTxtGap(mImageTextGap) +
1035 tab.ImgWidth() + mTitleHorizGap*2;
1037 tab.mDims.y = mTitleHeight;