gntstyle.h File Reference

Style API. More...

#include "gnt.h"
#include "gntwm.h"

Include dependency graph for gntstyle.h:

Go to the source code of this file.

Enumerations

enum  GntStyle {
  GNT_STYLE_SHADOW = 0, GNT_STYLE_COLOR = 1, GNT_STYLE_MOUSE = 2, GNT_STYLE_WM = 3,
  GNT_STYLE_REMPOS = 4, GNT_STYLES
}

Functions

void gnt_style_read_configure_file (const char *filename)
 
Parameters:
filename 

const char * gnt_style_get (GntStyle style)
char * gnt_style_get_from_name (const char *group, const char *key)
 Get the value of a preference in ~/.gntrc.
gboolean gnt_style_parse_bool (const char *value)
 Parse a boolean preference.
gboolean gnt_style_get_bool (GntStyle style, gboolean def)
 
Parameters:
style 

void gnt_styles_get_keyremaps (GType type, GHashTable *hash)
 
Parameters:
type 

void gnt_style_read_actions (GType type, GntBindableClass *klass)
 
Parameters:
type 

void gnt_style_read_workspaces (GntWM *wm)
void gnt_init_styles (void)
void gnt_uninit_styles (void)


Detailed Description

Style API.

Definition in file gntstyle.h.


Enumeration Type Documentation

enum GntStyle

Enumerator:
GNT_STYLE_SHADOW 
GNT_STYLE_COLOR 
GNT_STYLE_MOUSE 
GNT_STYLE_WM 
GNT_STYLE_REMPOS 
GNT_STYLES 

Definition at line 30 of file gntstyle.h.


Function Documentation

gboolean gnt_style_get_bool ( GntStyle  style,
gboolean  def 
)

Parameters:
style 

Parameters:
def 
Returns:

char* gnt_style_get_from_name ( const char *  group,
const char *  key 
)

Get the value of a preference in ~/.gntrc.

Parameters:
group The name of the group in the keyfile. If NULL, the prgname will be used first, if available. Otherwise, "general" will be used.
key The key
Returns:
The value of the setting as a string, or NULL

gboolean gnt_style_parse_bool ( const char *  value  ) 

Parse a boolean preference.

For example, if 'value' is "false" (ignoring case) or "0", the return value will be FALSE, otherwise TRUE.

Parameters:
value The value of the boolean setting as a string
Returns:
The boolean value

void gnt_style_read_actions ( GType  type,
GntBindableClass klass 
)

Parameters:
type 

Parameters:
klass 

void gnt_styles_get_keyremaps ( GType  type,
GHashTable *  hash 
)

Parameters:
type 

Parameters:
hash