diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2010-04-16 18:04:24 +0200 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-05-17 19:31:21 -0400 |
| commit | 7a679dd1989ee0b5b36ab2d6b16af47be8a537ad (patch) | |
| tree | f981d2a8fb64785371ca618b213299b083ef4421 /openbox/config.h | |
| parent | 1c637efcbb26211f0274687beb8f462d5db36cd5 (diff) | |
Add support for using relative expressions in move and resize actions
Have MoveResizeTo use config_parse_gravity_coord instead of duplicating it locally
Allow MoveResizeTo positions and sizes and per app positions to be relative to screen size
Rename to config_parse_relative_number so it can be used for sizes too
Add relative numbers to width/height in MoveResizeTo
Add relative numbers to MoveRelative
Add relative numbers to ResizeRelative, these are for the client size, not screen size
Diffstat (limited to 'openbox/config.h')
| -rw-r--r-- | openbox/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/config.h b/openbox/config.h index 90b6581a..890b002a 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -215,5 +215,10 @@ ObAppSettings* config_create_app_settings(void); src. */ void config_app_settings_copy_non_defaults(const ObAppSettings *src, ObAppSettings *dest); +/*! Parses an x geometry style position, with some extensions like ratios + and percentages */ +void config_parse_gravity_coord(xmlNodePtr node, GravityCoord *c); +/*! Parses a rational number or percentage into num and denom */ +void config_parse_relative_number(gchar *s, gint *num, gint *denom); #endif |
