int cell_width, cell_height;
- /* XXX: Obviously, the rest of this needs to be gutted */
+ int drag_x, drag_y;
+ rr_robot_t drag_robot;
- /* update policy (GTK_UPDATE_[CONTINUOUS/DELAYED/DISCONTINUOUS]) */
- guint policy : 2;
+ rr_client_t *client;
/* Button currently pressed or 0 if none */
guint8 button;
- /* Dimensions of dial components */
- gint radius;
- gint pointer_width;
-
/* ID of update timer, or 0 if none */
guint32 timer;
-
- /* Current angle */
- gfloat angle;
- gfloat last_angle;
-
- /* Old values from adjustment stored so we know when something changes */
- gfloat old_value;
- gfloat old_lower;
- gfloat old_upper;
-
- GtkAdjustment *adjustment;
};
struct grr_board_view_class
GtkWidgetClass parent_class;
};
-GtkWidget* grr_board_view_new (rr_board_t *board);
-GtkType grr_board_view_get_type (void);
-void grr_board_view_set_board (grr_board_view_t *view,
- rr_board_t *board);
+GtkWidget*
+grr_board_view_new (rr_board_t *board);
+
+GtkType
+grr_board_view_get_type (void);
+
+void
+grr_board_view_set_board (grr_board_view_t *view,
+ rr_board_t *board);
+
+void
+grr_board_view_set_client (grr_board_view_t *view,
+ rr_client_t *client);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */