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);
avatar : |
the avatar to display |
size : |
the size in pixels to use for the avatar |
Returns : | a newly created OssoABookAvatarImage widget |
void osso_abook_avatar_image_set_avatar (OssoABookAvatarImage *image, OssoABookAvatar *avatar);
Sets the avatar 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);
Sets a pixbuf to be displayed in the image
widget
image : |
a OssoABookAvatarImage |
pixbuf : |
a pixbuf to display as an avatar image |
GdkPixbuf* osso_abook_avatar_image_get_pixbuf (OssoABookAvatarImage *image);
Gets the pixbuf that image
is displaying
image : |
a OssoABookAvatarImage |
Returns : | a pixbuf owned by image
|
GdkPixbuf* osso_abook_avatar_image_get_scaled_pixbuf (OssoABookAvatarImage *image);
Gets a scaled copy of the pixbuf that image
is displaying
image : |
a OssoABookAvatarImage |
Returns : | a pixbuf owned by the caller |
void osso_abook_avatar_image_set_fallback_icon (OssoABookAvatarImage *image, const char *icon_name);
If no other image is specified for image
, the stock icon specified by
icon_name
will be used instead
image : |
a OssoABookAvatarImage |
icon_name : |
an icon to use as a fallback |
const char* osso_abook_avatar_image_get_fallback_icon (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the icon name of the fallback icon for image
|
void osso_abook_avatar_image_set_size (OssoABookAvatarImage *image, int size);
Sets the display size for image
image : |
a OssoABookAvatarImage |
size : |
the avatar size in pixels |
int osso_abook_avatar_image_get_size (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the display size in pixels for image
|
double osso_abook_avatar_image_get_minimum_zoom (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the minimum zoom level for image (1.0 means no scaling)
|
double osso_abook_avatar_image_get_current_zoom (OssoABookAvatarImage *image);
Gets the current zoom value. A zoom value of 1.0 means no scaling.
image : |
a OssoABookAvatarImage |
Returns : | the current zoom level for image
|
void osso_abook_avatar_image_set_maximum_zoom (OssoABookAvatarImage *image, double limit);
Sets the maximum zoom level for image
(1.0 means no scaling)
image : |
a OssoABookAvatarImage |
limit : |
the new maximum zoom level for image
|
double osso_abook_avatar_image_get_maximum_zoom (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the maximum zoom level for image (1.0 means no scaling)
|
void osso_abook_avatar_image_set_xadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
Sets the adjustment object to use for the X axis
image : |
a OssoABookAvatarImage |
adjustment : |
a GtkAdjustment to use for the X axis |
GtkAdjustment* osso_abook_avatar_image_get_xadjustment (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the GtkAdjustment used for the X axis, owned by image
|
void osso_abook_avatar_image_set_yadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
Sets the adjustment object to use for the Y axis
image : |
a OssoABookAvatarImage |
adjustment : |
a GtkAdjustment to use for the Y axis |
GtkAdjustment* osso_abook_avatar_image_get_yadjustment (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the GtkAdjustment used for the Y axis, owned by image
|
void osso_abook_avatar_image_set_zadjustment (OssoABookAvatarImage *image, GtkAdjustment *adjustment);
Sets the adjustment object to use for the Z axis (also known as zoom)
image : |
a OssoABookAvatarImage |
adjustment : |
a GtkAdjustment to use for zoom |
GtkAdjustment* osso_abook_avatar_image_get_zadjustment (OssoABookAvatarImage *image);
image : |
a OssoABookAvatarImage |
Returns : | the GtkAdjustment used for zoom, owned by 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.