Module: FFI::NCurses::BoolWrappers

Included in:
FFI::NCurses, FFI::NCurses
Defined in:
lib/ffi-ncurses/bool_wrappers.rb

Instance Method Summary collapse

Instance Method Details

#clearok(window_p1, bool2) ⇒ Object



11
12
13
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 11

def clearok(window_p1,bool2)
  _wrapped_clearok(window_p1,to_bool(bool2))
end

#idcok(window_p1, bool2) ⇒ Object



14
15
16
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 14

def idcok(window_p1,bool2)
  _wrapped_idcok(window_p1,to_bool(bool2))
end

#idlok(window_p1, bool2) ⇒ Object



17
18
19
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 17

def idlok(window_p1,bool2)
  _wrapped_idlok(window_p1,to_bool(bool2))
end

#immedok(window_p1, bool2) ⇒ Object



20
21
22
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 20

def immedok(window_p1,bool2)
  _wrapped_immedok(window_p1,to_bool(bool2))
end

#intrflush(window_p1, bool2) ⇒ Object



23
24
25
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 23

def intrflush(window_p1,bool2)
  _wrapped_intrflush(window_p1,to_bool(bool2))
end

#keyok(int1, bool2) ⇒ Object



26
27
28
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 26

def keyok(int1,bool2)
  _wrapped_keyok(int1,to_bool(bool2))
end

#keypad(window_p1, bool2) ⇒ Object



29
30
31
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 29

def keypad(window_p1,bool2)
  _wrapped_keypad(window_p1,to_bool(bool2))
end

#leaveok(window_p1, bool2) ⇒ Object



32
33
34
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 32

def leaveok(window_p1,bool2)
  _wrapped_leaveok(window_p1,to_bool(bool2))
end

#meta(window_p1, bool2) ⇒ Object



35
36
37
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 35

def meta(window_p1,bool2)
  _wrapped_meta(window_p1,to_bool(bool2))
end

#mouse_trafo(int_p1, int_p2, bool3) ⇒ Object



38
39
40
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 38

def mouse_trafo(int_p1,int_p2,bool3)
  _wrapped_mouse_trafo(int_p1,int_p2,to_bool(bool3))
end

#nodelay(window_p1, bool2) ⇒ Object



41
42
43
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 41

def nodelay(window_p1,bool2)
  _wrapped_nodelay(window_p1,to_bool(bool2))
end

#notimeout(window_p1, bool2) ⇒ Object



44
45
46
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 44

def notimeout(window_p1,bool2)
  _wrapped_notimeout(window_p1,to_bool(bool2))
end

#scrollok(window_p1, bool2) ⇒ Object



47
48
49
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 47

def scrollok(window_p1,bool2)
  _wrapped_scrollok(window_p1,to_bool(bool2))
end

#syncok(window_p1, bool2) ⇒ Object



50
51
52
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 50

def syncok(window_p1,bool2)
  _wrapped_syncok(window_p1,to_bool(bool2))
end

#to_bool(bf) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 4

def to_bool(bf)
  if bf == 0
    false
  else
    bf ? true : false
  end
end

#use_env(bool1) ⇒ Object



53
54
55
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 53

def use_env(bool1)
  _wrapped_use_env(to_bool(bool1))
end

#use_extended_names(bool1) ⇒ Object



56
57
58
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 56

def use_extended_names(bool1)
  _wrapped_use_extended_names(to_bool(bool1))
end

#wmouse_trafo(window_p1, int_p2, int_p3, bool4) ⇒ Object



59
60
61
# File 'lib/ffi-ncurses/bool_wrappers.rb', line 59

def wmouse_trafo(window_p1,int_p2,int_p3,bool4)
  _wrapped_wmouse_trafo(window_p1,int_p2,int_p3,to_bool(bool4))
end