| GIMP Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
gboolean gimp_image_grid_get_spacing (gint32 image_ID,gdouble *xspacing,gdouble *yspacing); gboolean gimp_image_grid_set_spacing (gint32 image_ID,gdouble xspacing,gdouble yspacing); gboolean gimp_image_grid_get_offset (gint32 image_ID,gdouble *xoffset,gdouble *yoffset); gboolean gimp_image_grid_set_offset (gint32 image_ID,gdouble xoffset,gdouble yoffset); gboolean gimp_image_grid_get_foreground_color (gint32 image_ID,GimpRGB *fgcolor); gboolean gimp_image_grid_set_foreground_color (gint32 image_ID,const GimpRGB *fgcolor); gboolean gimp_image_grid_get_background_color (gint32 image_ID,GimpRGB *bgcolor); gboolean gimp_image_grid_set_background_color (gint32 image_ID,const GimpRGB *bgcolor); GimpGridStyle gimp_image_grid_get_style (gint32 image_ID); gboolean gimp_image_grid_set_style (gint32 image_ID,GimpGridStyle style);
gboolean gimp_image_grid_get_spacing (gint32 image_ID,gdouble *xspacing,gdouble *yspacing);
Gets the spacing of an image's grid.
This procedure retrieves the horizontal and vertical spacing of an image's grid. It takes the image as parameter.
|
The image. |
|
The image's grid horizontal spacing. |
|
The image's grid vertical spacing. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_set_spacing (gint32 image_ID,gdouble xspacing,gdouble yspacing);
Sets the spacing of an image's grid.
This procedure sets the horizontal and vertical spacing of an image's grid.
|
The image. |
|
The image's grid horizontal spacing. |
|
The image's grid vertical spacing. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_get_offset (gint32 image_ID,gdouble *xoffset,gdouble *yoffset);
Gets the offset of an image's grid.
This procedure retrieves the horizontal and vertical offset of an image's grid. It takes the image as parameter.
|
The image. |
|
The image's grid horizontal offset. |
|
The image's grid vertical offset. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_set_offset (gint32 image_ID,gdouble xoffset,gdouble yoffset);
Sets the offset of an image's grid.
This procedure sets the horizontal and vertical offset of an image's grid.
|
The image. |
|
The image's grid horizontal offset. |
|
The image's grid vertical offset. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_get_foreground_color (gint32 image_ID,GimpRGB *fgcolor);
Sets the foreground color of an image's grid.
This procedure gets the foreground color of an image's grid.
|
The image. |
|
The image's grid foreground color. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_set_foreground_color (gint32 image_ID,const GimpRGB *fgcolor);
Gets the foreground color of an image's grid.
This procedure sets the foreground color of an image's grid.
|
The image. |
|
The new foreground color. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_get_background_color (gint32 image_ID,GimpRGB *bgcolor);
Sets the background color of an image's grid.
This procedure gets the background color of an image's grid.
|
The image. |
|
The image's grid background color. |
Returns : |
TRUE on success. |
Since GIMP 2.4
gboolean gimp_image_grid_set_background_color (gint32 image_ID,const GimpRGB *bgcolor);
Gets the background color of an image's grid.
This procedure sets the background color of an image's grid.
|
The image. |
|
The new background color. |
Returns : |
TRUE on success. |
Since GIMP 2.4
GimpGridStyle gimp_image_grid_get_style (gint32 image_ID);
Gets the style of an image's grid.
This procedure retrieves the style of an image's grid.
|
The image. |
Returns : |
The image's grid style. |
Since GIMP 2.4
gboolean gimp_image_grid_set_style (gint32 image_ID,GimpGridStyle style);
Sets the style unit of an image's grid.
This procedure sets the style of an image's grid. It takes the image and the new style as parameters.
|
The image. |
|
The image's grid style. |
Returns : |
TRUE on success. |
Since GIMP 2.4