diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2001-01-12 01:10:52 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2001-01-12 01:10:52 +0000 |
commit | 1f39e6b64330dd16b62912ddfc1ff999c9bad38c (patch) | |
tree | 4360e709a0859c35477f3e9e905735478fb16cae /libnautilus-extensions/nautilus-art-extensions.h | |
parent | b75592a9d074e35fc428606fbe4504aa272c06b5 (diff) | |
download | nautilus-1f39e6b64330dd16b62912ddfc1ff999c9bad38c.tar.gz |
reviewed by: Mike Fleming <mfleming@eazel.com>
* libnautilus-extensions/nautilus-art-extensions.c:
(nautilus_art_irect_align):
* libnautilus-extensions/nautilus-art-extensions.h:
New function to align a rectangle within another.
* libnautilus-extensions/nautilus-image.c:
(image_get_pixbuf_bounds):
* libnautilus-extensions/nautilus-label.c: (label_get_text_bounds):
Share more code between these two widgets by using a common
alignment routine.
Diffstat (limited to 'libnautilus-extensions/nautilus-art-extensions.h')
-rw-r--r-- | libnautilus-extensions/nautilus-art-extensions.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-art-extensions.h b/libnautilus-extensions/nautilus-art-extensions.h index cce83d59c..9b6b498c5 100644 --- a/libnautilus-extensions/nautilus-art-extensions.h +++ b/libnautilus-extensions/nautilus-art-extensions.h @@ -62,7 +62,13 @@ void nautilus_art_ipoint_assign (NautilusArtIPoint *point, int y); int nautilus_art_irect_get_width (const ArtIRect *rect); int nautilus_art_irect_get_height (const ArtIRect *rect); - +ArtIRect nautilus_art_irect_align (const ArtIRect *container, + int aligned_width, + int aligned_height, + float x_alignment, + float y_alignment, + int x_padding, + int y_padding); END_GNOME_DECLS #endif /* NAUTILUS_ART_EXTENSIONS_H */ |