Subtlext » History » Version 21
Version 20 (Anonymous, 10/19/2008 01:00 AM) → Version 21/95 (Anonymous, 10/19/2008 03:01 PM)
h1. Subtlext\015\012\015\012{{>toc}}\015\012\015\012h2. Subtle\015\012\015\012h3. new(display, debug)\015\012\015\012Create new(display[, debug])\015\012\015\012Create a new [[Subtle|subtle]] subtle object and open connection to X server\015\012<pre><code server.\015\012<pre><code class="ruby">\015\012subtle = Subtle.new(":0")\015\012=> #<Subtle:xxx>\015\012\015\012subtle Subtle.new(":0")\015\012subtle = Subtle.new(":0", true)\015\012=> #<Subtle:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. version()\015\012\015\012Get the version of [[Subtlext|subtlext]]\015\012<pre><code class="ruby">\015\012puts subtle.version \015\012=> 0.8\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. display()\015\012\015\012Get the display name\015\012<pre><code class="ruby">\015\012subtle.display\015\012=> :0\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. views()\015\012\015\012Get array of defined views\015\012<pre><code class="ruby">\015\012subtle.views\015\012=> [#<View:xxx>, #<View:xxx>]\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. tags()\015\012\015\012Get array of defined tags\015\012<pre><code class="ruby">\015\012subtle.tags\015\012=> [#<Tag:xxx>, #<Tag:xxx>]\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. clients()\015\012\015\012Get array of clients\015\012<pre><code class="ruby">\015\012subtle.clients\015\012=> [#<Client:xxx>, #<Client:xxx>]\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. find_view(name)\015\012\015\012Find view by given name\015\012<pre><code class="ruby">\015\012subtle.find_view("subtle")\015\012=> #<View:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. find_tag(name)\015\012\015\012Find tag by given name\015\012<pre><code class="ruby">\015\012subtle.find_tag("subtle")\015\012=> #<Tag:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. find_client(name)\015\012\015\012Find tag by given name\015\012<pre><code class="ruby">\015\012subtle.find_client("subtle")\015\012=> #<Client:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. add_tag(name)\015\012\015\012Add tag with given name or tag object\015\012<pre><code class="ruby">\015\012subtle.add_tag("subtle")\015\012=> #<Tag:xxx>\015\012\015\012subtle.add_tag(Tag.new("subtle"))\015\012=> name\015\012<pre><code class="ruby">\015\012subtle.add_tag("subtle")\015\012subtle.add_tag(Tag.new("subtle"))\015\012=> #<Tag:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. del_tag(name)\015\012\015\012Delete tag by given name or tag object\015\012<pre><code class="ruby">\015\012subtle.del_tag("subtle")\015\012=> nil\015\012\015\012subtle.del_tag(subtle.find_tag("subtle"))\015\012=> name\015\012<pre><code class="ruby">\015\012subtle.del_tag("subtle")\015\012subtle.del_tag(subtle.find_tag("subtle"))\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. add_view(name)\015\012\015\012Add view with given name or view object\015\012<pre><code class="ruby">\015\012subtle.add_view("subtle")\015\012=> #<View:xxx>\015\012\015\012subtle.add_view(View.new("subtle"))\015\012=> name\015\012<pre><code class="ruby">\015\012subtle.add_view("subtle")\015\012subtle.add_view(View.new("subtle"))\015\012=> #<View:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. del_view(name)\015\012\015\012Delete view by given name or name\015\012<pre><code class="ruby">\015\012subtle.del_view("subtle")\015\012subtle.del_view(subtle.find_view("subtle"))\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. current_view()\015\012\015\012Delete view object\015\012<pre><code class="ruby">\015\012subtle.del_view("subtle")\015\012=> nil\015\012\015\012subtle.del_view(subtle.find_view("subtle"))\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. current_view()\015\012\015\012Get current active view\015\012<pre><code by given name\015\012<pre><code class="ruby">\015\012subtle.current_view\015\012=> #<View:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. current_client()\015\012\015\012Get current active client\015\012<pre><code class="ruby">\015\012subtle.current_client\015\012=> #<Client:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. running?()\015\012\015\012Check if [[Subtle|subtle]] is running\015\012<pre><code class="ruby">\015\012subtle.running?\015\012=> true\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h2. current_client()\015\012\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"top":#1\015\012\015\012h3. running?()\015\012\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"top":#1\015\012\015\012h2. View\015\012\015\012h3. new(name)\015\012\015\012Create a new view object\015\012<pre><code class="ruby">\015\012view namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012view = View.new("subtle")\015\012=> #<View:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. add_tag(name)\015\012\015\012Add tag with View.new("foo")\015\012\015\012"top":#1\015\012\015\012h3. add_tag(name)\015\012\015\012Create a namespace lookup object using the given name or tag object\015\012<pre><code class="ruby">\015\012view.add_tag("subtle")\015\012=> #<Tag:xxx>\015\012\015\012view.add_tag(Tag.new("subtle"))\015\012=> #<Tag:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. del_tag(name)\015\012\015\012Delete tag by task manager and the list of scopes.\015\012bq. *Example:*\015\012view.add_tag("foo")\015\012\015\012"top":#1\015\012\015\012h3. del_tag(name)\015\012\015\012Create a namespace lookup object using the given name or tag object\015\012<pre><code class="ruby">\015\012view.del_tag("subtle")\015\012=> nil\015\012\015\012view.del_tag(subtle.find_tag("subtle"))\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. tags\015\012\015\012Get array task manager and the list of defined tags\015\012<pre><code class="ruby">\015\012view.tags\015\012=> [#<Tag:xxx>, #<Tag:xxx>]\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. current?\015\012\015\012Check if this view is scopes.\015\012bq. *Example:*\015\012view.del_tag("foo")\015\012\015\012"top":#1\015\012\015\012h3. tags\015\012\015\012Create a namespace lookup object using the current active view\015\012<pre><code class="ruby">\015\012view.current?\015\012=> true\015\012\015\012view.current?\015\012=> false\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Convert given task manager and the list of scopes.\015\012bq. *Example:*\015\012view.tags\015\012\015\012"top":#1\015\012\015\012h3. current?\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012view.current?\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012puts view object to string\015\012<pre><code class="ruby">\015\012puts view\015\012=> "subtle"\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h2. => _foo_\015\012\015\012"top":#1\015\012\015\012h2. Tag\015\012\015\012h3. new(name)\015\012\015\012Create new tag object\015\012<pre><code class="ruby">\015\012tag a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012tag = Tag.new("subtle")\015\012=> #<Tag:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Convert tag Tag.new("foo")\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Create a namespace lookup object to string\015\012<pre><code class="ruby">\015\012puts tag\015\012=> "subtle"\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h2. Client\015\012\015\012h3. add_tag(name)\015\012\015\012Add tag with using the given name or task manager and the list of scopes.\015\012bq. *Example:*\015\012puts tag object\015\012<pre><code class="ruby">\015\012client.add_tag("subtle")\015\012=> #<Tag:xxx>\015\012\015\012client.add_tag(Tag.new("subtle"))\015\012=> #<Tag:xxx>\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. del_tag(name)\015\012\015\012Delete tag by => _foo_\015\012\015\012"top":#1\015\012\015\012h2. Client\015\012\015\012h3. add_tag(name)\015\012\015\012Create a namespace lookup object using the given name or tag object\015\012<pre><code class="ruby">\015\012client.del_tag("subtle")\015\012=> nil\015\012\015\012client.del_tag(subtle.find_tag("subtle"))\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. focus\015\012\015\012Set focus to client\015\012<pre><code class="ruby">\015\012client.focus\015\012=> nil\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. focus?\015\012\015\012Check if client is focussed\015\012<pre><code class="ruby">\015\012client.focus?\015\012=> true\015\012\015\012client.focus?\015\012=> false\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. tags\015\012\015\012Get array task manager and the list of defined tags\015\012<pre><code class="ruby">\015\012client.tags\015\012=> [#<Tag:xxx>, #<Tag:xxx>]\015\012</code></pre>\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Convert scopes.\015\012bq. *Example:*\015\012client.add_tag("foo")\015\012\015\012"top":#1\015\012\015\012h3. del_tag(name)\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012client.del_tag("foo")\015\012\015\012"top":#1\015\012\015\012h3. focus\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012client.focus\015\012\015\012"top":#1\015\012\015\012h3. focus?\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012if(client.focus?) then..\015\012\015\012"top":#1\015\012\015\012h3. tags\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012client.tags\015\012\015\012"top":#1\015\012\015\012h3. to_s\015\012\015\012Create a namespace lookup object using the given task manager and the list of scopes.\015\012bq. *Example:*\015\012puts client object to string\015\012<pre><code class="ruby">\015\012puts client\015\012=> "subtle"\015\012</code></pre>\015\012\015\012"top":#1 => foo\015\012\015\012"top":#1