Module: TclTkLib

Defined in:
tcltklib.c,
lib/tk.rb

Defined Under Namespace

Modules: EventFlag, RELEASE_TYPE, VarAccessFlag

Constant Summary collapse

COMPILE_INFO =

tcltklib_compile_info()
RELEASE_DATE =
rb_obj_freeze(rb_str_new2(tcltklib_release_date))
FINALIZE_PROC_NAME =
rb_str_new2(finalize_hook_name)
WINDOWING_SYSTEM =
rb_obj_freeze(rb_str_new2(TK_WINDOWING_SYSTEM))

Class Method Summary collapse

Class Method Details

._encoding=Object



3135
3136
3137
# File 'lib/tk.rb', line 3135

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

._fromUTF8Object



8267
8268
8269
# File 'tcltklib.c', line 8267

static VALUE
lib_fromUTF8(argc, argv, self)
int   argc;

._split_tklistObject




9793
9794
9795
# File 'tcltklib.c', line 9793

static VALUE
lib_split_tklist(self, list_str)
VALUE self;

._subst_Tcl_backslashObject



8383
8384
8385
# File 'tcltklib.c', line 8383

static VALUE
lib_Tcl_backslash(self, str)
VALUE self;

._subst_UTF_backslashObject



8375
8376
8377
# File 'tcltklib.c', line 8375

static VALUE
lib_UTF_backslash(self, str)
VALUE self;

._toUTF8Object



8065
8066
8067
# File 'tcltklib.c', line 8065

static VALUE
lib_toUTF8(argc, argv, self)
int   argc;

.default_encoding=(name) ⇒ Object



3130
3131
3132
# File 'lib/tk.rb', line 3130

def default_encoding=(name)
  TkCore::INTERP.default_encoding = name
end

.do_thread_callbackObject



2951
2952
2953
# File 'tcltklib.c', line 2951

static VALUE
lib_thread_callback(argc, argv, self)
int argc;

.encoding=(name) ⇒ Object



8403
8404
8405
# File 'tcltklib.c', line 8403

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

.encoding_nameObject Also known as: encoding, default_encoding



3141
3142
3143
# File 'lib/tk.rb', line 3141

def encoding_name
  TkCore::INTERP.encoding
end

.encoding_objObject



3147
3148
3149
3150
3151
3152
3153
# File 'lib/tk.rb', line 3147

def encoding_obj
  if Tk::WITH_ENCODING
    Tk::Encoding.tcl2rb_encoding(TkCore::INTERP.encoding)
  else
    TkCore::INTERP.encoding
  end
end

.encoding_systemObject



8391
8392
8393
# File 'tcltklib.c', line 8391

static VALUE
lib_get_system_encoding(self)
VALUE self;

.encoding_system=Object



8403
8404
8405
# File 'tcltklib.c', line 8403

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

.force_default_encoding=(mode) ⇒ Object



3122
3123
3124
# File 'lib/tk.rb', line 3122

def force_default_encoding=(mode)
  TkCore::INTERP.force_default_encoding = mode
end

.force_default_encoding?Boolean

Returns:

  • (Boolean)


3126
3127
3128
# File 'lib/tk.rb', line 3126

def force_default_encoding?
  TkCore::INTERP.force_default_encoding?
end

.get_eventloop_window_modeObject



1681
1682
1683
# File 'tcltklib.c', line 1681

static VALUE
get_eventloop_window_mode(self)
VALUE self;

.get_release_type_nameObject



9957
9958
9959
# File 'tcltklib.c', line 9957

static VALUE
lib_get_reltype_name(self)
VALUE self;

.get_versionObject




9945
9946
9947
# File 'tcltklib.c', line 9945

static VALUE
lib_getversion(self)
VALUE self;

.mainloop_abort_on_exceptionObject

not eventloop



1913
1914
1915
# File 'tcltklib.c', line 1913

static VALUE
lib_evloop_abort_on_exc(self)
VALUE self;

.mainloop_abort_on_exception=Object



1933
1934
1935
# File 'tcltklib.c', line 1933

static VALUE
lib_evloop_abort_on_exc_set(self, val)
VALUE self, val;

.mainloop_thread?Boolean

Returns:

  • (Boolean)


1900
1901
1902
# File 'tcltklib.c', line 1900

static VALUE
lib_evloop_thread_p(self)
VALUE self;

.num_of_mainwindowsObject



1979
1980
1981
# File 'tcltklib.c', line 1979

static VALUE
lib_num_of_mainwindows(self)
VALUE self;

.set_eventloop_window_modeObject



1666
1667
1668
# File 'tcltklib.c', line 1666

static VALUE
set_eventloop_window_mode(self, mode)
VALUE self;

.set_max_block_timeObject



1864
1865
1866
# File 'tcltklib.c', line 1864

static VALUE
set_max_block_time(self, time)
VALUE self;