JWM Source Documentation
Functions
background.h File Reference

Background control functions. More...

Go to the source code of this file.

Functions

void SetBackground (int desktop, const char *type, const char *value)
 Set the background to use for the specified desktops.
 
void LoadBackground (int desktop)
 Load the background for the specified desktop.
 
void InitializeBackgrounds (void)
 Initialize any data needed for background support.
 
void StartupBackgrounds (void)
 Startup background support.
 
void ShutdownBackgrounds (void)
 Shutdown background support.
 
void DestroyBackgrounds (void)
 Release any data needed for background support.
 

Detailed Description

Background control functions.

Author
Joe Wingbermuehle
Date
2007

Definition in file background.h.

Function Documentation

void DestroyBackgrounds ( void  )

Release any data needed for background support.

Definition at line 108 of file background.c.

References BackgroundNode::next, Release, and BackgroundNode::value.

Referenced by Destroy().

void InitializeBackgrounds ( void  )

Initialize any data needed for background support.

Definition at line 53 of file background.c.

Referenced by Initialize().

void LoadBackground ( int  desktop)
void SetBackground ( int  desktop,
const char *  type,
const char *  value 
)

Set the background to use for the specified desktops.

Parameters
desktopThe desktop whose background to set (-1 for the default).
typeThe type of background.
valueThe background.

Definition at line 120 of file background.c.

References _, Allocate, ARRAY_LENGTH, BACKGROUND_COMMAND, BACKGROUND_GRADIENT, BACKGROUND_SCALE, BACKGROUND_SOLID, BACKGROUND_STRETCH, BACKGROUND_TILE, backgrounds, CopyString(), BackgroundNode::desktop, FindValue(), JUNLIKELY, BackgroundNode::next, BackgroundNode::pixmap, Release, BackgroundNode::type, BackgroundNode::value, and Warning().

Referenced by ParseDesktopBackground().

void ShutdownBackgrounds ( void  )

Shutdown background support.

Definition at line 96 of file background.c.

References display, JXFreePixmap, BackgroundNode::next, and BackgroundNode::pixmap.

Referenced by Shutdown().

void StartupBackgrounds ( void  )

joewing.net / Projects / JWM