void empathy_rounded_rectangle_set_border_color (EmpathyRoundedRectangle *self, const ClutterColor *color) { self->priv->border_color = *color; clutter_cairo_texture_invalidate (CLUTTER_CAIRO_TEXTURE (self)); }
void empathy_rounded_rectangle_set_border_width (EmpathyRoundedRectangle *self, guint border_width) { self->priv->border_width = border_width; empathy_rounded_rectangle_update_surface_size (self); clutter_cairo_texture_invalidate (CLUTTER_CAIRO_TEXTURE (self)); }
EmpathyRoundedRectangle * empathy_rounded_rectangle_new (guint width, guint height, guint round_factor) { EmpathyRoundedRectangle *self; self = EMPATHY_ROUNDED_RECTANGLE (g_object_new (EMPATHY_TYPE_ROUNDED_RECTANGLE, NULL)); self->priv->width = width; self->priv->height = height; self->priv->round_factor = round_factor; g_signal_connect (self, "draw", G_CALLBACK (draw_cb), NULL); empathy_rounded_rectangle_update_surface_size (self); clutter_cairo_texture_invalidate (CLUTTER_CAIRO_TEXTURE (self)); return self; }
static void on_track_joints (GObject *obj, GAsyncResult *res, gpointer user_data) { guint i; BufferInfo *buffer_info; guint16 *reduced; gint width, height, reduced_width, reduced_height; buffer_info = (BufferInfo *) user_data; reduced = (guint16 *) buffer_info->reduced_buffer; width = buffer_info->width; height = buffer_info->height; reduced_width = buffer_info->reduced_width; reduced_height = buffer_info->reduced_height; GError *error = NULL; list = skeltrack_skeleton_track_joints_finish (skeleton, res, &error); if (error == NULL) { if (SHOW_SKELETON) clutter_cairo_texture_invalidate (CLUTTER_CAIRO_TEXTURE (depth_tex)); } else { g_error_free (error); } g_slice_free1 (width * height * sizeof (guint16), reduced); g_slice_free (BufferInfo, buffer_info); }