分类: C/C++
2009-03-05 21:54:17
GtkObject *gtk_adjustment_new( gdouble value,关联函数
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
gdouble page_size );
不过这个方法生成的对象应用却是非常广泛,
如
Progress Bars, Viewports, Scrolled Windows
等
gdouble gtk_adjustment_get_value( GtkAdjustment *adjustment);
void gtk_adjustment_set_value( GtkAdjustment *adjustment,
gdouble value );
信号处理
void cb_rotate_picture (GtkAdjustment *adj, GtkWidget *picture)
{
set_picture_rotation (picture, gtk_adjustment_get_value (adj));
g_signal_connect (G_OBJECT (adj), "value_changed",
G_CALLBACK (cb_rotate_picture), (gpointer) picture);