コード例 #1
0
ファイル: stripchart-private.c プロジェクト: seank/MegaTunix
/*!
 \brief gets called to redraw the entire display manually
 \param chart (MtxStripChart *) pointer to the chart object
 */
void mtx_stripchart_redraw (MtxStripChart *chart)
{
	if (!GTK_WIDGET(chart)->window) return;

	update_stripchart_position(chart);
	render_marker(chart);
	gdk_window_clear(GTK_WIDGET(chart)->window);
}
コード例 #2
0
/*!
 \brief gets called to redraw the entire display manually
 \param chart is the pointer to the chart object
 */
void mtx_stripchart_redraw (MtxStripChart *chart)
{
	GdkWindow *window = gtk_widget_get_window(GTK_WIDGET(chart));
	if (!window) 
		return;

	update_stripchart_position(chart);
	render_marker(chart);
	gdk_window_clear(window);
}