mirror of https://github.com/GNOME/gimp.git
app: rename gimp_display_shell_[un]transform_coordiante() to _coords()
This commit is contained in:
parent
4bf3a136e0
commit
36cc10c4dc
|
@ -150,9 +150,9 @@ gimp_display_shell_autoscroll_timeout (gpointer data)
|
|||
scroll_amount_x,
|
||||
scroll_amount_y);
|
||||
|
||||
gimp_display_shell_untransform_coordinate (shell,
|
||||
&device_coords,
|
||||
&image_coords);
|
||||
gimp_display_shell_untransform_coords (shell,
|
||||
&device_coords,
|
||||
&image_coords);
|
||||
|
||||
if (gimp_tool_control_get_snap_to (active_tool->control))
|
||||
{
|
||||
|
|
|
@ -710,9 +710,9 @@ gimp_display_shell_untransform_event_coords (GimpDisplayShell *shell,
|
|||
GimpTool *active_tool;
|
||||
|
||||
/* GimpCoords passed to tools are ALWAYS in image coordinates */
|
||||
gimp_display_shell_untransform_coordinate (shell,
|
||||
display_coords,
|
||||
image_coords);
|
||||
gimp_display_shell_untransform_coords (shell,
|
||||
display_coords,
|
||||
image_coords);
|
||||
|
||||
active_tool = tool_manager_get_active (gimp);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
|
||||
/**
|
||||
* gimp_display_shell_transform_coordinate:
|
||||
* gimp_display_shell_transform_coords:
|
||||
* @shell: a #GimpDisplayShell
|
||||
* @image_coords: image coordinates
|
||||
* @display_coords: returns the corresponding display coordinates
|
||||
|
@ -45,9 +45,9 @@
|
|||
* objects can be rendered at the correct points on the display.
|
||||
**/
|
||||
void
|
||||
gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
|
||||
const GimpCoords *image_coords,
|
||||
GimpCoords *display_coords)
|
||||
gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
|
||||
const GimpCoords *image_coords,
|
||||
GimpCoords *display_coords)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
g_return_if_fail (image_coords != NULL);
|
||||
|
@ -63,7 +63,7 @@ gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
|
|||
}
|
||||
|
||||
/**
|
||||
* gimp_display_shell_untransform_coordinate:
|
||||
* gimp_display_shell_untransform_coords:
|
||||
* @shell: a #GimpDisplayShell
|
||||
* @display_coords: display coordinates
|
||||
* @image_coords: returns the corresponding image coordinates
|
||||
|
@ -72,9 +72,9 @@ gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
|
|||
* points on the display can be mapped to points in the image.
|
||||
**/
|
||||
void
|
||||
gimp_display_shell_untransform_coordinate (const GimpDisplayShell *shell,
|
||||
const GimpCoords *display_coords,
|
||||
GimpCoords *image_coords)
|
||||
gimp_display_shell_untransform_coords (const GimpDisplayShell *shell,
|
||||
const GimpCoords *display_coords,
|
||||
GimpCoords *image_coords)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
|
||||
g_return_if_fail (display_coords != NULL);
|
||||
|
|
|
@ -19,48 +19,48 @@
|
|||
#define __GIMP_DISPLAY_SHELL_TRANSFORM_H__
|
||||
|
||||
|
||||
void gimp_display_shell_transform_coordinate (const GimpDisplayShell *shell,
|
||||
const GimpCoords *image_coords,
|
||||
GimpCoords *display_coords);
|
||||
void gimp_display_shell_untransform_coordinate (const GimpDisplayShell *shell,
|
||||
const GimpCoords *display_coords,
|
||||
GimpCoords *image_coords);
|
||||
void gimp_display_shell_transform_coords (const GimpDisplayShell *shell,
|
||||
const GimpCoords *image_coords,
|
||||
GimpCoords *display_coords);
|
||||
void gimp_display_shell_untransform_coords (const GimpDisplayShell *shell,
|
||||
const GimpCoords *display_coords,
|
||||
GimpCoords *image_coords);
|
||||
|
||||
void gimp_display_shell_transform_xy (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gint *nx,
|
||||
gint *ny);
|
||||
void gimp_display_shell_untransform_xy (const GimpDisplayShell *shell,
|
||||
gint x,
|
||||
gint y,
|
||||
gint *nx,
|
||||
gint *ny,
|
||||
gboolean round);
|
||||
void gimp_display_shell_transform_xy (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gint *nx,
|
||||
gint *ny);
|
||||
void gimp_display_shell_untransform_xy (const GimpDisplayShell *shell,
|
||||
gint x,
|
||||
gint y,
|
||||
gint *nx,
|
||||
gint *ny,
|
||||
gboolean round);
|
||||
|
||||
void gimp_display_shell_transform_xy_f (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *nx,
|
||||
gdouble *ny);
|
||||
void gimp_display_shell_untransform_xy_f (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *nx,
|
||||
gdouble *ny);
|
||||
void gimp_display_shell_transform_xy_f (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *nx,
|
||||
gdouble *ny);
|
||||
void gimp_display_shell_untransform_xy_f (const GimpDisplayShell *shell,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble *nx,
|
||||
gdouble *ny);
|
||||
|
||||
void gimp_display_shell_transform_segments (const GimpDisplayShell *shell,
|
||||
const BoundSeg *src_segs,
|
||||
GimpSegment *dest_segs,
|
||||
gint n_segs,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y);
|
||||
void gimp_display_shell_transform_segments (const GimpDisplayShell *shell,
|
||||
const BoundSeg *src_segs,
|
||||
GimpSegment *dest_segs,
|
||||
gint n_segs,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y);
|
||||
|
||||
void gimp_display_shell_untransform_viewport (const GimpDisplayShell *shell,
|
||||
gint *x,
|
||||
gint *y,
|
||||
gint *width,
|
||||
gint *height);
|
||||
void gimp_display_shell_untransform_viewport (const GimpDisplayShell *shell,
|
||||
gint *x,
|
||||
gint *y,
|
||||
gint *width,
|
||||
gint *height);
|
||||
|
||||
|
||||
#endif /* __GIMP_DISPLAY_SHELL_TRANSFORM_H__ */
|
||||
|
|
Loading…
Reference in New Issue