Class: Tk::Winico::Winico_callback::ValidateArgs

Inherits:
TkUtil::CallbackSubst show all
Defined in:
lib/tkextlib/winico/winico.rb

Constant Summary collapse

KEY_TBL =
[
  [ ?m, ?s, :message ],
  [ ?i, ?x, :icon ],
  [ ?x, ?n, :x ],
  [ ?y, ?n, :y ],
  [ ?X, ?n, :last_x ],
  [ ?Y, ?n, :last_y ],
  [ ?t, ?n, :tickcount ],
  [ ?w, ?n, :icon_idnum ],
  [ ?l, ?n, :msg_idnum ],
  nil
]
PROC_TBL =
[
  [ ?n, TkComm.method(:number) ],
  [ ?s, TkComm.method(:string) ],
  [ ?x, proc{|id|
      Tk::Winico::WinicoID_TBL.mutex.synchronize{
        if Tk::Winico::WinicoID_TBL.key?(id)
          obj = Tk::Winico::WinicoID_TBL[id]
        else
          # Tk::Winico.new(nil, nil, id)
          obj = Tk::Winico.allocate
          obj.instance_eval{ @path = @id = id }
          Tk::Winico::WinicoID_TBL[id] = obj
        end
        obj
      }
    } ],
  nil
]

Class Method Summary collapse

Methods inherited from TkUtil::CallbackSubst

_define_attribute_aliases, _get_all_subst_keys, _get_extra_args_tbl, _get_subst_key, _setup_subst_table, _sym2subst, #initialize, inspect, scan_args, subst_arg

Constructor Details

This class inherits a constructor from TkUtil::CallbackSubst

Class Method Details

.ret_val(val) ⇒ Object



174
175
176
# File 'lib/tkextlib/winico/winico.rb', line 174

def self.ret_val(val)
  val
end