示例#1
0
void ScopeHistogram::draw_point()
{
	if(drag_x >= 0)
	{
		set_inverse();
		set_color(0xffffff);
		set_line_width(2);
		draw_line(drag_x, 0, drag_x, get_h());
		set_line_width(1);
		set_opaque();
	}
}
示例#2
0
void ScopeWaveform::draw_point()
{
	if(drag_x >= 0)
	{
		set_inverse();
		set_color(0xffffff);
		set_line_width(2);
		draw_line(0, drag_y, get_w(), drag_y);
		draw_line(drag_x, 0, drag_x, get_h());
		set_line_width(1);
		set_opaque();
	}
}
示例#3
0
void ScopeVectorscope::draw_point()
{
	if(drag_radius > 0)
	{
		int radius = MIN(get_w() / 2, get_h() / 2);
		set_inverse();
		set_color(0xff0000);
		set_line_width(2);
		draw_circle(get_w() / 2 - drag_radius, 
			get_h() / 2 - drag_radius, 
			drag_radius * 2, 
			drag_radius * 2);
		
		draw_line(get_w() / 2, 
			get_h() / 2, 
			get_w() / 2 + radius * cos(drag_angle),
			get_h() / 2 + radius * sin(drag_angle));
		set_line_width(1);
		set_opaque();
	}
}
示例#4
0
void RecordMonitorGUI::
display_video_text(int x, int y, const char *text, int font,
	int bg_color, int color, int alpha, double secs, double scale)
{
	lock_window("RecordMonitorGUI::display_text");
	set_font(font);
	int ch = get_text_height(font);
	int h = get_text_height(font,text) + ch/2;
	int w = get_text_width(font, text) + ch;
	BC_Pixmap pixmap(this, w, h);
	set_opaque();
	set_color(bg_color);
	draw_box(0, 0, w, h, &pixmap);
	set_color(color);
	draw_text(ch/2, ch, text, strlen(text), &pixmap);
	BC_Bitmap bitmap(this, w, h, BC_RGB888, 0);
	VFrame in(&bitmap, w, h, BC_RGB888, -1);
	Drawable drawable = pixmap.get_pixmap();
	bitmap.read_drawable(drawable, 0, 0, &in);
	unlock_window();
	record->display_vframe(&in, x, y, alpha, secs, scale);
}
示例#5
0
struct stream_filter_s *
filter_add (cdk_stream_t s, filter_fnct_t fnc, int type)
{
    struct stream_filter_s *f;

    assert (s);

    s->flags.filtrated = 0;
    f = filter_search (s, fnc);
    if (f)
        return f;
    f = filter_add2 (s);
    if (!f)
        return NULL;
    f->fnct = fnc;
    f->flags.enabled = 1;
    f->tmp = NULL;
    f->type = type;

    set_opaque (f);

    return f;
}
示例#6
0
 theorem_object_cell(name const & n, expr const & t, expr const & v):
     definition_object_cell(n, t, v, 0) {
     set_opaque(true);
 }
		TITANIUM_PROPERTY_SETTER(Animation, opaque)
		{
			TITANIUM_ASSERT(argument.IsBoolean());
			set_opaque(static_cast<bool>(argument));
			return true;
		}