XSettingsManager Class Reference
Manager part of XSETTINGS protocol.
More...
#include <edelib/XSettingsManager.h>
List of all members.
Detailed Description
Manager part of XSETTINGS protocol.
XSettingsManager is class used to make manager(s) for XSETTINGS. Please note that XSETTINGS supports only one manager to be up so this must be taken into account.
Final applications should not use this class except manager is not provided.
Constructor & Destructor Documentation
Member Function Documentation
Clears internal data. init() must be called agan if other functions are going to be called
bool init |
( |
Display * |
dpy, |
|
|
int |
screen | |
|
) |
| | |
Init needed communication parts.
- Returns:
- false if failed
- Parameters:
-
| dpy | is display |
| screen | is screen |
static bool manager_running |
( |
Display * |
dpy, |
|
|
int |
screen | |
|
) |
| | [static] |
Checks if other manager is running
- Returns:
- true if does otherwise false
- Parameters:
-
| dpy | is display |
| screen | is screen |
Notify for changed data. This should be called aftear set()
void set |
( |
const char * |
name, |
|
|
unsigned short |
red, |
|
|
unsigned short |
green, |
|
|
unsigned short |
blue, |
|
|
unsigned short |
alpha | |
|
) |
| | |
Set RGBA color values on manager
- Parameters:
-
| name | is setting name |
| red | is red component |
| green | is green component |
| blue | is blue component |
| alpha | is alpha component |
void set |
( |
const char * |
name, |
|
|
const char * |
val | |
|
) |
| | |
Set string (char*) value on manager. Data will be copied
- Parameters:
-
| name | is setting name |
| val | is string value |
void set |
( |
const char * |
name, |
|
|
int |
val | |
|
) |
| | |
Set integer value on manager
- Parameters:
-
| name | is setting name |
| val | is int value |
bool should_terminate |
( |
const XEvent * |
xev |
) |
|
This function must be placed in X loop
- Returns:
- true if should terminate
- Parameters:
-
Member Data Documentation
Data used by manager class
The documentation for this class was generated from the following file: