Sha256: b95086d35450d3c09ed3b11e61215195ffb7558b66314433eb3730b9210dbdb8

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

module Vedeu

  module Bindings

    # System events relating to the visibility of cursors or interfaces.
    #
    # @api public
    # {include:file:docs/events/visibility.md}
    # :nocov:
    module Visibility

      Vedeu.bind(:_hide_cursor_) { |name| Vedeu::Visibility.hide_cursor(name) }
      Vedeu.bind(:_cursor_hide_) { |name| Vedeu.trigger(:_hide_cursor_, name) }
      Vedeu.bind(:_show_cursor_) { |name| Vedeu::Visibility.show_cursor(name) }
      Vedeu.bind(:_cursor_show_) { |name| Vedeu.trigger(:_show_cursor_, name) }

      Vedeu.bind(:_hide_group_) { |name| Vedeu.trigger(:_clear_group_, name) }
      Vedeu.bind(:_show_group_) do |name|
        Vedeu.trigger(:_clear_)
        Vedeu.trigger(:_refresh_group_, name)
      end

      Vedeu.bind(:_hide_interface_) { |name| Vedeu.buffers.by_name(name).hide }
      Vedeu.bind(:_show_interface_) { |name| Vedeu.buffers.by_name(name).show }
      Vedeu.bind(:_toggle_interface_) do |name|
        Vedeu.buffers.by_name(name).toggle
      end

    end # Visibility
    # :nocov:

  end # Bindings

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.4.52 lib/vedeu/bindings/visibility.rb
vedeu-0.4.51 lib/vedeu/bindings/visibility.rb
vedeu-0.4.50 lib/vedeu/bindings/visibility.rb
vedeu-0.4.49 lib/vedeu/bindings/visibility.rb
vedeu-0.4.48 lib/vedeu/bindings/visibility.rb
vedeu-0.4.47 lib/vedeu/bindings/visibility.rb