JWM Source Documentation
Data Structures | Typedefs | Functions
action.c File Reference

Tray component actions. More...

#include "jwm.h"
#include "action.h"
#include "tray.h"
#include "root.h"
#include "screen.h"
#include "misc.h"
#include "error.h"
#include "cursor.h"
#include "command.h"
#include "desktop.h"
#include "menu.h"

Go to the source code of this file.

Data Structures

struct  ActionType
 

Typedefs

typedef struct ActionType ActionType
 

Functions

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

Detailed Description

Tray component actions.

Author
Joe Wingbermuehle

Definition in file action.c.

Typedef Documentation

typedef struct ActionType ActionType

Function Documentation

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

Add an action.

Add an action to a list of actions.

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 an action list.

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 
)
void ValidateActions ( const ActionType actions)

Validate actions.

Definition at line 204 of file action.c.

References _, ActionType::action, GetRootMenuIndexFromString(), IsRootMenuDefined(), JUNLIKELY, ActionType::next, and Warning().

Referenced by ValidateTrayButtons().

joewing.net / Projects / JWM