Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookAvatarEditorDialog; GtkWidget* osso_abook_avatar_editor_dialog_new (GtkWindow *parent, GdkPixbuf *pixbuf); void osso_abook_avatar_editor_dialog_set_pixbuf (OssoABookAvatarEditorDialog *dialog, GdkPixbuf *pixbuf); GdkPixbuf* osso_abook_avatar_editor_dialog_get_pixbuf (OssoABookAvatarEditorDialog *dialog); GdkPixbuf* osso_abook_avatar_editor_dialog_get_scaled_pixbuf (OssoABookAvatarEditorDialog *dialog); void osso_abook_avatar_editor_dialog_set_avatar_size (OssoABookAvatarEditorDialog *dialog, int size); int osso_abook_avatar_editor_dialog_get_avatar_size (OssoABookAvatarEditorDialog *dialog); void osso_abook_avatar_editor_dialog_set_zoom_steps (OssoABookAvatarEditorDialog *dialog, int steps); int osso_abook_avatar_editor_dialog_get_zoom_steps (OssoABookAvatarEditorDialog *dialog); void osso_abook_avatar_editor_dialog_set_maximum_zoom (OssoABookAvatarEditorDialog *dialog, double zoom); double osso_abook_avatar_editor_dialog_get_maximum_zoom (OssoABookAvatarEditorDialog *dialog);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----OssoABookAvatarEditorDialog
"avatar-size" gint : Read / Write "maximum-zoom" gdouble : Read / Write "pixbuf" GdkPixbuf* : Read / Write "zoom-steps" gint : Read / Write
This module provides a dialog that allows a user to do some very basic editing of avatar images, including scaling and cropping.
typedef struct _OssoABookAvatarEditorDialog OssoABookAvatarEditorDialog;
GtkWidget* osso_abook_avatar_editor_dialog_new (GtkWindow *parent, GdkPixbuf *pixbuf);
Creates a new OssoABookAvatarEditorDialog for editing pixbuf
parent : |
an optional parent GtkWindow |
pixbuf : |
the pixbuf to edit |
void osso_abook_avatar_editor_dialog_set_pixbuf (OssoABookAvatarEditorDialog *dialog, GdkPixbuf *pixbuf);
Sets pixbuf
as the image to edit
dialog : |
a OssoABookAvatarEditorDialog |
pixbuf : |
the pixbuf to edit |
GdkPixbuf* osso_abook_avatar_editor_dialog_get_pixbuf (OssoABookAvatarEditorDialog *dialog);
dialog : |
a OssoABookAvatarEditorDialog |
Returns : | the pixbuf being edited, owned by dialog
|
GdkPixbuf* osso_abook_avatar_editor_dialog_get_scaled_pixbuf (OssoABookAvatarEditorDialog *dialog);
dialog : |
a OssoABookAvatarEditorDialog |
Returns : | a scaled copy of the pixbuf being edited, owned by the caller. |
void osso_abook_avatar_editor_dialog_set_avatar_size (OssoABookAvatarEditorDialog *dialog, int size);
Sets the size of the avatar to be size
dialog : |
a OssoABookAvatarEditorDialog |
size : |
the size of the avatar |
int osso_abook_avatar_editor_dialog_get_avatar_size (OssoABookAvatarEditorDialog *dialog);
dialog : |
a OssoABookAvatarEditorDialog |
Returns : | the size of the avatar |
void osso_abook_avatar_editor_dialog_set_zoom_steps (OssoABookAvatarEditorDialog *dialog, int steps);
Sets how many steps there should be when zooming
dialog : |
a OssoABookAvatarEditorDialog |
steps : |
the number of zooming steps |
int osso_abook_avatar_editor_dialog_get_zoom_steps (OssoABookAvatarEditorDialog *dialog);
dialog : |
a OssoABookAvatarEditorDialog |
Returns : | the number of zooming steps |
void osso_abook_avatar_editor_dialog_set_maximum_zoom (OssoABookAvatarEditorDialog *dialog, double zoom);
Sets the maximum zoom value to zoom
dialog : |
a OssoABookAvatarEditorDialog |
zoom : |
maximum zoom value |
double osso_abook_avatar_editor_dialog_get_maximum_zoom (OssoABookAvatarEditorDialog *dialog);
dialog : |
a OssoABookAvatarEditorDialog |
Returns : | the maximum zoom value |