Project

General

Profile

unexist.dev

Assorted tidbits and projects

Subtlext » History » Version 9

Version 8 (Anonymous, 10/07/2008 10:48 PM) → Version 9/95 (Anonymous, 10/07/2008 10:48 PM)

h1. Subtlext\015\012\015\012{{>toc}}\015\012\015\012h2. API\015\012\015\012h3. Subtle\015\012\015\012h4. new(display)\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle = Subtle.new(":0")\015\012\015\012h4. version()\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012puts subtle.version => _0.8_\015\012\015\012h4. display()\015\012Create _0.8_\015\012\015\012*display*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.display => _:0_\015\012\015\012*views*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.views\015\012\015\012*tags*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.tags\015\012\015\012*clients*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.clients\015\012\015\012*find_view*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.find_view("foo")\015\012\015\012*find_tag*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.find_tag("foo")\015\012\015\012*find_client*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.find_client("foo")\015\012\015\012*add_tag*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.add_tag("foo")\015\012\015\012*del_tag*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.del_tag("foo")\015\012\015\012*add_view*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.add_view("foo")\015\012\015\012*del_view*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.del_view("foo")\015\012\015\012*current_view*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.current_view\015\012\015\012*current_client*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.current_client\015\012\015\012*running?*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012subtle.running?\015\012\015\012\015\012 /* Class: view */\015\012 klass = rb_define_class("View", rb_cObject);\015\012 rb_define_attr(klass, "id", 1, 1);\015\012 rb_define_attr(klass, "win", 1, 1);\015\012 rb_define_attr(klass, "name", 1, 1);\015\012 rb_define_method(klass, "initialize", ViewInit, 1);\015\012 rb_define_method(klass, "add_tag", ViewTagAdd, 1);\015\012 rb_define_method(klass, "del_tag", ViewTagDel, 1);\015\012 rb_define_method(klass, "tags", ViewTags, 0);\015\012 rb_define_method(klass, "jump", ViewJump, 0);\015\012 rb_define_method(klass, "current?", ViewCurrent, 0);\015\012 rb_define_method(klass, "to_s", ViewToString, 0);\015\012\015\012 /* Class: tag */\015\012 klass = rb_define_class("Tag", rb_cObject);\015\012 rb_define_attr(klass, "id", 1, 1);\015\012 rb_define_attr(klass, "name", 1, 1);\015\012 rb_define_method(klass, "initialize", TagInit, 1);\015\012 rb_define_method(klass, "to_s", TagToString, 0);\015\012\015\012 /* Class: client */\015\012 klass = rb_define_class("Client", rb_cObject);\015\012 rb_define_attr(klass, "id", 1, 1);\015\012 rb_define_attr(klass, "win", 1, 1);\015\012 rb_define_attr(klass, "name", 1, 1);\015\012 rb_define_method(klass, "initialize", ClientInit, 1);\015\012 rb_define_method(klass, "add_tag", ClientTagAdd, 1);\015\012 rb_define_method(klass, "del_tag", ClientTagDel, 1);\015\012 rb_define_method(klass, "focus", ClientFocus, 0);\015\012 rb_define_method(klass, "tags", ClientTags, 0);\015\012 rb_define_method(klass, "focus?", ClientFocus, 0);\015\012 rb_define_method(klass, "to_s", ClientToString, 0);