Project

General

Profile

unexist.dev

Assorted tidbits and projects

Hooks » History » Version 2

« Previous - Version 2/47 (diff) - Next » - Current version
murth murth, 08/07/2009 06:25 AM
Fixed grammar


Hooks\015\012\015\012Currently there exist only three types of hooks, although more are planned. Every feature of subtlext be used inside these hooks.\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
"HookCreate" => { |c| puts c.name }
\015\012\015\012h2. Jump\015\012\015\012Triggers on view jumps and has the active view as parameter:\015\012
"HookJump" => { |v| puts v.name }
\015\012\015\012h3. Focus\015\012\015\012Triggers when a client gets focus and has the focussed client as parameter:\015\012
"HookFocus" => { |c| puts c.name }
\015\012