X11workbench Toolkit
1.0
|
Desktop Settings Utilities, to query desktop-defined settings like fonts, colors, mouse click times, etc. More...
Data Structures | |
struct | tagXSETTINGS_DATA_COLOR |
Structure for storing configuration color information, XSettingsTypeColor. More... | |
struct | tagCHXSetting |
Structure for storing settings information internally. More... | |
struct | tagCHXSettings |
Array wrapper for CHXSetting cache. More... | |
struct | tagCHXMLEntry |
Descriptor for parsed XML entry. More... | |
Typedefs | |
typedef struct tagXSETTINGS_DATA_COLOR | XSETTINGS_DATA_COLOR |
Structure for storing configuration color information, XSettingsTypeColor. More... | |
typedef struct tagCHXSetting | CHXSetting |
Structure for storing settings information internally. More... | |
typedef struct tagCHXSettings | CHXSettings |
Array wrapper for CHXSetting cache. More... | |
Enumerations | |
enum | XSettingsType { XSettingsTypeInteger = 0, XSettingsTypeString = 1, XSettingsTypeColor = 2 } |
Enumeration for 'XSettingsType' which describes the type of setting being cached. More... | |
Functions | |
int | CHGetResourceString (Display *pDisplay, const char *szIdentifier, char *szData, int cbData) |
Queries desktop resource strings (may become deprecated) More... | |
int | CHGetResourceInt (Display *pDisplay, const char *szIdentifier) |
Queryies desktop resource integer values (from strings) (may become deprecated) More... | |
void | CHSettingsRefresh (Display *pDisplay) |
refresh the internally cached X settings More... | |
const CHXSettings * | CHGetXSettings (Display *pDisplay) |
returns a pointer to the cached X settings More... | |
const CHXSetting * | CHGetXSetting (Display *pDisplay, const char *szSettingName) |
returns a pointer to a specific X setting entry by name More... | |
int | CHGetDoubleClickTime (Display *pDisplay) |
returns default double click time (from X settings) More... | |
int | CHGetDoubleClickDistance (Display *pDisplay) |
returns default double click distance (from X settings) More... | |
int | CHGetDragThreshold (Display *pDisplay) |
returns default drag threshold (from X settings) More... | |
int | CHGetCursorBlink (Display *pDisplay) |
returns default cursor blink 'enable' flag (from X settings) More... | |
int | CHGetCursorBlinkTime (Display *pDisplay) |
returns default cursor blink time (from X settings) More... | |
const char * | CHGetBorderColor (Display *pDisplay) |
returns border color More... | |
const char * | CHGetStaticBackgroundColor (Display *pDisplay) |
returns background color for static elements More... | |
const char * | CHGetToolTipBackgroundColor (Display *pDisplay) |
returns background color for 'tool tips' More... | |
const char * | CHGetDialogBackgroundColor (Display *pDisplay) |
returns background color for dialog frame elements More... | |
const char * | CHGetActiveBackgroundColor (Display *pDisplay) |
returns background color for active elements More... | |
const char * | CHGetDisabledBackgroundColor (Display *pDisplay) |
returns background color for disabled (greyed) elements More... | |
const char * | CHGetBackgroundColor (Display *pDisplay) |
returns background color for non-static elements More... | |
const char * | CHGetDialogTextColor (Display *pDisplay) |
returns text color for dialog frame elements More... | |
const char * | CHGetActiveTextColor (Display *pDisplay) |
returns 'active' text color More... | |
const char * | CHGetDisabledTextColor (Display *pDisplay) |
returns 'disabled' (greyed) text color More... | |
const char * | CHGetToolTipTextColor (Display *pDisplay) |
returns text color for 'tool tips' More... | |
const char * | CHGetTextColor (Display *pDisplay) |
returns text color More... | |
const char * | CHGetHighlightForegroundColor (Display *pDisplay) |
returns highlight foreground color More... | |
const char * | CHGetHighlightBackgroundColor (Display *pDisplay) |
returns highlight background color More... | |
char * | CHGetFileMimeType (const char *szFileName) |
Get the MIME type for a particular file name or extension. More... | |
char * | CHGetMimeDefaultApp (const char *szMimeType) |
Get the default application for a particular MIME type. More... | |
char * | CHGetDesktopFileInfo (const char *szDesktopFile, const char *szInfo) |
Get the default application for a particular MIME type. More... | |
void | CHDumpConfig (void) |
dump config information using debug output functions More... | |
Desktop Settings Utilities, to query desktop-defined settings like fonts, colors, mouse click times, etc.
Structure for storing settings information internally.
This structure is used internally by the Configuration 'helper' functions to cache configuration information obtained from the Window Manager or from the (deprecated) system configuration.
Array wrapper for CHXSetting cache.
This structure wraps the array of CHXSetting structures and any variable length data that it might reference. It is the internal format for the settings array and can be retrieved by calling CHGetXSettings()
Structure for storing configuration color information, XSettingsTypeColor.
This structure is part of the X11 Window Manager specification, and is defined here for use by the X11Workbench toolkit.
enum XSettingsType |
Enumeration for 'XSettingsType' which describes the type of setting being cached.
Enumerator | |
---|---|
XSettingsTypeInteger | The setting is an integer. |
XSettingsTypeString | The setting is a 0-byte terminated ASCII string. |
XSettingsTypeColor | The setting is an RGBA Color stored as XSETTINGS_DATA_COLOR. |
Definition at line 350 of file conf_help.h.
void CHDumpConfig | ( | void | ) |
dump config information using debug output functions
Debug function to dump config information using the debug output functions
Header File: conf_help.h
Definition at line 3444 of file conf_help.c.
const char* CHGetActiveBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for active elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#0000c0" or "#00000000c0c0" Active background is for windows and items that currently have the focus
Header File: conf_help.h
Definition at line 3323 of file conf_help.c.
const char* CHGetActiveTextColor | ( | Display * | pDisplay | ) |
returns 'active' text color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the text color as a string, default "#ffffff" or "#ffffffffffff" Active text color is the text color in an element that has the input focus.
Header File: conf_help.h
Definition at line 3366 of file conf_help.c.
const char* CHGetBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for non-static elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#ffffff" or "#ffffffffffff" 'Regular' background color is for windows and controls that display selectable and/or editable content
Header File: conf_help.h
Definition at line 3341 of file conf_help.c.
const char* CHGetBorderColor | ( | Display * | pDisplay | ) |
returns border color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the border color as a string, default "#000000" or "#000000000000"
Header File: conf_help.h
Definition at line 3279 of file conf_help.c.
int CHGetCursorBlink | ( | Display * | pDisplay | ) |
returns default cursor blink 'enable' flag (from X settings)
pDisplay | The Display pointer (NULL for default) |
Returns the default cursor blink 'enable' flag, zero to disable, non-zero to enable.
Header File: conf_help.h
Definition at line 2319 of file conf_help.c.
int CHGetCursorBlinkTime | ( | Display * | pDisplay | ) |
returns default cursor blink time (from X settings)
pDisplay | The Display pointer (NULL for default) |
Returns the default cursor blink time in milliseconds
Header File: conf_help.h
Definition at line 2358 of file conf_help.c.
char* CHGetDesktopFileInfo | ( | const char * | szDesktopFile, |
const char * | szInfo | ||
) |
Get the default application for a particular MIME type.
szDesktopFile | A const pointer to a character string containing the desktop file name |
szInfo | A const pointer to a character string containing the tag for the desired information |
This function will return NULL on error, or a WBAlloc'd pointer to a string. Caller must free any non-NULL pointer returned by this function, using WBFree()
Header File: conf_help.h
Definition at line 3158 of file conf_help.c.
const char* CHGetDialogBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for dialog frame elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#edeceb" or "#ededececebeb" [consider e0e0e0] Dialog background is for dialog frames and most dialog box controls
Header File: conf_help.h
Definition at line 3308 of file conf_help.c.
const char* CHGetDialogTextColor | ( | Display * | pDisplay | ) |
returns text color for dialog frame elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the text color as a string, default "#000000" or "#000000000000" Dialog text color is for dialog frames, labels, and other static elements in a dialog box/frame
Header File: conf_help.h
Definition at line 3352 of file conf_help.c.
const char* CHGetDisabledBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for disabled (greyed) elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#0000c0" or "#00000000c0c0" Disabled background is for windows and items that are disabled (greyed)
Header File: conf_help.h
Definition at line 3336 of file conf_help.c.
const char* CHGetDisabledTextColor | ( | Display * | pDisplay | ) |
returns 'disabled' (greyed) text color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the text color as a string, default "#808080" or "#808080808080" Disabled text color is the text color in an element that has been disabled (greyed)
Header File: conf_help.h
Definition at line 3378 of file conf_help.c.
int CHGetDoubleClickDistance | ( | Display * | pDisplay | ) |
returns default double click distance (from X settings)
pDisplay | The Display pointer (NULL for default) |
Returns double-click 'slop' distance in pixels
Header File: conf_help.h
Definition at line 2241 of file conf_help.c.
int CHGetDoubleClickTime | ( | Display * | pDisplay | ) |
returns default double click time (from X settings)
pDisplay | The Display pointer (NULL for default) |
Returns default double-click time in milliseconds
Header File: conf_help.h
Definition at line 2202 of file conf_help.c.
int CHGetDragThreshold | ( | Display * | pDisplay | ) |
returns default drag threshold (from X settings)
pDisplay | The Display pointer (NULL for default) |
Returns default drag threshold in pixels
Header File: conf_help.h
Definition at line 2280 of file conf_help.c.
char* CHGetFileMimeType | ( | const char * | szFileName | ) |
Get the MIME type for a particular file name or extension.
szFileName | A const pointer to a string containing the filename or '.ext' for which to obtain the MIME type |
This function will return NULL on error, or a WBAlloc'd pointer to a string. Caller must free any non-NULL pointer returned by this function, using WBFree()
Header File: conf_help.h
Definition at line 3088 of file conf_help.c.
const char* CHGetHighlightBackgroundColor | ( | Display * | pDisplay | ) |
returns highlight background color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the highlight background color as a string, default "#0000a0" or "#00000000a0a0" [consider a0a0a0] Highlight colors include selected text, or selected items from a list.
Header File: conf_help.h
Definition at line 3425 of file conf_help.c.
const char* CHGetHighlightForegroundColor | ( | Display * | pDisplay | ) |
returns highlight foreground color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the highlight foreground color as a string, default "#f0f0f0" or "#f0f0f0f0f0f0" Highlight colors include selected text, or selected items from a list.
Header File: conf_help.h
Definition at line 3409 of file conf_help.c.
char* CHGetMimeDefaultApp | ( | const char * | szMimeType | ) |
Get the default application for a particular MIME type.
szMimeType | A const pointer to a character string containing the MIME type |
In the case of a '.desktop' file name being returned, use CHGetDesktopFileInfo() to obtain the actual path name and other information associated with the application.
This function will return NULL on error, or a WBAlloc'd pointer to a string. Caller must free any non-NULL pointer returned by this function, using WBFree()
Header File: conf_help.h
Definition at line 3110 of file conf_help.c.
int CHGetResourceInt | ( | Display * | pDisplay, |
const char * | szIdentifier | ||
) |
Queryies desktop resource integer values (from strings) (may become deprecated)
pDisplay | The Display pointer (NULL for default) |
szIdentifier | The item to query |
This queries integer values from the 'Old' resource manager. This function is deprecated. Some window managers may still supporte it, however, so it's worth keeping for now.
Header File: conf_help.h
Definition at line 604 of file conf_help.c.
int CHGetResourceString | ( | Display * | pDisplay, |
const char * | szIdentifier, | ||
char * | szData, | ||
int | cbData | ||
) |
Queries desktop resource strings (may become deprecated)
pDisplay | Display pointer (NULL for default) |
szIdentifier | The item to query |
szData | Output buffer |
cbData | Size of the output buffer in bytes |
This queries string values from the 'Old' resource manager. This function is deprecated. Some window managers may still supporte it, however, so it's worth keeping for now.
Header File: conf_help.h
Definition at line 474 of file conf_help.c.
const char* CHGetStaticBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for static elements
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#edeceb" or "#ededececebeb" Static background is for menus, toolbars, labels, and so forth
Header File: conf_help.h
Definition at line 3288 of file conf_help.c.
const char* CHGetTextColor | ( | Display * | pDisplay | ) |
returns text color
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the text color as a string, default "#000000" or "#000000000000" This is the default text/foreground color for everything that doesn't have a special color definition.
Header File: conf_help.h
Definition at line 3399 of file conf_help.c.
const char* CHGetToolTipBackgroundColor | ( | Display * | pDisplay | ) |
returns background color for 'tool tips'
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the background color as a string, default "#f8f880" or "#f8f8f8f88080"
Header File: conf_help.h
Definition at line 3299 of file conf_help.c.
const char* CHGetToolTipTextColor | ( | Display * | pDisplay | ) |
returns text color for 'tool tips'
pDisplay | The Display pointer (NULL for default) |
Returns const pointer to the text color as a string, default "#000000" or "#000000000000"
Header File: conf_help.h
Definition at line 3390 of file conf_help.c.
const CHXSetting* CHGetXSetting | ( | Display * | pDisplay, |
const char * | szSettingName | ||
) |
returns a pointer to a specific X setting entry by name
pDisplay | The Display pointer (NULL for default) |
szSettingName | The name of the setting as a 0-byte terminated string |
Use this function to query a specific CHXSetting structure via the setting name
Header File: conf_help.h
Definition at line 1746 of file conf_help.c.
const CHXSettings* CHGetXSettings | ( | Display * | pDisplay | ) |
returns a pointer to the cached X settings
pDisplay | The Display pointer (NULL for default) |
Returns a (const) pointer to the CHXSettings structure that wraps the cached X settings
Header File: conf_help.h
void CHSettingsRefresh | ( | Display * | pDisplay | ) |
refresh the internally cached X settings
pDisplay | The Display pointer (NULL for default) |
This function will refresh the internally cached X settings using various methods to query the system's parameter storage, some deprecated, some in accordance with the latest window manager specs.
Header File: conf_help.h
Definition at line 1798 of file conf_help.c.