Module: TclTkLib

Defined in:
lib/tk.rb

Class Method Summary collapse

Class Method Details

._encoding=Object



3056
# File 'lib/tk.rb', line 3056

alias _encoding= encoding=

.default_encoding=(name) ⇒ Object



3051
3052
3053
# File 'lib/tk.rb', line 3051

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

.encoding=(name) ⇒ Object



3057
3058
3059
3060
# File 'lib/tk.rb', line 3057

def encoding=(name)
  name = name.name if name.kind_of?(::Encoding) if Tk::WITH_ENCODING
  TkCore::INTERP.encoding = name
end

.encoding_nameObject Also known as: encoding, default_encoding



3062
3063
3064
# File 'lib/tk.rb', line 3062

def encoding_name
  TkCore::INTERP.encoding
end

.encoding_objObject



3068
3069
3070
3071
3072
3073
3074
# File 'lib/tk.rb', line 3068

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

.force_default_encoding=(mode) ⇒ Object



3043
3044
3045
# File 'lib/tk.rb', line 3043

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

.force_default_encoding?Boolean

Returns:

  • (Boolean)


3047
3048
3049
# File 'lib/tk.rb', line 3047

def force_default_encoding?
  TkCore::INTERP.force_default_encoding?
end