JWM Source Documentation
Functions
swallow.h File Reference

Swallow tray component. More...

Go to the source code of this file.

Functions

struct TrayComponentTypeCreateSwallow (const char *name, const char *command, int width, int height)
 Create a swallowed application tray component.
 
char CheckSwallowMap (Window win)
 Determine if a window should be swallowed.
 
char ProcessSwallowEvent (const XEvent *event)
 Process an event on a swallowed window.
 
char IsSwallowPending (void)
 Determine if there are swallow processes pending.
 
#define InitializeSwallow()   (void)(0)
 
#define ShutdownSwallow()   (void)(0)
 
void StartupSwallow (void)
 Start swallow processing.
 
void DestroySwallow (void)
 Destroy swallow data.
 

Detailed Description

Swallow tray component.

Author
Joe Wingbermuehle
Date
2005-2006

Definition in file swallow.h.

Macro Definition Documentation

#define InitializeSwallow ( )    (void)(0)

Definition at line 14 of file swallow.h.

Referenced by Initialize().

#define ShutdownSwallow ( )    (void)(0)

Definition at line 16 of file swallow.h.

Referenced by Shutdown().

Function Documentation

char CheckSwallowMap ( Window  win)
struct TrayComponentType* CreateSwallow ( const char *  name,
const char *  command,
int  width,
int  height 
)
read

Create a swallowed application tray component.

Parameters
nameThe name of the application to swallow.
commandThe command used to start the swallowed application.
widthThe width to use (0 for default).
heightthe height to use (0 for default).

Definition at line 77 of file swallow.c.

References _, Allocate, SwallowNode::command, CopyString(), SwallowNode::cp, CreateTrayComponent(), Destroy(), TrayComponentType::Destroy, JUNLIKELY, SwallowNode::name, SwallowNode::next, TrayComponentType::object, pendingNodes, TrayComponentType::requestedHeight, TrayComponentType::requestedWidth, Resize(), TrayComponentType::Resize, SwallowNode::userHeight, SwallowNode::userWidth, and Warning().

Referenced by ParseSwallow().

void DestroySwallow ( void  )

Destroy swallow data.

Definition at line 53 of file swallow.c.

References ReleaseNodes().

Referenced by Destroy().

char IsSwallowPending ( void  )

Determine if there are swallow processes pending.

Returns
1 if there are still pending swallow processes, 0 otherwise.

Definition at line 278 of file swallow.c.

Referenced by EventLoop().

char ProcessSwallowEvent ( const XEvent *  event)

Process an event on a swallowed window.

Parameters
eventThe event to process.
Returns
1 if the event was for a swallowed window, 0 if not.

Definition at line 122 of file swallow.c.

References SwallowNode::border, SwallowNode::cp, SwallowNode::next, TrayComponentType::requestedHeight, TrayComponentType::requestedWidth, ResizeTray(), TrayComponentType::tray, and TrayComponentType::window.

Referenced by WaitForEvent().

void StartupSwallow ( void  )

Start swallow processing.

Definition at line 42 of file swallow.c.

References SwallowNode::command, SwallowNode::next, and RunCommand().

Referenced by Startup().

joewing.net / Projects / JWM