Project

General

Profile

unexist.dev

subtle

Assorted tidbits and projects

Hooks » History » Version 1

Version 1/47 - Next » - Current version
linopolus  , 07/29/2009 08:23 AM
copied from news no 7


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
"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