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| 
      if Tk::Winico::WinicoID_TBL.key?(id)
        Tk::Winico::WinicoID_TBL[id]
      else
        Tk::Winico.new(nil, nil, id)
      end
    } ], 
  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, #initialize, inspect, scan_args, subst_arg

Constructor Details

This class inherits a constructor from TkUtil::CallbackSubst

Class Method Details

.ret_val(val) ⇒ Object



140
141
142
# File 'lib/tkextlib/winico/winico.rb', line 140

def self.ret_val(val)
  val
end