CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/animate.c File Reference
#include "ctwm.h"
#include <sys/time.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <X11/extensions/shape.h>
#include "ctwm_atoms.h"
#include "events.h"
#include "icons.h"
#include "image.h"
#include "screen.h"
#include "util.h"
#include "vscreen.h"
#include "win_utils.h"
#include "animate.h"
Include dependency graph for animate.c:

Go to the source code of this file.

Macros

#define MAXANIMATIONSPEED   20

Functions

static void Animate (void)
static void AnimateButton (TBWindow *tbw)
static void AnimateHighlight (TwmWindow *t)
static void AnimateIcons (ScreenInfo *scr, Icon *icon)
static bool AnimateRoot (void)
void TryToAnimate (void)
void StartAnimation (void)
void StopAnimation (void)
void SetAnimationSpeed (int speed)
void ModifyAnimationSpeed (int incr)

Variables

int Animating = 0
int AnimationSpeed = 0
bool AnimationActive = false
bool MaybeAnimate = true
struct timeval AnimateTimeout

Macro Definition Documentation

◆ MAXANIMATIONSPEED

#define MAXANIMATIONSPEED   20

Definition at line 27 of file animate.c.

Referenced by ModifyAnimationSpeed(), SetAnimationSpeed(), and StartAnimation().

Function Documentation

◆ Animate()

◆ AnimateButton()

void AnimateButton ( TBWindow * tbw)
static

Definition at line 241 of file animate.c.

References AnimateButton(), dpy, TBWindow::image, Image::next, Image::pixmap, and TBWindow::window.

Referenced by Animate(), and AnimateButton().

◆ AnimateHighlight()

void AnimateHighlight ( TwmWindow * t)
static

◆ AnimateIcons()

◆ AnimateRoot()

◆ ModifyAnimationSpeed()

◆ SetAnimationSpeed()

void SetAnimationSpeed ( int speed)

Definition at line 124 of file animate.c.

References AnimationSpeed, MAXANIMATIONSPEED, and SetAnimationSpeed().

Referenced by do_number_keyword(), and SetAnimationSpeed().

◆ StartAnimation()

void StartAnimation ( void )

◆ StopAnimation()

void StopAnimation ( void )

◆ TryToAnimate()

void TryToAnimate ( void )

Definition at line 55 of file animate.c.

References Animate(), Animating, AnimationSpeed, tracefile, and TryToAnimate().

Referenced by CtwmNextEvent(), and TryToAnimate().

Variable Documentation

◆ AnimateTimeout

struct timeval AnimateTimeout

Definition at line 34 of file animate.c.

Referenced by CtwmNextEvent(), ModifyAnimationSpeed(), and StartAnimation().

◆ Animating

int Animating = 0

Definition at line 30 of file animate.c.

Referenced by Animate(), HandleClientMessage(), and TryToAnimate().

◆ AnimationActive

bool AnimationActive = false

◆ AnimationSpeed

int AnimationSpeed = 0

◆ MaybeAnimate