Osso Addressbook Reference Manual | ||||
---|---|---|---|---|
OssoABookAvatarImage; GtkWidget* osso_abook_avatar_image_new (void); GtkWidget* osso_abook_avatar_image_new_with_avatar (OssoABookAvatar *avatar, int size); void osso_abook_avatar_image_set_avatar (OssoABookAvatarImage *image, OssoABookAvatar *avatar); OssoABookAvatar* osso_abook_avatar_image_get_avatar (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_pixbuf (OssoABookAvatarImage *image, GdkPixbuf *pixbuf); GdkPixbuf* osso_abook_avatar_image_get_pixbuf (OssoABookAvatarImage *image); GdkPixbuf* osso_abook_avatar_image_get_scaled_pixbuf (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_fallback_icon (OssoABookAvatarImage *image, const char *icon_name); const char* osso_abook_avatar_image_get_fallback_icon (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_size (OssoABookAvatarImage *image, int size); int osso_abook_avatar_image_get_size (OssoABookAvatarImage *image); double osso_abook_avatar_image_get_minimum_zoom (OssoABookAvatarImage *image); double osso_abook_avatar_image_get_current_zoom (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_maximum_zoom (OssoABookAvatarImage *image, double limit); double osso_abook_avatar_image_get_maximum_zoom (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_xadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment); GtkAdjustment* osso_abook_avatar_image_get_xadjustment (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_yadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment); GtkAdjustment* osso_abook_avatar_image_get_yadjustment (OssoABookAvatarImage *image); void osso_abook_avatar_image_set_zadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment); GtkAdjustment* osso_abook_avatar_image_get_zadjustment (OssoABookAvatarImage *image);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----OssoABookAvatarImage
"avatar" OssoABookAvatar* : Read / Write "current-zoom" gdouble : Read "fallback-icon" gchar* : Read / Write "maximum-zoom" gdouble : Read / Write "minimum-zoom" gdouble : Read "pixbuf" GdkPixbuf* : Read / Write "size" gint : Read / Write "xadjustment" GtkAdjustment* : Read / Write "yadjustment" GtkAdjustment* : Read / Write "zadjustment" GtkAdjustment* : Read / Write
typedef struct _OssoABookAvatarImage OssoABookAvatarImage;
All the fields of this structure are private to the object's implementation and should never be accessed directly.
GtkWidget* osso_abook_avatar_image_new (void);
Creates a new, empty OssoABookAvatarImage. You should
use osso_abook_avatar_image_set_avatar()
in order to display
the avatar image.
Returns : | the newly created OssoABookAvatarImage widget |
GtkWidget* osso_abook_avatar_image_new_with_avatar (OssoABookAvatar *avatar, int size);
void osso_abook_avatar_image_set_avatar (OssoABookAvatarImage *image, OssoABookAvatar *avatar);
Sets the avatar object to be used to retrieve the avatar image to be displayed.
image : |
a OssoABookAvatarImage |
avatar : |
a OssoABookAvatar |
OssoABookAvatar* osso_abook_avatar_image_get_avatar (OssoABookAvatarImage *image);
Retrieves the OssoABookAvatar object used by image
.
image : |
a OssoABookAvatarImage |
Returns : | a OssoABookAvatar |
void osso_abook_avatar_image_set_pixbuf (OssoABookAvatarImage *image, GdkPixbuf *pixbuf);
GdkPixbuf* osso_abook_avatar_image_get_pixbuf (OssoABookAvatarImage *image);
GdkPixbuf* osso_abook_avatar_image_get_scaled_pixbuf (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_fallback_icon (OssoABookAvatarImage *image, const char *icon_name);
const char* osso_abook_avatar_image_get_fallback_icon (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_size (OssoABookAvatarImage *image, int size);
int osso_abook_avatar_image_get_size (OssoABookAvatarImage *image);
double osso_abook_avatar_image_get_minimum_zoom (OssoABookAvatarImage *image);
double osso_abook_avatar_image_get_current_zoom (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_maximum_zoom (OssoABookAvatarImage *image, double limit);
double osso_abook_avatar_image_get_maximum_zoom (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_xadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
GtkAdjustment* osso_abook_avatar_image_get_xadjustment (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_yadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
GtkAdjustment* osso_abook_avatar_image_get_yadjustment (OssoABookAvatarImage *image);
void osso_abook_avatar_image_set_zadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
GtkAdjustment* osso_abook_avatar_image_get_zadjustment (OssoABookAvatarImage *image);
"current-zoom"
property"current-zoom" gdouble : Read
The current zoom level.
Allowed values: >= 0
Default value: 1
"fallback-icon"
property"fallback-icon" gchar* : Read / Write
The name of the fallback icon.
Default value: "general_default_avatar"
"maximum-zoom"
property"maximum-zoom" gdouble : Read / Write
The maximal allowed zoom level.
Allowed values: >= 0
Default value: 2
"minimum-zoom"
property"minimum-zoom" gdouble : Read
The minimal allowed zoom level.
Allowed values: >= 0
Default value: 1
"size"
property"size" gint : Read / Write
Size of the avatar in pixels.
Allowed values: [16,800]
Default value: 144
"xadjustment"
property"xadjustment" GtkAdjustment* : Read / Write
The GtkAdjustment for the horizontal avatar position.
"yadjustment"
property"yadjustment" GtkAdjustment* : Read / Write
The GtkAdjustment for the vertical avatar position.