您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ vline函数代码示例

51自学网 2021-06-03 09:45:00
  C++
这篇教程C++ vline函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中vline函数的典型用法代码示例。如果您正苦于以下问题:C++ vline函数的具体用法?C++ vline怎么用?C++ vline使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了vline函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: adjustPoint

void AllegroGUIRenderer::drawPartialRoundedRect(int x, int y, int width,  int height, int radius, partialRoundedRect part, const GUIColor& color){    adjustPoint(x, y);    switch(part)    {    case prr_top:        arc(target, x+radius, y+radius, itofix(64), itofix(128), radius, color);        arc(target, x+width-radius-1, y+radius, itofix(0), itofix(64), radius, color);        hline(target, x+radius, y, x+width-radius, color);        vline(target, x, y+radius, y+height-1, color);        vline(target, x+width-1, y+radius, y+height-1, color);        break;            case prr_bottom:        arc(target, x+radius, y+height-radius-1, itofix(128), itofix(192), radius, color);        arc(target, x+width-radius-1, y+height-radius-1, itofix(192), itofix(256), radius, color);        hline(target, x+radius, y+height-1, x+width-radius-1, color);        vline(target, x, y, y+height-radius-1, color);        vline(target, x+width-1, y, y+height-radius-1, color);        break;            case prr_topRight:        break;            case prr_bottomRight:        break;    }}
开发者ID:PyroXFire,项目名称:ZeldaClassic,代码行数:29,


示例2: sushi_draw_game_base

int sushi_draw_game_base(struct sushi_view *sv){	if((COLS > sv->wsize.x+2) && (LINES > sv->wsize.y+2)) {		move(sv->org.y-1, sv->org.x-1);		addch('+');		move(sv->org.y-1, sv->org.x);		hline('-', sv->wsize.x);		move(sv->org.y-1, sv->org.x + sv->wsize.x);		addch('+');		move(sv->org.y + sv->wsize.y, sv->org.x-1);		addch('+');		move(sv->org.y + sv->wsize.y, sv->org.x);		hline('-', sv->wsize.x);		move(sv->org.y + sv->wsize.y, sv->org.x + sv->wsize.x);		addch('+');		move(sv->org.y, sv->org.x-1);		vline('|', sv->wsize.y);		move(sv->org.y, sv->org.x + sv->wsize.x);		vline('|', sv->wsize.y);	}	move(sv->org.y + sv->gvsize.y, sv->org.x);	hline('=', sv->wsize.x);	refresh();	return SUSHI_SUCCESS;}
开发者ID:ocxtal,项目名称:sushi,代码行数:26,


示例3: drawbox

static voiddrawbox(bool scrolling){    chtype bottom[XLENGTH + 1];    int n;    if (hascolor)	(void) attrset(COLOR_PAIR(PAIR_FRAMES));    MvAddCh(YBASE - 1, XBASE - 1, ACS_ULCORNER);    hline(ACS_HLINE, XLENGTH);    MvAddCh(YBASE - 1, XBASE + XLENGTH, ACS_URCORNER);    MvAddCh(YBASE + YDEPTH, XBASE - 1, ACS_LLCORNER);    if ((mvinchnstr(YBASE + YDEPTH, XBASE, bottom, XLENGTH)) != ERR) {	for (n = 0; n < XLENGTH; n++) {	    if (!scrolling)		bottom[n] &= ~A_COLOR;	    bottom[n] = ACS_HLINE | (bottom[n] & (A_ATTRIBUTES | A_COLOR));	}	(void) mvaddchnstr(YBASE + YDEPTH, XBASE, bottom, XLENGTH);    }    MvAddCh(YBASE + YDEPTH, XBASE + XLENGTH, ACS_LRCORNER);    move(YBASE, XBASE - 1);    vline(ACS_VLINE, YDEPTH);    move(YBASE, XBASE + XLENGTH);    vline(ACS_VLINE, YDEPTH);    if (hascolor)	(void) attrset(COLOR_PAIR(PAIR_OTHERS));}
开发者ID:AaronDP,项目名称:ncurses-5.9_adbshell,代码行数:33,


示例4: get_ground

void Frame::draw_self(){    // Diese hier machen das Zeichnen übersichtlicher.    BITMAP* g    = get_ground().get_al_bitmap();    const int x1 = get_x_here() - 2;    const int y1 = get_y_here() - 2;    const int x2 = get_x_here() + 1 + get_xl();    const int y2 = get_y_here() + 1 + get_yl();    // Farben w
C++ vmCheckStack函数代码示例
C++ vld1q_u8函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。