Hooks » History » Version 1
linopolus , 07/29/2009 08:23 AM
copied from news no 7
1 | 1 | linopolus | h1. Hooks\015\012\015\012Currently there exist only three type of hooks, more are planned. Inside of this hooks can every feature of subtlext be used.\015\012The following hooks exist so far:\015\012\015\012h2. Create\015\012\015\012Triggers on new clients and has the new client as parameter:\015\012<pre>"HookCreate" => { |c| puts c.name }</pre>\015\012\015\012h2. Jump\015\012\015\012Triggers on view jumps and has the active view as parameter:\015\012<pre>"HookJump" => { |v| puts v.name }</pre>\015\012\015\012h3. Focus\015\012\015\012Triggers when a client gets focus and has the focussed client as parameter:\015\012<pre>"HookFocus" => { |c| puts c.name }</pre>\015\012 |
---|