Module: Tk::BWidget

Extended by:
TkCore
Defined in:
lib/tkextlib/bwidget.rb,
lib/tkextlib/bwidget/tree.rb,
lib/tkextlib/bwidget/label.rb,
lib/tkextlib/bwidget/entry.rb,
lib/tkextlib/bwidget/widget.rb,
lib/tkextlib/bwidget/button.rb,
lib/tkextlib/bwidget/bitmap.rb,
lib/tkextlib/bwidget/dialog.rb,
lib/tkextlib/bwidget/listbox.rb,
lib/tkextlib/bwidget/spinbox.rb,
lib/tkextlib/bwidget/notebook.rb,
lib/tkextlib/bwidget/dropsite.rb,
lib/tkextlib/bwidget/dragsite.rb,
lib/tkextlib/bwidget/combobox.rb,
lib/tkextlib/bwidget/mainframe.rb,
lib/tkextlib/bwidget/passwddlg.rb,
lib/tkextlib/bwidget/separator.rb,
lib/tkextlib/bwidget/buttonbox.rb,
lib/tkextlib/bwidget/statusbar.rb,
lib/tkextlib/bwidget/messagedlg.rb,
lib/tkextlib/bwidget/titleframe.rb,
lib/tkextlib/bwidget/labelframe.rb,
lib/tkextlib/bwidget/selectfont.rb,
lib/tkextlib/bwidget/labelentry.rb,
lib/tkextlib/bwidget/panelframe.rb,
lib/tkextlib/bwidget/scrollview.rb,
lib/tkextlib/bwidget/progressdlg.rb,
lib/tkextlib/bwidget/progressbar.rb,
lib/tkextlib/bwidget/panedwindow.rb,
lib/tkextlib/bwidget/selectcolor.rb,
lib/tkextlib/bwidget/arrowbutton.rb,
lib/tkextlib/bwidget/dynamichelp.rb,
lib/tkextlib/bwidget/pagesmanager.rb,
lib/tkextlib/bwidget/scrolledwindow.rb,
lib/tkextlib/bwidget/scrollableframe.rb

Defined Under Namespace

Modules: DragSite, DropSite, DynamicHelp, Widget Classes: ArrowButton, Bitmap, Button, ButtonBox, ComboBox, Dialog, Entry, Label, LabelEntry, LabelFrame, ListBox, MainFrame, MessageDlg, NoteBook, PagesManager, PanedWindow, PanelFrame, PasswdDlg, ProgressBar, ProgressDlg, ScrollView, ScrollableFrame, ScrolledWindow, SelectColor, SelectFont, Separator, SpinBox, StatusBar, TitleFrame, Tree

Constant Summary collapse

LIBRARY =
tk_call('set', '::BWIDGET::LIBRARY')
PACKAGE_NAME =
'BWidget'.freeze

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

.assert(exp, msg = None) ⇒ Object



49
50
51
# File 'lib/tkextlib/bwidget.rb', line 49

def self.assert(exp, msg=None)
  tk_call('BWidget::assert', exp, msg)
end

.badOptionString(type, value, list) ⇒ Object



53
54
55
# File 'lib/tkextlib/bwidget.rb', line 53

def self.badOptionString(type, value, list)
  tk_call('BWidget::badOptionString', type, value, list)
end

.bindMouseWheel(widget) ⇒ Object



57
58
59
# File 'lib/tkextlib/bwidget.rb', line 57

def self.bindMouseWheel(widget)
  tk_call('BWidget::bindMouseWheel', widget)
end

.classes(klass) ⇒ Object



61
62
63
# File 'lib/tkextlib/bwidget.rb', line 61

def self.classes(klass)
  list(tk_call('BWidget::classes', klass))
end

.clonename(menu) ⇒ Object



65
66
67
# File 'lib/tkextlib/bwidget.rb', line 65

def self.clonename(menu)
  tk_call('BWidget::clonename', menu)
end

.focus(opt, path) ⇒ Object



69
70
71
# File 'lib/tkextlib/bwidget.rb', line 69

def self.focus(opt, path)
  tk_call('BWidget::focus', opt, path)
end

.get3dcolor(path, bgcolor) ⇒ Object



73
74
75
# File 'lib/tkextlib/bwidget.rb', line 73

def self.get3dcolor(path, bgcolor)
  tk_call('BWidget::get3dcolor', path, bgcolor)
end

.getname(name) ⇒ Object



77
78
79
# File 'lib/tkextlib/bwidget.rb', line 77

def self.getname(name)
  tk_call('BWidget::getname', name)
end

.grab(opt, path) ⇒ Object



81
82
83
# File 'lib/tkextlib/bwidget.rb', line 81

def self.grab(opt, path)
  tk_call('BWidget::grab', opt, path)
end

.inuse(klass) ⇒ Object



85
86
87
# File 'lib/tkextlib/bwidget.rb', line 85

def self.inuse(klass)
  bool(tk_call('BWidget::inuse', klass))
end

.library(klass, *klasses) ⇒ Object



89
90
91
# File 'lib/tkextlib/bwidget.rb', line 89

def self.library(klass, *klasses)
  tk_call('BWidget::library', klass, *klasses)
end

.lreorder(list, neworder) ⇒ Object



93
94
95
# File 'lib/tkextlib/bwidget.rb', line 93

def self.lreorder(list, neworder)
  tk_call('BWidget::lreorder', list, neworder)
end

.package_nameObject



29
30
31
# File 'lib/tkextlib/bwidget.rb', line 29

def self.package_name
  PACKAGE_NAME
end

.package_versionObject



33
34
35
36
37
38
39
# File 'lib/tkextlib/bwidget.rb', line 33

def self.package_version
  begin
    TkPackage.require('BWidget')
  rescue
    ''
  end
end

.parsetext(text) ⇒ Object



97
98
99
# File 'lib/tkextlib/bwidget.rb', line 97

def self.parsetext(text)
  tk_call('BWidget::parsetext', text)
end

.place(path, w, h, *args) ⇒ Object



101
102
103
104
105
106
107
# File 'lib/tkextlib/bwidget.rb', line 101

def self.place(path, w, h, *args)
  if args[-1].kind_of?(Hash)
    keys = args.pop
    args.concat(hash_kv(keys))
  end
  tk_call('BWidget::place', path, w, h, *(args.flatten))
end

.write(file, mode = None) ⇒ Object



109
110
111
# File 'lib/tkextlib/bwidget.rb', line 109

def self.write(file, mode=None)
  tk_call('BWidget::write', file, mode)
end

.wrongNumArgsString(str) ⇒ Object



113
114
115
# File 'lib/tkextlib/bwidget.rb', line 113

def self.wrongNumArgsString(str)
  tk_call('BWidget::wrongNumArgsString', str)
end

.XLFDfont(cmd, *args) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/tkextlib/bwidget.rb', line 41

def self.XLFDfont(cmd, *args)
  if args[-1].kind_of?(Hash)
    keys = args.pop
    args.concat(hash_kv(keys))
  end
  tk_call('BWidget::XLFDfont', cmd, *args)
end