Struct

PurpleBuddyIconSpec

Description [src]

struct PurpleBuddyIconSpec {
  char* format;
  int min_width;
  int min_height;
  int max_width;
  int max_height;
  size_t max_filesize;
  PurpleBuddyIconScaleFlags scale_rules;
}

A description of a Buddy Icon specification. This tells Purple what kind of image file it should give a protocol, and what kind of image file it should expect back. Dimensions less than 1 should be ignored and the image not scaled.

Structure members
format

This is a comma-delimited list of image formats or NULL if icons are not supported. Neither the core nor the protocol will actually check to see if the data it’s given matches this; it’s entirely up to the UI to do what it wants.

min_width

Minimum width of this icon.

min_height

Minimum height of this icon.

max_width

Maximum width of this icon.

max_height

Maximum height of this icon.

max_filesize

Maximum size in bytes.

scale_rules

How to stretch this icon.

Constructors

purple_buddy_icon_spec_new

Creates a new PurpleBuddyIconSpec instance.

Instance methods

purple_buddy_icon_spec_free

Frees spec.

Available since: 3.0.0

purple_buddy_icon_spec_get_scaled_size

Gets display size for a buddy icon.