|
CTWM
|
#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"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 |
| #define MAXANIMATIONSPEED 20 |
Definition at line 27 of file animate.c.
Referenced by ModifyAnimationSpeed(), SetAnimationSpeed(), and StartAnimation().
|
static |
Definition at line 168 of file animate.c.
References AnimateButton(), AnimateHighlight(), AnimateIcons(), AnimateRoot(), Animating, AnimationSpeed, Icon::bm_w, ScreenInfo::currentvs, dpy, EventTime, ScreenInfo::FirstWindow, ScreenInfo::Focus, TwmWindow::HiliteImage, TwmWindow::icon, TwmWindow::icon_on, Icon::image, TBWindow::image, TwmWindow::mapped, MaybeAnimate, Image::next, TwmWindow::next, ScreenInfo::_TBInfo::nleft, ScreenInfo::_TBInfo::nright, NumScreens, ScreenList, send_clientmessage(), ScreenInfo::TBInfo, TwmWindow::title_height, TwmWindow::titlebuttons, TwmWindow::titlehighlight, visible(), WorkSpaceWindow::w, and VirtualScreen::wsw.
Referenced by TryToAnimate().
|
static |
Definition at line 241 of file animate.c.
References dpy, TBWindow::image, Image::next, Image::pixmap, and TBWindow::window.
Referenced by Animate().
|
static |
Definition at line 255 of file animate.c.
References dpy, TwmWindow::hilite_wl, TwmWindow::hilite_wr, TwmWindow::HiliteImage, Image::next, and Image::pixmap.
Referenced by Animate().
|
static |
Definition at line 276 of file animate.c.
References Icon::bm_w, dpy, GetIconOffset(), Icon::has_title, Icon::height, MyFont::height, ScreenInfo::IconFont, Icon::image, Image::mask, Image::next, Image::pixmap, ScreenInfo::ShapeWindow, Icon::w, Icon::w_width, and x.
Referenced by Animate().
|
static |
Definition at line 315 of file animate.c.
References WorkSpaceWindow::currentwspc, ScreenInfo::DontPaintRootWindow, dpy, WorkSpace::image, WorkSpaceWindow::mswl, Image::next, VirtualScreen::next, WorkSpace::next, WorkSpace::number, NumScreens, Image::pixmap, ScreenInfo::Root, ScreenList, WorkSpaceWindow::state, ScreenInfo::vScreenList, MapSubwindow::w, VirtualScreen::window, WMS_buttons, WorkSpaceMgr::workSpaceList, ScreenInfo::workSpaceManagerActive, ScreenInfo::workSpaceMgr, and VirtualScreen::wsw.
Referenced by Animate().
| void ModifyAnimationSpeed | ( | int | incr | ) |
Definition at line 134 of file animate.c.
References AnimateTimeout, AnimationActive, AnimationSpeed, MAXANIMATIONSPEED, and StopAnimation().
Referenced by f_slowdownanimation_impl(), and f_speedupanimation_impl().
| void SetAnimationSpeed | ( | int | speed | ) |
Definition at line 124 of file animate.c.
References AnimationSpeed, and MAXANIMATIONSPEED.
Referenced by do_number_keyword().
| void StartAnimation | ( | void | ) |
Definition at line 89 of file animate.c.
References AnimateTimeout, AnimationActive, AnimationSpeed, and MAXANIMATIONSPEED.
Referenced by ctwm_main(), and f_startanimation_impl().
| void StopAnimation | ( | void | ) |
Definition at line 117 of file animate.c.
References AnimationActive.
Referenced by DoRestart(), f_stopanimation_impl(), LoadXwdImage(), and ModifyAnimationSpeed().
| void TryToAnimate | ( | void | ) |
Definition at line 55 of file animate.c.
References Animate(), Animating, AnimationSpeed, and tracefile.
Referenced by CtwmNextEvent().
| struct timeval AnimateTimeout |
Definition at line 34 of file animate.c.
Referenced by CtwmNextEvent(), ModifyAnimationSpeed(), and StartAnimation().
| int Animating = 0 |
Definition at line 30 of file animate.c.
Referenced by Animate(), HandleClientMessage(), and TryToAnimate().
| bool AnimationActive = false |
Definition at line 32 of file animate.c.
Referenced by CtwmNextEvent(), LoadXwdImage(), ModifyAnimationSpeed(), StartAnimation(), and StopAnimation().
| int AnimationSpeed = 0 |
Definition at line 31 of file animate.c.
Referenced by Animate(), CtwmNextEvent(), ModifyAnimationSpeed(), SetAnimationSpeed(), StartAnimation(), and TryToAnimate().
| bool MaybeAnimate = true |
Definition at line 33 of file animate.c.
Referenced by Animate(), CreateIconWindow(), CtwmNextEvent(), GotoWorkSpace(), HandleMapRequest(), IconUp(), SetFocusVisualAttributes(), and WMgrSetMapState().