文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>fvwm文档资料

fvwm文档资料

时间:2006-05-31  来源:sheensky

名称

FvwmAnimate -Fvwm 动画制作模组
概要

Module FvwmAnimate [ModuleAlias]
FvwmAnimate 只能被 fvwm 调用,命令行不能调用FvwmAnimate模组.在.fvwm2rc文件中,FvwmAnimate特效

用以下方式产生

Module FvwmAnimate

fvwm pop-up menu中,FvwmAnimate特效用以下方式产生

DestroyMenu Module-Popup
AddToMenu Module-Popup "Modules" Title
+ "Fvwm Animate Icons" Module FvwmAnimate ModuleAlias

描述
FvwmAnimate模组或命令产生最小化窗口或最大化窗口的动画效果,有6不同的动画效果可用

调用

FvwmAnimate 必须被 fvwm 窗囗管理器调用.当调用中含有OptionalName 参数时, ModuleAlias 用来查

找配置命令,配置文件, 并且自动产生菜单和窗体来代替"FvwmAnimate" 在启动的过程中 FvwmAnimate根

据配置定义菜单和窗体,并且控制FvwmAnimate.默认的菜单名是 "MenuFvwmAnimate" ,窗体名

是"FormFvwmAnimate"。如果name参数被指定,菜单将会是 "Menu<ModuleAlias>" ,而窗体将会是

"form<ModuleAlias>" 。
假定你已经有了一个被称为 "Module-Popup" 的 builtin 菜单,你可以像这样来配置它

AddToFunc "StartFunction" "I" Module FvwmAnimate
AddToMenu "Module-Popup" "Control Animation" Popup MenuFvwmAnimate

设置选择项

自从独立的菜单动画模组允许被FvwmAnimate完全控制,你不必真的了解每一个配置指令的作用.这一段会

描述他们.
FvwmAnimate从fvwm配置数据库得到配置信息 (see fvwm(1),section MODULE COMMANDS).除此之外,

FvwmAnimate读文件 $HOME/FvwmAnimate,并且当它运行时接受来自fvwm的模组和指令。

如果 ModuleAlias 用来启动 FvwmAnimate, 则名称选项被用于所有的指令,消息,菜单和窗体

FvwmAnimate根据配置文件名来生成菜单和窗体.不像其他的 fvwm 模组,很少有理由使用名称选项。

*FvwmAnimate:Color color

定义FvwmAnimate所使用的颜色,即单一的背景颜色.依赖你的显示模式,这个因素将会改变的显示效果.尤

其在 8 位显示装置上,如果后台作业是一种单一的颜色它有效。你必须实验看它是如何工作的。

内定的颜色不真的单一色,其可以被当做 "Black^White"来定义, 或只是 "None".当调色板被用于 fvwm移

动或调整窗体大小时情况是一样的。

其他的颜色可以用标准X颜色记号表示.如,颜色名称 "LightBlue", 或 RGB 数值 "#FFFFFF".

*FvwmAnimate:Pixmap pixmap
使用 pixmap 做背景。如果背景颜色比较单一则这种做法是可行的

*FvwmAnimateelay msecs
定义FvwmAnimate在窗体动画之间休眠多少毫秒。

*FvwmAnimate:Iterations iterations
定义FvwmAnimate的动画步骤多少。

*FvwmAnimate:Twist twist
定义FvwmAnimate 图标化窗口时刷新多少次。

*FvwmAnimate:Width width
定义FvwmAnimate的宽度范围.内定的宽度值为0(zero),其比1要宽.

*FvwmAnimate:Effect mode
定义FvwmAnimate使用的动画效果.内定的效果是:Frame, Lines, Flip, Turn, Zoom3D, Twist Random,

and None.在FvwmAnimate被自动地启动的情况下,配置文件中的设置通常是None,但是个别的使用者不希望

它运行。

*FvwmAnimate:Stop

使FvwmAnimate停止。

*FvwmAnimate:Save
使FvwmAnimate把一个被命名为".FvwmAnimate"的配置文件保存在使用者的home目录.在启动过程中

FvwmAnimate会自动读取这一文件.

指令

FvwmAnimate 可以通过 "SendToModule"指令生产动画,指令的格式是:

SendToModule FvwmAnimate animate sx sy sw sh dx dy dw dh

第二个字段一定要和FvwmAnimate的名称相配。在animate后的8个栏位一定是数字。前4个为开始( 或起始

) 动画的位置。后4个是动画的目的地。4个数字中有2对,表示长方形。前2个数字是表示长方形正确的 x

y 位置。后2个数目是长方形的宽度和高度。一或多个的空间能用指令划分栏位。

模组可以用"SendToModule" 命令还原窗口,或你想出你自己的方法发挥这一个指令的各种乐趣。

附加指令是ause, play, push, pop and reset.这些指令是被空格分开的。

pause使模组暂时不生产任何的动画。play使模组再一次生产动画。push stores the current playing

state for a future and pop restores it.reset删除所有的储存状态并设置播放。

假如,我们不想等候40 xterms的动画:

SendToModule FvwmAnimate pause
All (XTerm) Iconify on

如果我们不损害播放状态,则:

SendToModule FvwmAnimate push pause
All (XTerm) Iconify on
SendToModule FvwmAnimate pop

起始

FvwmAnimate 动画以来自 Afterstep 1.5 pre6 的模组为基础。移植到fvwm中Dan

Espen<[email protected]> 做了许多改变,在下面是最初的作者和认可。

作者
Alfredo Kengi Kojima <[email protected]>

认可

这些人对 FvwmAnimate有帮助:
Kaj Groner <[email protected]>
Twisty iconification, configuration file parsing, man page.
Frank Scheelen <[email protected]>

NAME
FvwmAnimate - the Fvwm Animate module
SYNOPSIS
Module FvwmAnimate [ModuleAlias]
FvwmAnimate can only be invoked by fvwm. Command line invocation of the FvwmAnimate module

will not work.

From within the .fvwm2rc file, FvwmAnimate is spawned as follows:

Module FvwmAnimate

or from within an fvwm pop-up menu:
DestroyMenu Module-Popup
AddToMenu Module-Popup "Modules" Title
+ "Fvwm Animate Icons" Module FvwmAnimate ModuleAlias

DESCRIPTION
The FvwmAnimate module animates iconification and de-iconification or on command. There are

currently 6 different animation effects.

INVOCATION
FvwmAnimate must be invoked by the fvwm window manager. When invoked with the OptionalName

argument, the ModuleAlias is used to find configuration commands, configuration files, and

name the internally generated menus and forms instead of "FvwmAnimate". During startup,

FvwmAnimate defines menus and forms for configuring and controlling FvwmAnimate. The default

menu name is "MenuFvwmAnimate" and the form name is "FormFvwmAnimate". If the optional name

is used, the menu would be "Menu<ModuleAlias>" and the form would be "Form<ModuleAlias>".
Assuming you already had a builtin menu called "Module-Popup", you could use FvwmAnimate by

configuring it like this:

AddToFunc "StartFunction" "I" Module FvwmAnimate
AddToMenu "Module-Popup" "Control Animation" Popup MenuFvwmAnimate

CONFIGURATION OPTIONS
Since the pop up menu "MenuFvwmAnimate" allows complete control of the FvwmAnimate module,

you don't really have to know what any of the configuration commands are. This section

describes them anyway.
FvwmAnimate gets configuration info from fvwm's module configuration database (see fvwm(1),

section MODULE COMMANDS). In addition, FvwmAnimate reads the file $HOME/.FvwmAnimate, and

accepts commands from fvwm and its modules as it runs.

If ModuleAlias is used to start FvwmAnimate, the optional name is used in all commands,

messages, menus and forms generated by FvwmAnimate and in the configuration file name.

Unlike other fvwm modules, there is little reason to use the optional name.

*FvwmAnimate: Color color
Tells FvwmAnimate what color to draw with. The color is "XOR'ed" (exclusive ORed) onto the

background. Depending on the display type you are using, the effect this causes will vary.

Especially on 8-bit displays, it helps if the background is a solid color. You have to

experiment with this to see how it works.
The default color is not really a color and can be entered as "Black^White", or more simply

"None". This is the same as the default XOR mask used by fvwm for move and resize frames.

Other colors can be specified using standard X color notation. Ie. color names like

"LightBlue", or RGB values like "#FFFFFF".

*FvwmAnimate: Pixmap pixmap
Tells FvwmAnimate to use pixmap to draw with. This can be useful if *FvwmAnimate: Color

gives poor results.

*FvwmAnimate: Delay msecs
Tells FvwmAnimate how many milliseconds to sleep between frames of animation.

*FvwmAnimate: Iterations iterations
Tells FvwmAnimate how many steps to break the animation into.

*FvwmAnimate: Twist twist
Tells FvwmAnimate how many revolutions to twist the iconification frame.

*FvwmAnimate: Width width
Tells FvwmAnimate how wide a line to draw with. The default wid

相关阅读 更多 +
排行榜 更多 +
狂热战车

狂热战车

飞行射击 下载
士兵和小鸡

士兵和小鸡

飞行射击 下载
西部枪射击目标

西部枪射击目标

飞行射击 下载