event-controller: Add documentation/g-i annotations
This makes the .gir correct Signed-off-by: Carlos Garnacho <carlos@lanedo.com> Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
parent
239ecdfbcd
commit
7d0a6e25af
@ -256,6 +256,12 @@ sugar_rotate_controller_class_init (SugarRotateControllerClass *klass)
|
||||
controller_class->get_state = sugar_rotate_controller_get_state;
|
||||
controller_class->reset = sugar_rotate_controller_reset;
|
||||
|
||||
/**
|
||||
* SugarRotateController::angle-changed:
|
||||
* @controller: the object on which the signal is emitted
|
||||
* @angle: Current angle
|
||||
* @angle_delta: Difference with the starting angle
|
||||
*/
|
||||
signals[ANGLE_CHANGED] =
|
||||
g_signal_new ("angle-changed",
|
||||
SUGAR_TYPE_ROTATE_CONTROLLER,
|
||||
@ -275,6 +281,17 @@ sugar_rotate_controller_new (void)
|
||||
return g_object_new (SUGAR_TYPE_ROTATE_CONTROLLER, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* sugar_rotate_controller_get_angle_delta:
|
||||
* @controller: a #SugarRotateController
|
||||
* @delta: (out) (transfer none): angle delta
|
||||
*
|
||||
* If @controller is on state %SUGAR_EVENT_CONTROLLER_STATE_RECOGNIZED,
|
||||
* this function returns %TRUE and fills in @delta with the angle difference
|
||||
* since the gesture was first recognized.
|
||||
*
|
||||
* Returns: %TRUE if @controller is recognizing a rotate gesture
|
||||
**/
|
||||
gboolean
|
||||
sugar_rotate_controller_get_angle_delta (SugarRotateController *controller,
|
||||
gdouble *delta)
|
||||
|
@ -252,6 +252,11 @@ sugar_zoom_controller_class_init (SugarZoomControllerClass *klass)
|
||||
controller_class->get_state = sugar_zoom_controller_get_state;
|
||||
controller_class->reset = sugar_zoom_controller_reset;
|
||||
|
||||
/**
|
||||
* SugarZoomController::zoom-changed:
|
||||
* @controller: the object on which the signal is emitted
|
||||
* @delta: Difference with the starting zooming state
|
||||
*/
|
||||
signals[ZOOM_CHANGED] =
|
||||
g_signal_new ("zoom-changed",
|
||||
SUGAR_TYPE_ZOOM_CONTROLLER,
|
||||
@ -271,6 +276,18 @@ sugar_zoom_controller_new (void)
|
||||
return g_object_new (SUGAR_TYPE_ZOOM_CONTROLLER, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* sugar_zoom_controller_get_zoom_delta:
|
||||
* @controller: a #SugarZoomController
|
||||
* @delta: (out) (transfer none): zoom delta
|
||||
*
|
||||
* If @controller is on state %SUGAR_EVENT_CONTROLLER_STATE_RECOGNIZED,
|
||||
* this function returns %TRUE and fills in @delta with the zooming
|
||||
* difference since the gesture was recognized (hence the starting point
|
||||
* is considered 1x).
|
||||
*
|
||||
* Returns: %TRUE if @controller is recognizing a zoom gesture
|
||||
**/
|
||||
gboolean
|
||||
sugar_zoom_controller_get_zoom_delta (SugarZoomController *controller,
|
||||
gdouble *delta)
|
||||
|
Loading…
Reference in New Issue
Block a user