Methods
- A
- C
- D
- F
- G
- I
- M
- O
- P
- R
- S
- T
- W
-
- withdraw,
- withdraw,
- wm_aspect,
- wm_attributes,
- wm_client,
- wm_colormapwindows,
- wm_command,
- wm_deiconify,
- wm_focusmodel,
- wm_forget,
- wm_frame,
- wm_geometry,
- wm_grid,
- wm_group,
- wm_iconbitmap,
- wm_iconify,
- wm_iconmask,
- wm_iconname,
- wm_iconphoto,
- wm_iconphoto_default,
- wm_iconposition,
- wm_iconwindow,
- wm_manage,
- wm_maxsize,
- wm_minsize,
- wm_overrideredirect,
- wm_positionfrom,
- wm_protocol,
- wm_protocols,
- wm_resizable,
- wm_sizefrom,
- wm_stackorder,
- wm_stackorder_is_above,
- wm_stackorder_is_below,
- wm_stackorder_isabove,
- wm_stackorder_isbelow,
- wm_state,
- wm_title,
- wm_transient,
- wm_withdraw
Constants
TkCommandNames | = | ['wm'.freeze].freeze |
TOPLEVEL_METHODCALL_OPTKEYS | = | {} |
Class Public methods
aspect(win, *args)
Link
attributes(win, slot=nil,value=TkComm::None)
Link
# File ext/tk/lib/tk/wm.rb, line 30 def Wm.attributes(win, slot=nil,value=TkComm::None) if slot == nil lst = tk_split_list(tk_call('wm', 'attributes', win.epath)) info = {} while key = lst.shift info[key[1..-1]] = lst.shift end info elsif slot.kind_of? Hash tk_call('wm', 'attributes', win.epath, *hash_kv(slot)) win elsif value == TkComm::None tk_call('wm', 'attributes', win.epath, "-#{slot}") else tk_call('wm', 'attributes', win.epath, "-#{slot}", value) win end end
client(win, name=TkComm::None)
Link
colormapwindows(win, *args)
Link
# File ext/tk/lib/tk/wm.rb, line 69 def Wm.colormapwindows(win, *args) if args.size == 0 list(tk_call_without_enc('wm', 'colormapwindows', win.epath)) else args = args[0] if args.length == 1 && args[0].kind_of?(Array) tk_call_without_enc('wm', 'colormapwindows', win.epath, *args) win end end
command(win, value=nil)
Link
deiconify(win, ex = true)
Link
focusmodel(win, mode = nil)
Link
forget(win)
Link
frame(win)
Link
geometry(win, geom=nil)
Link
grid(win, *args)
Link
group(win, leader = nil)
Link
iconbitmap(win, bmp=nil)
Link
iconify(win, ex = true)
Link
iconmask(win, bmp=nil)
Link
iconname(win, name=nil)
Link
iconphoto(win, *imgs)
Link
# File ext/tk/lib/tk/wm.rb, line 199 def Wm.iconphoto(win, *imgs) if imgs.empty? win.instance_eval{ @wm_iconphoto = nil unless defined? @wm_iconphoto return @wm_iconphoto } end imgs = imgs[0] if imgs.length == 1 && imgs[0].kind_of?(Array) tk_call_without_enc('wm', 'iconphoto', win.epath, *imgs) win.instance_eval{ @wm_iconphoto = imgs } win end
iconphoto_default(win, *imgs)
Link
iconposition(win, *args)
Link
# File ext/tk/lib/tk/wm.rb, line 269 def Wm.iconposition(win, *args) if args.size == 0 list(tk_call_without_enc('wm', 'iconposition', win.epath)) else args = args[0] if args.length == 1 && args[0].kind_of?(Array) tk_call_without_enc('wm', 'iconposition', win.epath, *args) win end end
iconwindow(win, iconwin = nil)
Link
manage(win)
Link
maxsize(win, *args)
Link
def ::manage(win, use_id = nil)
# Tcl/Tk 8.5+ feature
# --------------------------------------------------------------
# In the future release, I want to support to embed the 'win'
# into the container which has window-id 'use-id'.
# It may give users frexibility on controlling their GUI.
# However, it may be difficult for current Tcl/Tk (Tcl/Tk8.5.1),
# because it seems to require to modify Tcl/Tk's source code.
# --------------------------------------------------------------
if use_id
tk_call_without_enc('wm', 'manage', win.epath, '-use', use_id)
else
tk_call_without_enc('wm', 'manage', win.epath)
end
win
end
minsize(win, *args)
Link
overrideredirect(win, mode=TkComm::None)
Link
positionfrom(win, who=TkComm::None)
Link
protocol(win, name=nil, cmd=nil, &b)
Link
# File ext/tk/lib/tk/wm.rb, line 385 def Wm.protocol(win, name=nil, cmd=nil, &b) if cmd tk_call_without_enc('wm', 'protocol', win.epath, name, cmd) win elsif b tk_call_without_enc('wm', 'protocol', win.epath, name, proc(&b)) win elsif name result = tk_call_without_enc('wm', 'protocol', win.epath, name) (result == "")? nil : tk_tcl2ruby(result) else tk_split_simplelist(tk_call_without_enc('wm', 'protocol', win.epath)) end end
protocols(win, kv=nil)
Link
# File ext/tk/lib/tk/wm.rb, line 404 def Wm.protocols(win, kv=nil) unless kv ret = {} Wm.protocol(win).each{|name| ret[name] = Wm.protocol(win, name) } return ret end unless kv.kind_of?(Hash) fail ArgumentError, 'expect a hash of protocol=>command' end kv.each{|k, v| Wm.protocol(win, k, v)} win end
resizable(win, *args)
Link
# File ext/tk/lib/tk/wm.rb, line 425 def Wm.resizable(win, *args) if args.length == 0 list(tk_call_without_enc('wm', 'resizable', win.epath)).map!{|e| bool(e)} else args = args[0] if args.length == 1 && args[0].kind_of?(Array) tk_call_without_enc('wm', 'resizable', win.epath, *args) win end end
sizefrom(win, who=TkComm::None)
Link
stackorder(win)
Link
stackorder_is_above(win, target)
Link
stackorder_is_below(win, target)
Link
stackorder_isabove(win, target)
Link
stackorder_isbelow(win, target)
Link
state(win, st=nil)
Link
title(win, str=nil)
Link
transient(win, master=nil)
Link
withdraw(win, ex = true)
Link
Instance Public methods
stackorder_isabove(target)
Link
stackorder_isbelow(target)
Link
wm_command(value=nil)
Link
wm_forget()
Link
wm_grid(*args)
Link
wm_manage()
Link