Module: Tk::Wm

Extended by:
TkCore
Included in:
Itk::Toplevel, Menu, Root, Toplevel
Defined in:
lib/tk/wm.rb

Constant Summary collapse

TkCommandNames =
['wm'.freeze].freeze
TOPLEVEL_METHODCALL_OPTKEYS =
{}

Constants included from TkCore

TkCore::EventFlag, TkCore::INTERP, TkCore::INTERP_MUTEX, TkCore::INTERP_ROOT_CHECK, TkCore::INTERP_THREAD, TkCore::INTERP_THREAD_STATUS, TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD, TkCore::WIDGET_DESTROY_HOOK, TkCore::WITH_ENCODING, TkCore::WITH_RUBY_VM

Constants included from TkComm

TkComm::GET_CONFIGINFO_AS_ARRAY, TkComm::GET_CONFIGINFOwoRES_AS_ARRAY, TkComm::TkExtlibAutoloadModule, TkComm::Tk_CMDTBL, TkComm::Tk_IDs, TkComm::Tk_WINDOWS, TkComm::USE_TCLs_LIST_FUNCTIONS, TkComm::WidgetClassNames

Constants included from TkUtil

TkUtil::None, TkUtil::RELEASE_DATE

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TkCore

_tk_call_to_list_core, after, after_cancel, after_idle, appname, appsend, appsend_deny, appsend_displayof, callback, callback_break, callback_continue, callback_return, chooseColor, chooseDirectory, do_one_event, event_generate, getMultipleOpenFile, getMultipleSaveFile, getOpenFile, getSaveFile, get_eventloop_tick, get_eventloop_weight, get_no_event_wait, inactive, inactive_displayof, info, ip_eval, ip_eval_with_enc, ip_eval_without_enc, ip_invoke, ip_invoke_with_enc, ip_invoke_without_enc, is_mainloop?, load_cmd_on_ip, mainloop, mainloop_exist?, mainloop_thread?, mainloop_watchdog, messageBox, rb_appsend, rb_appsend_displayof, reset_inactive, reset_inactive_displayof, restart, scaling, scaling_displayof, set_eventloop_tick, set_eventloop_weight, set_no_event_wait, tk_call, tk_call_to_list, tk_call_to_list_with_enc, tk_call_to_list_without_enc, tk_call_to_simplelist, tk_call_to_simplelist_with_enc, tk_call_to_simplelist_without_enc, tk_call_with_enc, tk_call_without_enc, windowingsystem

Methods included from TkComm

_at, _callback_entry?, _callback_entry_class?, _curr_cmd_id, _fromUTF8, _genobj_for_tkwidget, _next_cmd_id, _toUTF8, array2tk_list, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, bool, image_obj, #install_cmd, install_cmd, list, num_or_nil, num_or_str, number, procedure, simplelist, slice_ary, string, #subst, tk_tcl2ruby, uninstall_cmd, #uninstall_cmd, window

Methods included from TkEvent

#install_bind, #install_bind_for_event_class

Methods included from TkUtil

#_conv_args, _conv_args, #_fromUTF8, #_get_eval_enc_str, _get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, #bool, bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, #num_or_nil, num_or_nil, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd, untrust

Class Method Details

.aspect(win, *args) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'lib/tk/wm.rb', line 15

def Wm.aspect(win, *args)
  if args.length == 0
    list(tk_call_without_enc('wm', 'aspect', win.epath))
  else
    args = args[0] if args.length == 1 && args[0].kind_of?(Array)
    tk_call('wm', 'aspect', win.epath, *args)
    win
  end
end

.attributes(win, slot = nil, value = TkComm::None) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File '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) ⇒ Object



54
55
56
57
58
59
60
61
62
# File 'lib/tk/wm.rb', line 54

def Wm.client(win, name=TkComm::None)
  if name == TkComm::None
    tk_call('wm', 'client', win.epath)
  else
    name = '' if name == nil
    tk_call('wm', 'client', win.epath, name)
    win
  end
end

.colormapwindows(win, *args) ⇒ Object



69
70
71
72
73
74
75
76
77
# File '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) ⇒ Object



84
85
86
87
88
89
90
91
92
# File 'lib/tk/wm.rb', line 84

def Wm.command(win, value=nil)
  if value
    tk_call('wm', 'command', win.epath, value)
    win
  else
    #procedure(tk_call('wm', 'command', win.epath))
    tk_call('wm', 'command', win.epath)
  end
end

.deiconify(win, ex = true) ⇒ Object



98
99
100
101
102
103
104
105
# File 'lib/tk/wm.rb', line 98

def Wm.deiconify(win, ex = true)
  if ex
    tk_call_without_enc('wm', 'deiconify', win.epath)
  else
    Wm.iconify(win)
  end
  win
end

.focusmodel(win, mode = nil) ⇒ Object



111
112
113
114
115
116
117
118
# File 'lib/tk/wm.rb', line 111

def Wm.focusmodel(win, mode = nil)
  if mode
    tk_call_without_enc('wm', 'focusmodel', win.epath, mode)
    win
  else
    tk_call_without_enc('wm', 'focusmodel', win.epath)
  end
end

.forget(win) ⇒ Object



125
126
127
128
129
130
# File 'lib/tk/wm.rb', line 125

def Wm.forget(win)
  # Tcl/Tk 8.5+
  # work with dockable frames
  tk_call_without_enc('wm', 'forget', win.epath)
  win
end

.frame(win) ⇒ Object



135
136
137
# File 'lib/tk/wm.rb', line 135

def Wm.frame(win)
  tk_call_without_enc('wm', 'frame', win.epath)
end

.geometry(win, geom = nil) ⇒ Object



143
144
145
146
147
148
149
150
# File 'lib/tk/wm.rb', line 143

def Wm.geometry(win, geom=nil)
  if geom
    tk_call_without_enc('wm', 'geometry', win.epath, geom)
    win
  else
    tk_call_without_enc('wm', 'geometry', win.epath)
  end
end

.grid(win, *args) ⇒ Object



157
158
159
160
161
162
163
164
165
# File 'lib/tk/wm.rb', line 157

def Wm.grid(win, *args)
  if args.size == 0
    list(tk_call_without_enc('wm', 'grid', win.epath))
  else
    args = args[0] if args.length == 1 && args[0].kind_of?(Array)
    tk_call_without_enc('wm', 'grid', win.epath, *args)
    win
  end
end

.group(win, leader = nil) ⇒ Object



171
172
173
174
175
176
177
178
# File 'lib/tk/wm.rb', line 171

def Wm.group(win, leader = nil)
  if leader
    tk_call('wm', 'group', win.epath, leader)
    win
  else
    window(tk_call('wm', 'group', win.epath))
  end
end

.iconbitmap(win, bmp = nil) ⇒ Object



185
186
187
188
189
190
191
192
# File 'lib/tk/wm.rb', line 185

def Wm.iconbitmap(win, bmp=nil)
  if bmp
    tk_call_without_enc('wm', 'iconbitmap', win.epath, bmp)
    win
  else
    image_obj(tk_call_without_enc('wm', 'iconbitmap', win.epath))
  end
end

.iconify(win, ex = true) ⇒ Object



228
229
230
231
232
233
234
235
# File 'lib/tk/wm.rb', line 228

def Wm.iconify(win, ex = true)
  if ex
    tk_call_without_enc('wm', 'iconify', win.epath)
  else
    Wm.deiconify(win)
  end
  win
end

.iconmask(win, bmp = nil) ⇒ Object



241
242
243
244
245
246
247
248
# File 'lib/tk/wm.rb', line 241

def Wm.iconmask(win, bmp=nil)
  if bmp
    tk_call_without_enc('wm', 'iconmask', win.epath, bmp)
    win
  else
    image_obj(tk_call_without_enc('wm', 'iconmask', win.epath))
  end
end

.iconname(win, name = nil) ⇒ Object



255
256
257
258
259
260
261
262
# File 'lib/tk/wm.rb', line 255

def Wm.iconname(win, name=nil)
  if name
    tk_call('wm', 'iconname', win.epath, name)
    win
  else
    tk_call('wm', 'iconname', win.epath)
  end
end

.iconphoto(win, *imgs) ⇒ Object



199
200
201
202
203
204
205
206
207
208
209
210
211
# File '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) ⇒ Object



218
219
220
221
222
# File 'lib/tk/wm.rb', line 218

def Wm.iconphoto_default(win, *imgs)
  imgs = imgs[0] if imgs.length == 1 && imgs[0].kind_of?(Array)
  tk_call_without_enc('wm', 'iconphoto', win.epath, '-default', *imgs)
  win
end

.iconposition(win, *args) ⇒ Object



269
270
271
272
273
274
275
276
277
# File '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) ⇒ Object



284
285
286
287
288
289
290
291
292
# File 'lib/tk/wm.rb', line 284

def Wm.iconwindow(win, iconwin = nil)
  if iconwin
    tk_call_without_enc('wm', 'iconwindow', win.epath, iconwin)
    win
  else
    w = tk_call_without_enc('wm', 'iconwindow', win.epath)
    (w == '')? nil: window(w)
  end
end

.manage(win) ⇒ Object



299
300
301
302
303
# File 'lib/tk/wm.rb', line 299

def Wm.manage(win)
  # Tcl/Tk 8.5+ feature
  tk_call_without_enc('wm', 'manage', win.epath)
  win
end

.maxsize(win, *args) ⇒ Object

def Wm.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


326
327
328
329
330
331
332
333
334
# File 'lib/tk/wm.rb', line 326

def Wm.maxsize(win, *args)
  if args.size == 0
    list(tk_call_without_enc('wm', 'maxsize', win.epath))
  else
    args = args[0] if args.length == 1 && args[0].kind_of?(Array)
    tk_call_without_enc('wm', 'maxsize', win.epath, *args)
    win
  end
end

.minsize(win, *args) ⇒ Object



341
342
343
344
345
346
347
348
349
# File 'lib/tk/wm.rb', line 341

def Wm.minsize(win, *args)
  if args.size == 0
    list(tk_call_without_enc('wm', 'minsize', win.epath))
  else
    args = args[0] if args.length == 1 && args[0].kind_of?(Array)
    tk_call_without_enc('wm', 'minsize', win.path, *args)
    win
  end
end

.overrideredirect(win, mode = TkComm::None) ⇒ Object



356
357
358
359
360
361
362
363
# File 'lib/tk/wm.rb', line 356

def Wm.overrideredirect(win, mode=TkComm::None)
  if mode == TkComm::None
    bool(tk_call_without_enc('wm', 'overrideredirect', win.epath))
  else
    tk_call_without_enc('wm', 'overrideredirect', win.epath, mode)
    win
  end
end

.positionfrom(win, who = TkComm::None) ⇒ Object



370
371
372
373
374
375
376
377
378
# File 'lib/tk/wm.rb', line 370

def Wm.positionfrom(win, who=TkComm::None)
  if who == TkComm::None
    r = tk_call_without_enc('wm', 'positionfrom', win.epath)
    (r == "")? nil: r
  else
    tk_call_without_enc('wm', 'positionfrom', win.epath, who)
    win
  end
end

.protocol(win, name = nil, cmd = nil, &b) ⇒ Object



385
386
387
388
389
390
391
392
393
394
395
396
397
398
# File '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) ⇒ Object



404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
# File '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) ⇒ Object



425
426
427
428
429
430
431
432
433
# File '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) ⇒ Object



440
441
442
443
444
445
446
447
448
# File 'lib/tk/wm.rb', line 440

def Wm.sizefrom(win, who=TkComm::None)
  if who == TkComm::None
    r = tk_call_without_enc('wm', 'sizefrom', win.epath)
    (r == "")? nil: r
  else
    tk_call_without_enc('wm', 'sizefrom', win.epath, who)
    win
  end
end

.stackorder(win) ⇒ Object



455
456
457
# File 'lib/tk/wm.rb', line 455

def Wm.stackorder(win)
  list(tk_call('wm', 'stackorder', win.epath))
end

.stackorder_is_above(win, target) ⇒ Object



466
467
468
# File 'lib/tk/wm.rb', line 466

def Wm.stackorder_is_above(win, target)
  Wm.stackorder_isabove(win, target)
end

.stackorder_is_below(win, target) ⇒ Object



479
480
481
# File 'lib/tk/wm.rb', line 479

def Wm.stackorder_is_below(win, target)
  Wm.stackorder_isbelow(win, target)
end

.stackorder_isabove(win, target) ⇒ Object



463
464
465
# File 'lib/tk/wm.rb', line 463

def Wm.stackorder_isabove(win, target)
  bool(tk_call('wm', 'stackorder', win.epath, 'isabove', target))
end

.stackorder_isbelow(win, target) ⇒ Object



476
477
478
# File 'lib/tk/wm.rb', line 476

def Wm.stackorder_isbelow(win, target)
  bool(tk_call('wm', 'stackorder', win.epath, 'isbelow', target))
end

.state(win, st = nil) ⇒ Object



489
490
491
492
493
494
495
496
# File 'lib/tk/wm.rb', line 489

def Wm.state(win, st=nil)
  if st
    tk_call_without_enc('wm', 'state', win.epath, st)
    win
  else
    tk_call_without_enc('wm', 'state', win.epath)
  end
end

.title(win, str = nil) ⇒ Object



503
504
505
506
507
508
509
510
# File 'lib/tk/wm.rb', line 503

def Wm.title(win, str=nil)
  if str
    tk_call('wm', 'title', win.epath, str)
    win
  else
    tk_call('wm', 'title', win.epath)
  end
end

.transient(win, master = nil) ⇒ Object



517
518
519
520
521
522
523
524
# File 'lib/tk/wm.rb', line 517

def Wm.transient(win, master=nil)
  if master
    tk_call_without_enc('wm', 'transient', win.epath, master)
    win
  else
    window(tk_call_without_enc('wm', 'transient', win.epath))
  end
end

.withdraw(win, ex = true) ⇒ Object



531
532
533
534
535
536
537
538
# File 'lib/tk/wm.rb', line 531

def Wm.withdraw(win, ex = true)
  if ex
    tk_call_without_enc('wm', 'withdraw', win.epath)
  else
    Wm.deiconify(win)
  end
  win
end

Instance Method Details

#aspect(*args) ⇒ Object Also known as: wm_aspect



24
25
26
# File 'lib/tk/wm.rb', line 24

def aspect(*args)
  Wm.aspect(self, *args)
end

#attributes(slot = nil, value = TkComm::None) ⇒ Object Also known as: wm_attributes



48
49
50
# File 'lib/tk/wm.rb', line 48

def attributes(slot=nil,value=TkComm::None)
  Wm.attributes(self, slot, value)
end

#client(name = TkComm::None) ⇒ Object Also known as: wm_client



63
64
65
# File 'lib/tk/wm.rb', line 63

def client(name=TkComm::None)
  Wm.client(self, name)
end

#colormapwindows(*args) ⇒ Object Also known as: wm_colormapwindows



78
79
80
# File 'lib/tk/wm.rb', line 78

def colormapwindows(*args)
  Wm.colormapwindows(self, *args)
end

#deiconify(ex = true) ⇒ Object Also known as: wm_deiconify



106
107
108
# File 'lib/tk/wm.rb', line 106

def deiconify(ex = true)
  Wm.deiconify(self, ex)
end

#focusmodel(mode = nil) ⇒ Object Also known as: wm_focusmodel



119
120
121
# File 'lib/tk/wm.rb', line 119

def focusmodel(mode = nil)
  Wm.focusmodel(self, mode)
end

#frameObject Also known as: wm_frame



138
139
140
# File 'lib/tk/wm.rb', line 138

def frame
  Wm.frame(self)
end

#geometry(geom = nil) ⇒ Object Also known as: wm_geometry



151
152
153
# File 'lib/tk/wm.rb', line 151

def geometry(geom=nil)
  Wm.geometry(self, geom)
end

#group(leader = nil) ⇒ Object Also known as: wm_group



179
180
181
# File 'lib/tk/wm.rb', line 179

def group(leader = nil)
  Wm.group(self, leader)
end

#iconbitmap(bmp = nil) ⇒ Object Also known as: wm_iconbitmap



193
194
195
# File 'lib/tk/wm.rb', line 193

def iconbitmap(bmp=nil)
  Wm.iconbitmap(self, bmp)
end

#iconify(ex = true) ⇒ Object Also known as: wm_iconify



236
237
238
# File 'lib/tk/wm.rb', line 236

def iconify(ex = true)
  Wm.iconify(self, ex)
end

#iconmask(bmp = nil) ⇒ Object Also known as: wm_iconmask



249
250
251
# File 'lib/tk/wm.rb', line 249

def iconmask(bmp=nil)
  Wm.iconmask(self, bmp)
end

#iconname(name = nil) ⇒ Object Also known as: wm_iconname



263
264
265
# File 'lib/tk/wm.rb', line 263

def iconname(name=nil)
  Wm.iconname(self, name)
end

#iconphoto(*imgs) ⇒ Object Also known as: wm_iconphoto



212
213
214
# File 'lib/tk/wm.rb', line 212

def iconphoto(*imgs)
  Wm.iconphoto(self, *imgs)
end

#iconphoto_default(*imgs) ⇒ Object Also known as: wm_iconphoto_default



223
224
225
# File 'lib/tk/wm.rb', line 223

def iconphoto_default(*imgs)
  Wm.iconphoto_default(self, *imgs)
end

#iconposition(*args) ⇒ Object Also known as: wm_iconposition



278
279
280
# File 'lib/tk/wm.rb', line 278

def iconposition(*args)
  Wm.iconposition(self, *args)
end

#iconwindow(iconwin = nil) ⇒ Object Also known as: wm_iconwindow



293
294
295
# File 'lib/tk/wm.rb', line 293

def iconwindow(iconwin = nil)
  Wm.iconwindow(self, iconwin)
end

#maxsize(*args) ⇒ Object Also known as: wm_maxsize



335
336
337
# File 'lib/tk/wm.rb', line 335

def maxsize(*args)
  Wm.maxsize(self, *args)
end

#minsize(*args) ⇒ Object Also known as: wm_minsize



350
351
352
# File 'lib/tk/wm.rb', line 350

def minsize(*args)
  Wm.minsize(self, *args)
end

#overrideredirect(mode = TkComm::None) ⇒ Object Also known as: wm_overrideredirect



364
365
366
# File 'lib/tk/wm.rb', line 364

def overrideredirect(mode=TkComm::None)
  Wm.overrideredirect(self, mode)
end

#positionfrom(who = TkComm::None) ⇒ Object Also known as: wm_positionfrom



379
380
381
# File 'lib/tk/wm.rb', line 379

def positionfrom(who=TkComm::None)
  Wm.positionfrom(self, who)
end

#protocol(name = nil, cmd = nil, &b) ⇒ Object Also known as: wm_protocol



399
400
401
# File 'lib/tk/wm.rb', line 399

def protocol(name=nil, cmd=nil, &b)
  Wm.protocol(self, name, cmd, &b)
end

#protocols(kv = nil) ⇒ Object Also known as: wm_protocols



419
420
421
# File 'lib/tk/wm.rb', line 419

def protocols(kv=nil)
  Wm.protocols(self, kv)
end

#resizable(*args) ⇒ Object Also known as: wm_resizable



434
435
436
# File 'lib/tk/wm.rb', line 434

def resizable(*args)
  Wm.resizable(self, *args)
end

#sizefrom(who = TkComm::None) ⇒ Object Also known as: wm_sizefrom



449
450
451
# File 'lib/tk/wm.rb', line 449

def sizefrom(who=TkComm::None)
  Wm.sizefrom(self, who)
end

#stackorderObject Also known as: wm_stackorder



458
459
460
# File 'lib/tk/wm.rb', line 458

def stackorder
  Wm.stackorder(self)
end

#stackorder_isabove(target) ⇒ Object Also known as: stackorder_is_above, wm_stackorder_isabove, wm_stackorder_is_above



469
470
471
# File 'lib/tk/wm.rb', line 469

def stackorder_isabove(target)
  Wm.stackorder_isabove(self, target)
end

#stackorder_isbelow(target) ⇒ Object Also known as: stackorder_is_below, wm_stackorder_isbelow, wm_stackorder_is_below



482
483
484
# File 'lib/tk/wm.rb', line 482

def stackorder_isbelow(target)
  Wm.stackorder_isbelow(self, target)
end

#state(st = nil) ⇒ Object Also known as: wm_state



497
498
499
# File 'lib/tk/wm.rb', line 497

def state(st=nil)
  Wm.state(self, st)
end

#title(str = nil) ⇒ Object Also known as: wm_title



511
512
513
# File 'lib/tk/wm.rb', line 511

def title(str=nil)
  Wm.title(self, str)
end

#transient(master = nil) ⇒ Object Also known as: wm_transient



525
526
527
# File 'lib/tk/wm.rb', line 525

def transient(master=nil)
  Wm.transient(self, master)
end

#withdraw(ex = true) ⇒ Object Also known as: wm_withdraw



539
540
541
# File 'lib/tk/wm.rb', line 539

def withdraw(ex = true)
  Wm.withdraw(self, ex)
end

#wm_command(value = nil) ⇒ Object



93
94
95
# File 'lib/tk/wm.rb', line 93

def wm_command(value=nil)
  Wm.command(self, value)
end

#wm_forgetObject



131
132
133
# File 'lib/tk/wm.rb', line 131

def wm_forget
  Wm.forget(self)
end

#wm_grid(*args) ⇒ Object



166
167
168
# File 'lib/tk/wm.rb', line 166

def wm_grid(*args)
  Wm.grid(self, *args)
end

#wm_manageObject



304
305
306
# File 'lib/tk/wm.rb', line 304

def wm_manage
  Wm.manage(self)
end