예제 #1
0
파일: ge_mixed.cpp 프로젝트: rzr/giada
void gModeBox::draw() {
	fl_rect(x(), y(), w(), h(), COLOR_BD_0);		// border
	switch (ch->mode) {
		case LOOP_BASIC:
			fl_draw_pixmap(loopBasic_xpm, x()+1, y()+1);
			break;
		case LOOP_ONCE:
			fl_draw_pixmap(loopOnce_xpm, x()+1, y()+1);
			break;
		case LOOP_ONCE_BAR:
			fl_draw_pixmap(loopOnceBar_xpm, x()+1, y()+1);
			break;
		case LOOP_REPEAT:
			fl_draw_pixmap(loopRepeat_xpm, x()+1, y()+1);
			break;
		case SINGLE_BASIC:
			fl_draw_pixmap(oneshotBasic_xpm, x()+1, y()+1);
			break;
		case SINGLE_PRESS:
			fl_draw_pixmap(oneshotPress_xpm, x()+1, y()+1);
			break;
		case SINGLE_RETRIG:
			fl_draw_pixmap(oneshotRetrig_xpm, x()+1, y()+1);
			break;
		case SINGLE_ENDLESS:
			fl_draw_pixmap(oneshotEndless_xpm, x()+1, y()+1);
			break;
	}
}
예제 #2
0
파일: ge_mixed.cpp 프로젝트: rzr/giada
void gClickRepeat::draw() {
	if (value()) {															 // -- clicked
		fl_rectf(x(), y(), w(), h(), COLOR_BG_1);  // bg
		if (imgOn != NULL)
			fl_draw_pixmap(imgOn, x()+1, y()+1);
	}
	else {                                       // -- not clicked
		fl_rectf(x(), y(), w(), h(), COLOR_BG_0);  // bg
		fl_rect(x(), y(), w(), h(), COLOR_BD_0);   // border
		if (imgOff != NULL)
			fl_draw_pixmap(imgOff, x()+1, y()+1);
	}
	if (!active())
		fl_color(FL_INACTIVE_COLOR);

	fl_color(COLOR_TEXT_0);
	fl_font(FL_HELVETICA, 11);
	fl_draw(label(), x(), y(), w(), h(), FL_ALIGN_CENTER);
}
예제 #3
0
파일: ge_mixed.cpp 프로젝트: rzr/giada
void gClick::draw() {

	if (!active()) txtColor = bdColor;
	else 					 txtColor = COLOR_TEXT_0;

	fl_rect(x(), y(), w(), h(), bdColor);             // borders
	if (value()) {													          // -- clicked
		if (imgOn != NULL)
			fl_draw_pixmap(imgOn, x()+1, y()+1);
		else
			fl_rectf(x(), y(), w(), h(), bgColor1);       // covers the border
	}
	else {                                            // -- not clicked
		fl_rectf(x()+1, y()+1, w()-2, h()-2, bgColor0); // bg inside the border
		if (imgOff != NULL)
			fl_draw_pixmap(imgOff, x()+1, y()+1);
	}
	if (!active())
		fl_color(FL_INACTIVE_COLOR);

	fl_color(txtColor);
	fl_font(FL_HELVETICA, 11);
	fl_draw(label(), x(), y(), w(), h(), FL_ALIGN_CENTER);
}
예제 #4
0
void gModeBox::draw() {
	fl_rect(x(), y(), w(), h(), COLOR_BD_0);		// border
	switch (G_Mixer.chanMode[id]) {
		case LOOP_BASIC:
			fl_draw_pixmap(loopBasic_xpm, x()+1, y()+1);
			break;
		case LOOP_ONCE:
			fl_draw_pixmap(loopOnce_xpm, x()+1, y()+1);
			break;
		case LOOP_REPEAT:
			fl_draw_pixmap(loopRepeat_xpm, x()+1, y()+1);
			break;
		case SINGLE_BASIC:
			fl_draw_pixmap(oneshotBasic_xpm, x()+1, y()+1);
			break;
		case SINGLE_PRESS:
			fl_draw_pixmap(oneshotPress_xpm, x()+1, y()+1);
			break;
		case SINGLE_RETRIG:
			fl_draw_pixmap(oneshotRetrig_xpm, x()+1, y()+1);
			break;
	}
}
예제 #5
0
파일: Fl_DrawC.cpp 프로젝트: deech/fltkhs
 FL_EXPORT_C(int,flc_draw_pixmap_with_cdata)(char* const* cdata,int x,int y){
   return fl_draw_pixmap(cdata,x,y);
 }
예제 #6
0
파일: Fl_DrawC.cpp 프로젝트: deech/fltkhs
 FL_EXPORT_C(int,flc_draw_pixmap_with_cdata_color)(char* const* cdata,int x,int y,Fl_Color color){
   return fl_draw_pixmap(cdata,x,y,color);
 }
예제 #7
0
파일: Fl_DrawC.cpp 프로젝트: deech/fltkhs
 FL_EXPORT_C(int,flc_draw_pixmap)(char* const* data,int x,int y){
   return fl_draw_pixmap(data,x,y,FL_GRAY);
 }