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



3137
3138
3139
# File 'lib/tk.rb', line 3137

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

._fromUTF8Object



8275
8276
8277
# File 'tcltklib.c', line 8275

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

._split_tklistObject




9821
9822
9823
# File 'tcltklib.c', line 9821

static VALUE
lib_split_tklist(self, list_str)
VALUE self;

._subst_Tcl_backslashObject



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

static VALUE
lib_Tcl_backslash(self, str)
VALUE self;

._subst_UTF_backslashObject



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

static VALUE
lib_UTF_backslash(self, str)
VALUE self;

._toUTF8Object



8073
8074
8075
# File 'tcltklib.c', line 8073

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

.default_encoding=(name) ⇒ Object



3132
3133
3134
# File 'lib/tk.rb', line 3132

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

.do_thread_callbackObject



2972
2973
2974
# File 'tcltklib.c', line 2972

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

.encoding=(name) ⇒ Object



8411
8412
8413
# File 'tcltklib.c', line 8411

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

.encoding_nameObject Also known as: encoding, default_encoding



3143
3144
3145
# File 'lib/tk.rb', line 3143

def encoding_name
  TkCore::INTERP.encoding
end

.encoding_objObject



3149
3150
3151
3152
3153
3154
3155
# File 'lib/tk.rb', line 3149

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

.encoding_systemObject



8399
8400
8401
# File 'tcltklib.c', line 8399

static VALUE
lib_get_system_encoding(self)
VALUE self;

.encoding_system=Object



8411
8412
8413
# File 'tcltklib.c', line 8411

static VALUE
lib_set_system_encoding(self, enc_name)
VALUE self;

.force_default_encoding=(mode) ⇒ Object



3124
3125
3126
# File 'lib/tk.rb', line 3124

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

.force_default_encoding?Boolean

Returns:

  • (Boolean)


3128
3129
3130
# File 'lib/tk.rb', line 3128

def force_default_encoding?
  TkCore::INTERP.force_default_encoding?
end

.get_eventloop_window_modeObject



1702
1703
1704
# File 'tcltklib.c', line 1702

static VALUE
get_eventloop_window_mode(self)
VALUE self;

.get_release_type_nameObject



9985
9986
9987
# File 'tcltklib.c', line 9985

static VALUE
lib_get_reltype_name(self)
VALUE self;

.get_versionObject




9973
9974
9975
# File 'tcltklib.c', line 9973

static VALUE
lib_getversion(self)
VALUE self;

.mainloop_abort_on_exceptionObject

not eventloop



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

static VALUE
lib_evloop_abort_on_exc(self)
VALUE self;

.mainloop_abort_on_exception=Object



1954
1955
1956
# File 'tcltklib.c', line 1954

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

.mainloop_thread?Boolean

Returns:

  • (Boolean)


1921
1922
1923
# File 'tcltklib.c', line 1921

static VALUE
lib_evloop_thread_p(self)
VALUE self;

.num_of_mainwindowsObject



2000
2001
2002
# File 'tcltklib.c', line 2000

static VALUE
lib_num_of_mainwindows(self)
VALUE self;

.set_eventloop_window_modeObject



1687
1688
1689
# File 'tcltklib.c', line 1687

static VALUE
set_eventloop_window_mode(self, mode)
VALUE self;

.set_max_block_timeObject



1885
1886
1887
# File 'tcltklib.c', line 1885

static VALUE
set_max_block_time(self, time)
VALUE self;