JWM Source Documentation
Functions
action.h File Reference

Tray component actions. More...

Go to the source code of this file.

Functions

void AddAction (struct ActionType **actions, const char *action, int mask)
 Add an action to a list of actions.
 
void DestroyActions (struct ActionType *actions)
 Destroy a list of actions.
 
void ProcessActionPress (struct ActionType *actions, struct TrayComponentType *cp, int x, int y, int button)
 Process a button press event.
 
void ProcessActionRelease (struct ActionType *actions, struct TrayComponentType *cp, int x, int y, int button)
 Process a button release event.
 
void ValidateActions (const struct ActionType *actions)
 Validate actions.
 

Detailed Description

Tray component actions.

Author
Joe Wingbermuehle

Definition in file action.h.

Function Documentation

void AddAction ( ActionType **  actions,
const char *  action,
int  mask 
)

Add an action to a list of actions.

Parameters
actionsThe action list to update.
actionThe action to add to the list.
maskThe mouse button mask.

Definition at line 27 of file action.c.

References _, ActionType::action, Allocate, CopyString(), ActionType::mask, ActionType::next, and Warning().

Referenced by AddClockAction(), and AddTrayButtonAction().

void DestroyActions ( ActionType actions)

Destroy a list of actions.

Definition at line 56 of file action.c.

References ActionType::action, ActionType::next, and Release.

Referenced by DestroyClock(), and DestroyTrayButtons().

void ProcessActionPress ( struct ActionType actions,
struct TrayComponentType cp,
int  x,
int  y,
int  button 
)
void ProcessActionRelease ( struct ActionType actions,
struct TrayComponentType cp,
int  x,
int  y,
int  button 
)

Process a button release event.

Parameters
actionsThe action list.
cpThe tray component.
xThe mouse x-coordinate.
yThe mouse y-coordinate.
buttonThe mouse button.

Definition at line 162 of file action.c.

References ActionType::action, TrayComponentType::grabbed, TrayComponentType::height, JUNLIKELY, ActionType::mask, menuShown, ActionType::next, TrayComponentType::Redraw, RunCommand(), ShowDesktop(), TrayComponentType::tray, UpdateSpecificTray(), and TrayComponentType::width.

Referenced by ProcessButtonRelease(), and ProcessClockButtonRelease().

void ValidateActions ( const struct ActionType actions)

Validate actions.

Parameters
actionsThe action list to validate.

joewing.net / Projects / JWM