diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 23:29:19 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 23:29:19 +0000 |
commit | feee5500811ad81003e9324c60ade31ce6701e19 (patch) | |
tree | 9820315373321290ae8875641876113126d5585d /recordmydesktop/include | |
parent | c908820aaaf199ee4e7864ba48d337cc9141cea0 (diff) |
doc/recordmydesktop.1: added documentation for --no-frame
include/rmdfunc.h: added frame related function prototypes
include/rmdmacro.h: default(off) for --no-frame
include/rmdtypes.h: added --no-frame(noframe) in args
src/rmd_frame.c: create and move around the frame
src/Makefile.am: added rmd_frame.c
src/parseargs.c: parse --no-frame
src/queryextensions.c: check for XShape, too(implicit, non-fatal)
src/rmd_frame.c: init, move and draw funcs for the frame.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@445 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/include')
-rw-r--r-- | recordmydesktop/include/rmdfunc.h | 66 | ||||
-rw-r--r-- | recordmydesktop/include/rmdmacro.h | 1 | ||||
-rw-r--r-- | recordmydesktop/include/rmdtypes.h | 1 |
3 files changed, 67 insertions, 1 deletions
diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h index b5bafd8..dad87dd 100644 --- a/recordmydesktop/include/rmdfunc.h +++ b/recordmydesktop/include/rmdfunc.h @@ -723,10 +723,74 @@ int RegisterShortcut(Display *dpy, * otherwise. * */ - int rmdErrorHandler(Display *dpy,XErrorEvent *e); +/* + * Create a frame that marks the recording area. + * + * \param dpy Connection to the X Server + * + * \param screen Recorded screen + * + * \param root Root window of the display + * + * \param x X pos of the recorded area + * + * \param y Y pos of the recorded area + * + * \param width Width of the recorded area + * + * \param height Height of the recorded area + * + * \returns The WindowID of the frame + * + */ +Window rmdFrameInit(Display *dpy, + int screen, + Window root, + int x, + int y, + int width, + int height); + + +/* + * Move the frame (subtracts the borderwidth) + * + * \param dpy Connection to the X Server + * + * \param win WindowId of the frame + * + * \param x New X pos of the recorded area + * + * \param y New Y pos of the recorded area + * + */ +void rmdMoveFrame(Display *dpy, + Window win, + int x, + int y); + +/* + * Redraw the frame that marks the recording area. + * + * \param dpy Connection to the X Server + * + * \param screen Recorded screen + * + * \param win WindoID of the frame + * + * \param width Width of the recorded area + * + * \param height Height of the recorded area + * + */ +void rmdDrawFrame(Display *dpy, + int screen, + Window win, + int width, + int height); #endif diff --git a/recordmydesktop/include/rmdmacro.h b/recordmydesktop/include/rmdmacro.h index d167675..3f3564c 100644 --- a/recordmydesktop/include/rmdmacro.h +++ b/recordmydesktop/include/rmdmacro.h @@ -207,6 +207,7 @@ (args)->use_jack=\ (args)->noshared=\ (args)->no_encode=\ + (args)->noframe=\ (args)->jack_nports=0;\ (args)->jack_ringbuffer_secs=3.0;\ (args)->jack_port_names=NULL;\ diff --git a/recordmydesktop/include/rmdtypes.h b/recordmydesktop/include/rmdtypes.h index 70e050c..b84a148 100644 --- a/recordmydesktop/include/rmdtypes.h +++ b/recordmydesktop/include/rmdtypes.h @@ -165,6 +165,7 @@ typedef struct _ProgArgs{ char *workdir; //directory to be used for cache files(default $HOME) char *pause_shortcut; //pause/unpause shortcut sequence(Control+Alt+p) char *stop_shortcut; //stop shortcut sequence(Control+Alt+s) + int noframe; //don't draw a frame around the recording area int zerocompression; //image data are always flushed uncompressed int overwrite; //overwite a previously existing file //(do not add a .number postfix) |