| gfbgraph Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
#include <gfbgraph/gfbgraph.h> struct GFBGraphPhoto; struct GFBGraphPhotoClass; struct GFBGraphPhotoImage; GFBGraphPhoto * gfbgraph_photo_new (void); GFBGraphPhoto * gfbgraph_photo_new_from_id (GFBGraphAuthorizer *authorizer,const gchar *id,GError **error); GInputStream * gfbgraph_photo_download_default_size (GFBGraphPhoto *photo,GFBGraphAuthorizer *authorizer,GError **error); const gchar * gfbgraph_photo_get_name (GFBGraphPhoto *photo); const gchar * gfbgraph_photo_get_default_source_uri (GFBGraphPhoto *photo); guint gfbgraph_photo_get_default_width (GFBGraphPhoto *photo); guint gfbgraph_photo_get_default_height (GFBGraphPhoto *photo); GList * gfbgraph_photo_get_images (GFBGraphPhoto *photo); const GFBGraphPhotoImage * gfbgraph_photo_get_image_hires (GFBGraphPhoto *photo); const GFBGraphPhotoImage * gfbgraph_photo_get_image_near_width (GFBGraphPhoto *photo,guint width); const GFBGraphPhotoImage * gfbgraph_photo_get_image_near_height (GFBGraphPhoto *photo,guint height);
"height" guint : Read / Write "images" gpointer : Read / Write "name" gchar* : Read / Write "source" gchar* : Read / Write "width" guint : Read / Write
struct GFBGraphPhotoImage {
guint width;
guint height;
gchar *source;
};
An struct with the information of a image.
GFBGraphPhoto * gfbgraph_photo_new (void);
Creates a new GFBGraphPhoto.
Returns : |
a new GFBGraphPhoto; unref with g_object_unref(). [transfer full]
|
GFBGraphPhoto * gfbgraph_photo_new_from_id (GFBGraphAuthorizer *authorizer,const gchar *id,GError **error);
Retrieves an photo node from the Facebook Graph with the give ID.
|
a GFBGraphAuthorizer. |
|
a const gchar with the photo ID. |
|
a GError or NULL. [allow-none]
|
Returns : |
a new GFBGraphPhoto; unref with g_object_unref(). [transfer full]
|
GInputStream * gfbgraph_photo_download_default_size (GFBGraphPhoto *photo,GFBGraphAuthorizer *authorizer,GError **error);
Download the default sized photo pointed by photo, with a maximum width or height of 720px.
The photo always is a JPEG.
|
a GFBGraphPhoto. |
|
a GFBGraphAuthorizer. |
|
a GError or NULL. [allow-none]
|
Returns : |
a GInputStream with the photo content or NULL in case of error. [transfer full]
|
const gchar * gfbgraph_photo_get_name (GFBGraphPhoto *photo);
|
a GFBGraphPhoto. |
Returns : |
the photo name, which is the comment given by the user so it would by larger, or NULL. [transfer none]
|
const gchar * gfbgraph_photo_get_default_source_uri
(GFBGraphPhoto *photo);
guint gfbgraph_photo_get_default_height (GFBGraphPhoto *photo);
GList * gfbgraph_photo_get_images (GFBGraphPhoto *photo);
|
a GFBGraphPhoto. |
Returns : |
a GList of GFBGraphPhotoImage with the available photo sizes. [element-type GFBGraphPhotoImage][transfer none] |
const GFBGraphPhotoImage * gfbgraph_photo_get_image_hires
(GFBGraphPhoto *photo);
|
a GFBGraphPhoto. |
Returns : |
a GFBGraphPhotoImage with the higher resolution available of the photo. [transfer none] |
const GFBGraphPhotoImage * gfbgraph_photo_get_image_near_width (GFBGraphPhoto *photo,guint width);
const GFBGraphPhotoImage * gfbgraph_photo_get_image_near_height (GFBGraphPhoto *photo,guint height);
"height" property"height" guint : Read / Write
The default photo height, up to 720px.
Default value: 0
"images" property"images" gpointer : Read / Write
A list with the available representations of the photo, in differents sizes
"name" property"name" gchar* : Read / Write
The name of the photo given by his owner.
Default value: ""
"source" property"source" gchar* : Read / Write
An URI for the photo, with a maximum width or height of 720px.
Default value: ""
"width" property"width" guint : Read / Write
The default photo width, up to 720px.
Default value: 0