Sha256: 46c76988e6e3145edadfc7060642378fd98f0dfe89b8638a79c6970437d66a39

Contents?: true

Size: 511 Bytes

Versions: 8

Compression:

Stored size: 511 Bytes

Contents

# -*- coding: utf-8 -*-


require 'xot/const_symbol_accessor'
require 'reflex/ext'


module Reflex


  class FocusEvent < Event

    alias get_type type

    const_symbol_reader :type, {
      none:  TYPE_NONE,
      focus: TYPE_FOCUS,
      blur:  TYPE_BLUR
    }

    def focus? ()
      get_type == TYPE_FOCUS
    end

    def blur? ()
      get_type == TYPE_BLUR
    end

    def inspect ()
      "#<Reflex::FocusEvent type:#{type} current:#{current} last:#{last}>"
    end

  end# FocusEvent


end# Reflex

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reflexion-0.1.21 lib/reflex/focus_event.rb
reflexion-0.1.20 lib/reflex/focus_event.rb
reflexion-0.1.19 lib/reflex/focus_event.rb
reflexion-0.1.17 lib/reflex/focus_event.rb
reflexion-0.1.16 lib/reflex/focus_event.rb
reflexion-0.1.15 lib/reflex/focus_event.rb
reflexion-0.1.14 lib/reflex/focus_event.rb
reflexion-0.1.13 lib/reflex/focus_event.rb