Document the newly introduced window events.
authorRui Guo <firemeteor.guo@gmail.com>
Wed, 24 Jun 2009 13:13:13 +0000 (24 21:13 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Wed, 24 Jun 2009 13:13:13 +0000 (24 21:13 +0800)
src/drafts/scripting

index 468a6c5..871e1b9 100644 (file)
@@ -213,10 +213,28 @@ Events
 ----------
 
 on_activity
-on_silence
-before_winchange
-on_winchange
-before_resize
+on_silence (window)
+  triggered when the silence monitor got fired.
+
+on_focus (display, window)
+ Triggered when the window gets input focus on a display.
+ Differs from the global event forechange, it's associated with a specific
+ window.
+
+on_leave (display, window)
+ Triggered after the window lost input focus on a display.
+ Differs from the global event forechange, it's associated with a specific
+ window.
+
+on_show (display, window)
+ Triggered after the first view of this window show up on a display.
+ Differs from on_focus when there are many regions on a display.
+
+on_hide (display, window)
+ Triggered after the last view of this window disappeared from a display.
+ Differs from on_leave when there are many regions on a display.
+
+can_resize
 on_resize
 
 C. User