Project

General

Profile

unexist.dev

Assorted tidbits and projects

Subtlext » History » Version 2

Anonymous, 10/07/2008 10:33 PM

1 2
h1. Subtlext\015\012\015\012h2. API\015\012\015\012h3. Subtle\015\012\015\012*new*(_display_)\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012*Example:*\015\012bq. subtle = Subtle.new(":0")\015\012\015\012*version*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012*Example:*\015\012bq. puts subtle.version => _0.8_\015\012\015\012*display*()\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012*Example:*\015\012bq. subtle.display => _:0_\015\012\015\012*views*()\015\012\015\012\011rb_define_method(klass, "display", SubtleDisplay, 0);\015\012\011rb_define_method(klass, "views", SubtleViews, 0);\015\012\011rb_define_method(klass, "tags", SubtleTags, 0);\015\012\011rb_define_method(klass, "clients", SubtleClients, 0);\015\012  rb_define_method(klass, "find_view", SubtleViewFind, 1);\015\012  rb_define_method(klass, "find_tag", SubtleTagFind, 1);\015\012  rb_define_method(klass, "find_client", SubtleClientFind, 1);\015\012  rb_define_method(klass, "add_tag", SubtleTagAdd, 1);\015\012  rb_define_method(klass, "del_tag", SubtleTagDel, 1);\015\012  rb_define_method(klass, "add_view", SubtleViewAdd, 1);\015\012  rb_define_method(klass, "del_view", SubtleViewDel, 1);\015\012  rb_define_method(klass, "current_view", SubtleViewCurrent, 0);\015\012\011rb_define_method(klass, "running?", SubtleRunning, 0);\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);