Module: Tk::BLT::Winop

Extended by:
TkCore
Defined in:
lib/tkextlib/blt/winop.rb

Constant Summary collapse

TkCommandNames =
['::blt::winop'.freeze].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

.changes(win) ⇒ Object



20
21
22
# File 'lib/tkextlib/blt/winop.rb', line 20

def changes(win)
  tk_call('::blt::winop', 'changes', win)
end

.colormap(win) ⇒ Object



24
25
26
# File 'lib/tkextlib/blt/winop.rb', line 24

def colormap(win)
  Hash[*list(tk_call('::blt::winop', 'colormap', win))]
end

.convolve(src, dest, filter) ⇒ Object



28
29
30
# File 'lib/tkextlib/blt/winop.rb', line 28

def convolve(src, dest, filter)
  tk_call('::blt::winop', 'convolve', src, dest, filter)
end

.image_convolve(src, dest, filter) ⇒ Object



32
33
34
# File 'lib/tkextlib/blt/winop.rb', line 32

def image_convolve(src, dest, filter)
  tk_call('::blt::winop', 'image', 'convolve', src, dest, filter)
end

.image_gradient(photo, left, right, type) ⇒ Object



35
36
37
# File 'lib/tkextlib/blt/winop.rb', line 35

def image_gradient(photo, left, right, type)
  tk_call('::blt::winop', 'image', 'gradient', photo, left, right, type)
end

.image_read_jpeg(file, photo) ⇒ Object



38
39
40
# File 'lib/tkextlib/blt/winop.rb', line 38

def image_read_jpeg(file, photo)
  tk_call('::blt::winop', 'image', 'readjpeg', file, photo)
end

.image_resample(src, dest, horiz_filter = None, vert_filter = None) ⇒ Object



41
42
43
44
# File 'lib/tkextlib/blt/winop.rb', line 41

def image_resample(src, dest, horiz_filter=None, vert_filter=None)
  tk_call('::blt::winop', 'image', 'resample',
          src, dest, horiz_filter, vert_filter)
end

.image_rotate(src, dest, angle) ⇒ Object



45
46
47
# File 'lib/tkextlib/blt/winop.rb', line 45

def image_rotate(src, dest, angle)
  tk_call('::blt::winop', 'image', 'rotate', src, dest, angle)
end

.image_snap(win, photo, width = None, height = None) ⇒ Object



48
49
50
# File 'lib/tkextlib/blt/winop.rb', line 48

def image_snap(win, photo, width=None, height=None)
  tk_call('::blt::winop', 'image', 'snap', win, photo, width, height)
end

.image_subsample(src, dest, x, y, width, height, horiz_filter = None, vert_filter = None) ⇒ Object



51
52
53
54
55
# File 'lib/tkextlib/blt/winop.rb', line 51

def image_subsample(src, dest, x, y, width, height,
                    horiz_filter=None, vert_filter=None)
  tk_call('::blt::winop', 'image', 'subsample',
          src, dest, x, y, width, height, horiz_filter, vert_filter)
end

.lower(*wins) ⇒ Object



84
85
86
# File 'lib/tkextlib/blt/winop.rb', line 84

def lower(*wins)
  tk_call('::blt::winop', 'lower', *wins)
end

.map(*wins) ⇒ Object



88
89
90
# File 'lib/tkextlib/blt/winop.rb', line 88

def map(*wins)
  tk_call('::blt::winop', 'map', *wins)
end

.move(win, x, y) ⇒ Object



96
97
98
# File 'lib/tkextlib/blt/winop.rb', line 96

def move(win, x, y)
  tk_call('::blt::winop', 'move', win, x, y)
end

.quantize(src, dest, colors) ⇒ Object



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

def quantize(src, dest, colors)
  tk_call('::blt::winop', 'quantize', src, dest, colors)
end

.queryObject



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

def query()
  tk_call('::blt::winop', 'query')
end

.raise(*wins) ⇒ Object



80
81
82
# File 'lib/tkextlib/blt/winop.rb', line 80

def raise(*wins)
  tk_call('::blt::winop', 'raise', *wins)
end

.read_jpeg(file, photo) ⇒ Object



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

def read_jpeg(file, photo)
  tk_call('::blt::winop', 'readjpeg', file, photo)
end

.resample(src, dest, horiz_filter = None, vert_filter = None) ⇒ Object



69
70
71
72
# File 'lib/tkextlib/blt/winop.rb', line 69

def resample(src, dest, horiz_filter=None, vert_filter=None)
  tk_call('::blt::winop', 'resample',
          src, dest, horiz_filter, vert_filter)
end

.snap(win, photo) ⇒ Object



100
101
102
# File 'lib/tkextlib/blt/winop.rb', line 100

def snap(win, photo)
  tk_call('::blt::winop', 'snap', win, photo)
end

.subsample(src, dest, x, y, width, height, horiz_filter = None, vert_filter = None) ⇒ Object



74
75
76
77
78
# File 'lib/tkextlib/blt/winop.rb', line 74

def subsample(src, dest, x, y, width, height,
              horiz_filter=None, vert_filter=None)
  tk_call('::blt::winop', 'subsample',
          src, dest, x, y, width, height, horiz_filter, vert_filter)
end

.unmap(*wins) ⇒ Object



92
93
94
# File 'lib/tkextlib/blt/winop.rb', line 92

def unmap(*wins)
  tk_call('::blt::winop', 'unmap', *wins)
end

.warpto(win = None) ⇒ Object Also known as: warp_to



104
105
106
# File 'lib/tkextlib/blt/winop.rb', line 104

def warpto(win = None)
  tk_call('::blt::winop', 'warpto', win)
end