Class: Rug::Conf

Inherits:
Object
  • Object
show all
Defined in:
ext/rug_conf.c

Instance Method Summary collapse

Instance Method Details

#bpp(_bpp) ⇒ Object



17
18
19
20
# File 'ext/rug_conf.c', line 17

VALUE RugConfSetBpp(VALUE self, VALUE _bpp){
  RugConf.bpp = NUM2INT(_bpp);
  return _bpp;
}

#fps(_fps) ⇒ Object



42
43
44
45
# File 'ext/rug_conf.c', line 42

VALUE RugConfSetFPS(VALUE self, VALUE _fps){
  RugConf.frameGap = 1000 / _fps;
  return _fps;
}

#fullscreen(_fullscreen) ⇒ Object



37
38
39
40
# File 'ext/rug_conf.c', line 37

VALUE RugConfSetFullscreen(VALUE self, VALUE _fullscreen){
  RugConf.fullscreen = (TYPE(_fullscreen) == T_TRUE ? 1 : 0);
  return _fullscreen;
}

#height(_height) ⇒ Object



13
14
15
16
# File 'ext/rug_conf.c', line 13

VALUE RugConfSetHeight(VALUE self, VALUE _height){
  RugConf.height = NUM2INT(_height);
  return _height;
}

#key_repeat_delay(_repeatDelay) ⇒ Object



27
28
29
30
# File 'ext/rug_conf.c', line 27

VALUE RugConfSetDelay(VALUE self, VALUE _repeatDelay){
  RugConf.repeatDelay = _repeatDelay;
  return _repeatDelay;
}

#key_repeat_interval(_repeatInterval) ⇒ Object



32
33
34
35
# File 'ext/rug_conf.c', line 32

VALUE RugConfSetInterval(VALUE self, VALUE _repeatInterval){
  RugConf.repeatInterval = _repeatInterval;
  return _repeatInterval;
}

#title(_title) ⇒ Object



22
23
24
25
# File 'ext/rug_conf.c', line 22

VALUE RugConfSetTitle(VALUE self, VALUE _title){
  RugConf.title = _title;
  return _title;
}

#width(_width) ⇒ Object



9
10
11
12
# File 'ext/rug_conf.c', line 9

VALUE RugConfSetWidth(VALUE self, VALUE _width){
  RugConf.width = NUM2INT(_width);
  return _width;
}