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