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



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

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

._split_tklistObject




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

static VALUE
lib_split_tklist(self, list_str)
VALUE self;

._subst_Tcl_backslashObject



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

static VALUE
lib_Tcl_backslash(self, str)
VALUE self;

._subst_UTF_backslashObject



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

static VALUE
lib_UTF_backslash(self, str)
VALUE self;

._toUTF8Object



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

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



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

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

.encoding=(name) ⇒ Object



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

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



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

static VALUE
lib_get_system_encoding(self)
VALUE self;

.encoding_system=Object



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

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



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

static VALUE
get_eventloop_window_mode(self)
VALUE self;

.get_release_type_nameObject



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

static VALUE
lib_get_reltype_name(self)
VALUE self;

.get_versionObject




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

static VALUE
lib_getversion(self)
VALUE self;

.mainloop_abort_on_exceptionObject

not eventloop



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

static VALUE
lib_evloop_abort_on_exc(self)
VALUE self;

.mainloop_abort_on_exception=Object



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

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

.mainloop_thread?Boolean

Returns:

  • (Boolean)


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

static VALUE
lib_evloop_thread_p(self)
VALUE self;

.num_of_mainwindowsObject



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

static VALUE
lib_num_of_mainwindows(self)
VALUE self;

.set_eventloop_window_modeObject



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

static VALUE
set_eventloop_window_mode(self, mode)
VALUE self;

.set_max_block_timeObject



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

static VALUE
set_max_block_time(self, time)
VALUE self;