gtkosx-image

gtkosx-image

Functions

NSImage * nsimage_from_resource ()
NSImage * nsimage_from_pixbuf ()

Description

Functions

nsimage_from_resource ()

NSImage *
nsimage_from_resource (const gchar *name,
                       const gchar *type,
                       const gchar *subdir);

Retrieve an image file from the bundle and return an NSImage* of it.

Parameters

name

The filename

 

type

The extension (e.g., jpg) of the filename

 

subdir

The subdirectory of $Bundle/Contents/Resources in which to look for the file.

 

Returns

An autoreleased NSImage


nsimage_from_pixbuf ()

NSImage *
nsimage_from_pixbuf (GdkPixbuf *pixbuf);

Types and Values