本文整理汇总了C++中FXDCWindow::drawLines方法的典型用法代码示例。如果您正苦于以下问题:C++ FXDCWindow::drawLines方法的具体用法?C++ FXDCWindow::drawLines怎么用?C++ FXDCWindow::drawLines使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FXDCWindow
的用法示例。
在下文中一共展示了FXDCWindow::drawLines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: drawDownMarker
// Draw down marker
void FXRuler::drawDownMarker(FXDCWindow& dc,FXint x,FXint y){
FXPoint points[6];
points[0].x=x;
points[0].y=y;
points[1].x=x-MARKERLENGTH;
points[1].y=y-MARKERLENGTH;
points[2].x=x-MARKERLENGTH;
points[2].y=y-MARKERLENGTH-MARKERLENGTH+1;
points[3].x=x+MARKERLENGTH;
points[3].y=y-MARKERLENGTH-MARKERLENGTH+1;
points[4].x=x+MARKERLENGTH;
points[4].y=y-MARKERLENGTH;
points[5].x=x;
points[5].y=y;
dc.setForeground(baseColor);
dc.fillPolygon(points,5);
dc.setForeground(textColor);
dc.drawLines(points,6);
points[0].x=x;
points[0].y=y-1;
points[1].x=x+MARKERLENGTH-1;
points[1].y=y-MARKERLENGTH;
points[2].x=x+MARKERLENGTH-1;
points[2].y=y-MARKERLENGTH-MARKERLENGTH+3;
dc.setForeground(shadowColor);
dc.drawLines(points,3);
points[0].x=x;
points[0].y=y-1;
points[1].x=x-MARKERLENGTH+1;
points[1].y=y-MARKERLENGTH;
points[2].x=x-MARKERLENGTH+1;
points[2].y=y-MARKERLENGTH-MARKERLENGTH+2;
points[3].x=x+MARKERLENGTH-1;
points[3].y=y-MARKERLENGTH-MARKERLENGTH+2;
dc.setForeground(hiliteColor);
dc.drawLines(points,4);
}