theme.h File Reference

Purple Theme Abstact Class API. More...

#include <glib.h>
#include <glib-object.h>
#include "imgstore.h"

Include dependency graph for theme.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _PurpleTheme
struct  _PurpleThemeClass

Defines

#define PURPLE_TYPE_THEME   (purple_theme_get_type ())
#define PURPLE_THEME(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME, PurpleTheme))
#define PURPLE_THEME_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME, PurpleThemeClass))
#define PURPLE_IS_THEME(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME))
#define PURPLE_IS_THEME_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME))
#define PURPLE_THEME_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME, PurpleThemeClass))

Typedefs

typedef struct _PurpleTheme PurpleTheme
 A purple theme.
typedef struct _PurpleThemeClass PurpleThemeClass

Functions

Purple Theme API
G_BEGIN_DECLS GType purple_theme_get_type (void)
 GObject foo.
const gchar * purple_theme_get_name (PurpleTheme *theme)
 Returns the name of the PurpleTheme object.
void purple_theme_set_name (PurpleTheme *theme, const gchar *name)
 Sets the name of the PurpleTheme object.
const gchar * purple_theme_get_description (PurpleTheme *theme)
 Returns the description of the PurpleTheme object.
void purple_theme_set_description (PurpleTheme *theme, const gchar *description)
 Sets the description of the PurpleTheme object.
const gchar * purple_theme_get_author (PurpleTheme *theme)
 Returns the author of the PurpleTheme object.
void purple_theme_set_author (PurpleTheme *theme, const gchar *author)
 Sets the author of the PurpleTheme object.
const gchar * purple_theme_get_type_string (PurpleTheme *theme)
 Returns the type (string) of the PurpleTheme object.
const gchar * purple_theme_get_dir (PurpleTheme *theme)
 Returns the directory of the PurpleTheme object.
void purple_theme_set_dir (PurpleTheme *theme, const gchar *dir)
 Sets the directory of the PurpleTheme object.
const gchar * purple_theme_get_image (PurpleTheme *theme)
 Returns the image preview of the PurpleTheme object.
gchar * purple_theme_get_image_full (PurpleTheme *theme)
 Returns the image preview and directory of the PurpleTheme object.
void purple_theme_set_image (PurpleTheme *theme, const gchar *img)
 Sets the directory of the PurpleTheme object.


Detailed Description

Purple Theme Abstact Class API.

Definition in file theme.h.


Typedef Documentation

typedef struct _PurpleTheme PurpleTheme

A purple theme.

This is an abstract class for Purple to use with the Purple theme manager.

PurpleTheme is a GObject.

Definition at line 39 of file theme.h.


Function Documentation

const gchar* purple_theme_get_author ( PurpleTheme theme  ) 

Returns the author of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The author of the theme.

const gchar* purple_theme_get_description ( PurpleTheme theme  ) 

Returns the description of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
A short description of the theme.

const gchar* purple_theme_get_dir ( PurpleTheme theme  ) 

Returns the directory of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The string representing the theme directory.

const gchar* purple_theme_get_image ( PurpleTheme theme  ) 

Returns the image preview of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The image preview of the PurpleTheme object.

gchar* purple_theme_get_image_full ( PurpleTheme theme  ) 

Returns the image preview and directory of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The image preview of the PurpleTheme object.

const gchar* purple_theme_get_name ( PurpleTheme theme  ) 

Returns the name of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The string representing the name of the theme.

const gchar* purple_theme_get_type_string ( PurpleTheme theme  ) 

Returns the type (string) of the PurpleTheme object.

Parameters:
theme The purple theme.
Returns:
The string representing the type.

void purple_theme_set_author ( PurpleTheme theme,
const gchar *  author 
)

Sets the author of the PurpleTheme object.

Parameters:
theme The purple theme.
author The author of the PurpleTheme object.

void purple_theme_set_description ( PurpleTheme theme,
const gchar *  description 
)

Sets the description of the PurpleTheme object.

Parameters:
theme The purple theme.
description The description of the PurpleTheme object.

void purple_theme_set_dir ( PurpleTheme theme,
const gchar *  dir 
)

Sets the directory of the PurpleTheme object.

Parameters:
theme The purple theme.
dir The directory of the PurpleTheme object.

void purple_theme_set_image ( PurpleTheme theme,
const gchar *  img 
)

Sets the directory of the PurpleTheme object.

Parameters:
theme The purple theme.
img The image preview of the PurpleTheme object.

void purple_theme_set_name ( PurpleTheme theme,
const gchar *  name 
)

Sets the name of the PurpleTheme object.

Parameters:
theme The purple theme.
name The name of the PurpleTheme object.