Module: Tk::Mac

Extended by:
TkCore
Defined in:
lib/tk/tk_mac.rb,
lib/tk/tk_mac.rb

Defined Under Namespace

Classes: IconBitmap

Constant Summary

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

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

.antialiasedtext(num) ⇒ Object



84
85
86
87
# File 'lib/tk/tk_mac.rb', line 84

def self.antialiasedtext(num)
  tk_call('::tk::mac::antialiasedtext', num)
  nil
end

.CGAntialiasLimit(limit) ⇒ Object



79
80
81
82
# File 'lib/tk/tk_mac.rb', line 79

def self.CGAntialiasLimit(limit)
  tk_call('::tk::mac::CGAntialiasLimit', limit)
  nil
end

.def_OnHide(cmd = Proc.new) ⇒ Object



50
51
52
53
# File 'lib/tk/tk_mac.rb', line 50

def self.def_OnHide(cmd=Proc.new)
  ip_eval("proc ::tk::mac::OnHide {} { #{install_cmd(cmd)} }")
  nil
end

.def_OnShow(cmd = Proc.new) ⇒ Object



55
56
57
58
# File 'lib/tk/tk_mac.rb', line 55

def self.def_OnShow(cmd=Proc.new)
  ip_eval("proc ::tk::mac::OnShow {} { #{install_cmd(cmd)} }")
  nil
end

.def_OpenApplication(cmd = Proc.new) ⇒ Object



25
26
27
28
# File 'lib/tk/tk_mac.rb', line 25

def self.def_OpenApplication(cmd=Proc.new)
  ip_eval("proc ::tk::mac::OpenApplication {} { #{install_cmd(cmd)} }")
  nil
end

.def_OpenDocument(cmd = Proc.new) ⇒ Object



35
36
37
38
# File 'lib/tk/tk_mac.rb', line 35

def self.def_OpenDocument(cmd=Proc.new)
  ip_eval("proc ::tk::mac::OpenDocument {args} { eval #{install_cmd(cmd)} $args }")
  nil
end

.def_PrintDocument(cmd = Proc.new) ⇒ Object



40
41
42
43
# File 'lib/tk/tk_mac.rb', line 40

def self.def_PrintDocument(cmd=Proc.new)
  ip_eval("proc ::tk::mac::PrintDocument {args} { eval #{install_cmd(cmd)} $args }")
  nil
end

.def_Quit(cmd = Proc.new) ⇒ Object



45
46
47
48
# File 'lib/tk/tk_mac.rb', line 45

def self.def_Quit(cmd=Proc.new)
  ip_eval("proc ::tk::mac::Quit {} { #{install_cmd(cmd)} }")
  nil
end

.def_ReopenApplication(cmd = Proc.new) ⇒ Object



30
31
32
33
# File 'lib/tk/tk_mac.rb', line 30

def self.def_ReopenApplication(cmd=Proc.new)
  ip_eval("proc ::tk::mac::ReopenApplication {} { #{install_cmd(cmd)} }")
  nil
end

.def_ShowHelp(cmd = Proc.new) ⇒ Object



60
61
62
63
# File 'lib/tk/tk_mac.rb', line 60

def self.def_ShowHelp(cmd=Proc.new)
  ip_eval("proc ::tk::mac::ShowHelp {} { #{install_cmd(cmd)} }")
  nil
end

.def_ShowPreferences(cmd = Proc.new) ⇒ Object

event handler callbacks



20
21
22
23
# File 'lib/tk/tk_mac.rb', line 20

def self.def_ShowPreferences(cmd=Proc.new)
  ip_eval("proc ::tk::mac::ShowPreferences {} { #{install_cmd(cmd)} }")
  nil
end

.standardAboutPanelObject

additional dialogs



67
68
69
70
# File 'lib/tk/tk_mac.rb', line 67

def self.standardAboutPanel
  tk_call('::tk::mac::standardAboutPanel')
  nil
end

.useCompatibilityMetrics(mode) ⇒ Object

system configuration



74
75
76
77
# File 'lib/tk/tk_mac.rb', line 74

def self.useCompatibilityMetrics(mode)
  tk_call('::tk::mac::useCompatibilityMetrics', mode)
  nil
end

.useThemedToplevel(mode) ⇒ Object



89
90
91
92
# File 'lib/tk/tk_mac.rb', line 89

def self.useThemedToplevel(mode)
  tk_call('::tk::mac::useThemedToplevel', mode)
  nil
end