rubysdl 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/doc-en/mpeg.rsd CHANGED
@@ -581,5 +581,29 @@ total_time
581
581
  DESC
582
582
  not documented yet
583
583
 
584
+ %%
585
+ NAME delete
586
+ MDO MPEG
587
+ TYPE #
588
+ DEP SMPEG
589
+ PURPOSE
590
+
591
+ PROTO
592
+ delete
593
+
594
+ DESC
595
+ not documented yet
584
596
 
597
+ %%
598
+ NAME deleted?
599
+ MDO MPEG
600
+ TYPE #
601
+ DEP SMPEG
602
+ PURPOSE
603
+
604
+ PROTO
605
+ deleted?
606
+
607
+ DESC
608
+ not documented yet
585
609
 
data/doc-en/sdlskk.rsd CHANGED
@@ -379,10 +379,15 @@ str
379
379
  DESC
380
380
  Returns input string.
381
381
 
382
+ NOTES
383
+ If Ruby/SDL m17n support is enabled,
384
+ the string with proper encoding will be returned.
385
+
382
386
  SEEALSO
383
387
  SKK::Context#render_str
384
388
  SKK::Context#clear
385
389
  SKK::Context#clear_text
390
+ SKK.encoding
386
391
 
387
392
  %%
388
393
  NAME render_str
data/doc-en/video.rsd CHANGED
@@ -1236,6 +1236,41 @@ EXCEPTION *
1236
1236
  SEEALSO
1237
1237
  Surface.load_bmp
1238
1238
 
1239
+ %%
1240
+ NAME destroy
1241
+ MOD Surface
1242
+ TYPE #
1243
+ PURPOSE Frees a Surface
1244
+
1245
+ PROTO
1246
+ destroy
1247
+
1248
+ DESC
1249
+ Frees the resource used by a Surface.
1250
+ If a surface is destroyed, all operations are forbidden.
1251
+
1252
+ SEEALSO
1253
+ Surface.new
1254
+ Surface.new_from
1255
+ Surface#destroyed?
1256
+
1257
+ %%
1258
+ NAME destroyed?
1259
+ MOD Surface
1260
+ TYPE #
1261
+ PURPOSE Returns whether surface is destoryed or not.
1262
+ RVAL true/false
1263
+
1264
+ PROTO
1265
+ destroyed?
1266
+
1267
+ DESC
1268
+ Returns whether the surface is destroyed by
1269
+ @[Surface#destroy].
1270
+
1271
+ SEEALSO
1272
+ Surface#destroy
1273
+
1239
1274
  %%
1240
1275
  NAME set_color_key
1241
1276
  MOD Surface
data/doc-en/wm.rsd CHANGED
@@ -38,6 +38,12 @@ setCaption(title, icon)
38
38
  DESC
39
39
  Sets the title-bar and icon name of the display window.
40
40
 
41
+ NOTES
42
+ $[title] and $[icon] must be UTF8 or ASCII string.
43
+
44
+ If Ruby/SDL m17n support is enabled,
45
+ $[title] and $[icon] are converted to UTF8 automatically.
46
+
41
47
  SEEALSO
42
48
  WM.caption
43
49
  WM.icon=
data/doc/cdrom.rsd CHANGED
@@ -427,5 +427,34 @@ DESC
427
427
  SEEALSO
428
428
  CD.frames_to_msf
429
429
 
430
+ %%
431
+ NAME close
432
+ MOD CD
433
+ TYPE #
434
+ PURPOSE CD�ǥХ����򥯥��������ޤ���
435
+
436
+ PROTO
437
+ close
438
+
439
+ DESC
440
+ $[self]�򥯥��������ޤ���
441
+
442
+ SEEALSO
443
+ CD.open
444
+ CD#closed?
445
+
446
+ %%
447
+ NAME closed?
448
+ MOD CD
449
+ TYPE #
450
+ PURPOSE CD�ǥХ����������������줿���ɤ������֤��ޤ���
451
+
452
+ PROTO
453
+ closed?
430
454
 
455
+ DESC
456
+ @[CD#close]�ˤ�äƥǥХ����������������줿���ɤ�����
457
+ �֤��ޤ���
431
458
 
459
+ SEEALSO
460
+ CD#close
data/doc/event.rsd CHANGED
@@ -440,9 +440,12 @@ EXCEPTION
440
440
  ȯ�������ޤ���
441
441
 
442
442
  NOTES
443
+ Ruby 1.8�Ǥ�
443
444
  ���Υ᥽�åɤ�Ƥӥ��٥�Ȥ��ԤäƤ���֤�Ruby�Υ���åɤ�
444
- �ڤ��ؤ��ޤ���Ruby�Υ���åɤϥ桼����٥륹��å�
445
- ������Ǥ���
445
+ �ڤ��ؤ��ޤ���
446
+
447
+ Ruby 1.9�Ǥϥ��٥�Ȥ��ԤäƤ���֤�¾��Ruby�Υ���å�
448
+ ���ڤ��ؤ�뤳�Ȥ���ǽ�Ǥ���
446
449
 
447
450
  SEEALSO
448
451
  Event.poll
data/doc/font.rsd CHANGED
@@ -135,6 +135,40 @@ EXAMPLE
135
135
  SDL::TTF.init
136
136
  font = SDL::TTF.open("font.ttf", 32, 0)
137
137
 
138
+ %%
139
+ NAME close
140
+ TYPE #
141
+ MOD TTF
142
+ DEP SDL_ttf
143
+ PURPOSE �ե���Ȥ򥯥��������ޤ���
144
+
145
+ PROTO
146
+ close
147
+
148
+ DESC
149
+ �ե���Ȥ򥯥�����������Ϣ����꥽������������ޤ���
150
+
151
+ SEEALSO
152
+ TTF#closed?
153
+
154
+ %%
155
+ NAME closed?
156
+ TYPE #
157
+ MOD TTF
158
+ DEP SDL_ttf
159
+ PURPOSE �ե���Ȥ������������줿���ɤ������֤��ޤ���
160
+ RVAL true/false
161
+
162
+ PROTO
163
+ closed?
164
+
165
+ DESC
166
+ �ե���Ȥ�@[TTF#close]�ǥ����������줿���ɤ�����
167
+ �֤��ޤ���
168
+
169
+ SEEALSO
170
+ TTF#close
171
+
138
172
  %%
139
173
  NAME style
140
174
  MOD TTF
@@ -570,7 +604,7 @@ NAME draw_blended_utf8
570
604
  MOD TTF
571
605
  TYPE #
572
606
  DEP SDL_ttf
573
- PURPOSE ʸ����򥢥�ե��ǥ���������ꥢ���������褷�ޤ���
607
+ PURPOSE ʸ����򥢥�ե��֥��ǥ��󥰤ǥ���������ꥢ���������褷�ޤ���
574
608
 
575
609
  PROTO
576
610
  draw_blended_utf8(dest, text, x, y, r, g, b)
@@ -587,6 +621,126 @@ TTF#draw_solid_utf8
587
621
  TTF#draw_shaded_utf8
588
622
  TTF#render_blended_utf8
589
623
 
624
+ %%
625
+ NAME render_solid
626
+ MOD TTF
627
+ TYPE #
628
+ DEP SDL_ttf
629
+ PURPOSE ʸ����������󥰤��������ե������֤��ޤ���
630
+ RVAL SDL::Surface/nil
631
+
632
+ PROTO
633
+ render_solid(text, r, g, b)
634
+ renderSolid(text, r, g, b)
635
+
636
+ DESC
637
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
638
+ @[TTF#render_solid_utf8]��Ʊ���Ǥ���
639
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
640
+
641
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
642
+ ���ˤΤ����ѤǤ��ޤ���
643
+
644
+ %%
645
+ NAME render_shaded
646
+ MOD TTF
647
+ TYPE #
648
+ DEP SDL_ttf
649
+ PURPOSE ʸ����򥢥�������ꥢ���󥰤��ƥ�����󥰤��������ե������֤��ޤ���
650
+ RVAL SDL::Surface/nil
651
+
652
+ PROTO
653
+ render_shaded(text, r, g, b)
654
+ renderShaded(text, r, g, b)
655
+
656
+ DESC
657
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
658
+ @[TTF#render_shaded_utf8]��Ʊ���Ǥ���
659
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
660
+
661
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
662
+ ���ˤΤ����ѤǤ��ޤ���
663
+
664
+ %%
665
+ NAME render_blended
666
+ MOD TTF
667
+ TYPE #
668
+ DEP SDL_ttf
669
+ PURPOSE ʸ����򥢥�ե���Ȥäƥ���������ꥢ�����������ե������֤��ޤ���
670
+ RVAL SDL::Surface/nil
671
+
672
+ PROTO
673
+ render_blended(text, r, g, b)
674
+ renderBlended(text, r, g, b)
675
+
676
+ DESC
677
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
678
+ @[TTF#render_blended_utf8]��Ʊ���Ǥ���
679
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
680
+
681
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
682
+ ���ˤΤ����ѤǤ��ޤ���
683
+
684
+ %%
685
+ NAME draw_solid
686
+ MOD TTF
687
+ TYPE #
688
+ DEP SDL_ttf
689
+ PURPOSE ʸ��������褷�ޤ���
690
+
691
+
692
+ PROTO
693
+ draw_solid(dest, text, r, g, b)
694
+ drawSolid(dest, text, r, g, b)
695
+
696
+ DESC
697
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
698
+ @[TTF#draw_solid_utf8]��Ʊ���Ǥ���
699
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
700
+
701
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
702
+ ���ˤΤ����ѤǤ��ޤ���
703
+
704
+ %%
705
+ NAME draw_shaded
706
+ MOD TTF
707
+ TYPE #
708
+ DEP SDL_ttf
709
+ PURPOSE ʸ����򥢥�������ꥢ�����褷�ޤ���
710
+
711
+
712
+ PROTO
713
+ draw_shaded(dest, text, r, g, b)
714
+ drawShaded(dest, text, r, g, b)
715
+
716
+ DESC
717
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
718
+ @[TTF#draw_shaded_utf8]��Ʊ���Ǥ���
719
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
720
+
721
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
722
+ ���ˤΤ����ѤǤ��ޤ���
723
+
724
+ %%
725
+ NAME draw_blended
726
+ MOD TTF
727
+ TYPE #
728
+ DEP SDL_ttf
729
+ PURPOSE ʸ����򥢥�ե��֥��ǥ��󥰤ǥ���������ꥢ���������褷�ޤ���
730
+
731
+
732
+ PROTO
733
+ draw_blended(dest, text, r, g, b)
734
+ drawBlended(dest, text, r, g, b)
735
+
736
+ DESC
737
+ $[text]��UTF8�Ǥʤ��Ƥ��ɤ����Ȱʳ���
738
+ @[TTF#draw_blended_utf8]��Ʊ���Ǥ���
739
+ $[text]�Υ��󥳡��ɤ�Ŭ�ڤ��Ѵ�����ޤ���
740
+
741
+ ���Υ᥽�åɤ�Ruby 1.9��Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���
742
+ ���ˤΤ����ѤǤ��ޤ���
743
+
590
744
  %%
591
745
  NAME open
592
746
  MOD BMFont
@@ -615,6 +769,41 @@ $[flags]
615
769
  ����� SFont �����Υե���Ȥ��Ф��ƤϻȤ��ޤ���
616
770
  ����򤹤�����褬�����٤��ʤ�ޤ��� @[BMFont#set_color] ��®���ʤ�ޤ���
617
771
 
772
+ %%
773
+ NAME close
774
+ MOD BMFont
775
+ TYPE #
776
+ DEP SGE
777
+ PURPOSE �ե���Ȥ��Ĥ��ޤ���
778
+
779
+ PROTO
780
+ close
781
+
782
+ DESC
783
+ �ӥåȥޥåץե���Ȥ��Ĥ������ݤ��Ƥ���꥽������������ޤ���
784
+
785
+ SEEALSO
786
+ BMFont.open
787
+ BMFont#closed?
788
+
789
+ %%
790
+ NAME closed?
791
+ MOD BMFont
792
+ TYPE #
793
+ DEP SGE
794
+ PURPOSE �ե���Ȥ��Ĥ����Ƥ��뤫�ɤ������֤��ޤ���
795
+ RVAL true/false
796
+
797
+ PROTO
798
+ closed?
799
+
800
+ DESC
801
+ �ӥåȥޥåץե���Ȥ�@[BMFont#close]�ˤ�ä��Ĥ���줿��
802
+ �ɤ������֤��ޤ���
803
+
804
+ SEEALSO
805
+ BMFont#close
806
+
618
807
  %%
619
808
  NAME set_color
620
809
  MOD BMFont
@@ -722,6 +911,38 @@ $[filename]
722
911
  SEEALSO
723
912
  Kanji#add
724
913
 
914
+ %%
915
+ NAME close
916
+ MOD Kanji
917
+ TYPE #
918
+ PURPOSE �ɤߤ�����ե���Ȥ��Ĥ��ޤ���
919
+
920
+ PROTO
921
+ close
922
+
923
+ DESC
924
+ �ɤߤ�����ե���Ȥ��Ĥ������줬���Ƥ���
925
+ �����������ޤ���
926
+
927
+ SEEALSO
928
+ Kanji.open
929
+ Kanji#closed?
930
+
931
+ %%
932
+ NAME closed?
933
+ MOD Kanji
934
+ TYPE #
935
+ PURPOSE �ե���Ȥ��Ĥ������ɤ������֤��ޤ���
936
+
937
+ PROTO
938
+ closed?
939
+
940
+ DESC
941
+ @[Kanji#close]�ǥե���Ȥ��Ĥ������ɤ������֤��ޤ���
942
+
943
+ SEEALSO
944
+ Kanji#close
945
+
725
946
  %%
726
947
  NAME add
727
948
  MOD Kanji
@@ -737,7 +958,7 @@ $[filename]
737
958
  �����ɤߤ��ࡢ�Ȥ��ä����Ȥ��Ǥ��ޤ���
738
959
 
739
960
  SEEALSO
740
- Kanji#open
961
+ Kanji.open
741
962
 
742
963
  %%
743
964
  NAME set_coding_system
@@ -756,6 +977,24 @@ DESC
756
977
  * SDL::Kanji::JIS
757
978
  �ǥե���ȤǤ� SDL::Kanji::JIS �����ꤵ��Ƥ��ޤ���
758
979
 
980
+ %%
981
+ NAME get_coding_system
982
+ MOD Kanji
983
+ TYPE #
984
+ PURPOSE �����ʸ���������֤��ޤ���
985
+
986
+ PROTO
987
+ get_coding_system
988
+ getCodingSystem
989
+
990
+ DESC
991
+ �����ʸ���������֤��ޤ��� �֤��ͤϰʲ��Τ����줫�Ǥ���
992
+
993
+ * SDL::Kanji::SJIS
994
+ * SDL::Kanji::EUC
995
+ * SDL::Kanji::JIS
996
+ �ǥե���ȤǤ� SDL::Kanji::JIS �����ꤵ��Ƥ��ޤ���
997
+
759
998
  %%
760
999
  NAME height
761
1000
  MOD Kanji
@@ -799,7 +1038,7 @@ DESC
799
1038
  Ⱦ��ʸ��1ʸ��������ԥ�����������ޤ���
800
1039
 
801
1040
  SEEALSO
802
- textwidth
1041
+ Kanji#textwidth
803
1042
 
804
1043
  %%
805
1044
  NAME put
@@ -814,6 +1053,10 @@ DESC
814
1053
  $[text] �ǻ��ꤷ��ʸ����� $[surface] �� ($[x], $[y]) �� ($[r], $[g], $[b])
815
1054
  �ǻ��ꤷ���������褷�ޤ���
816
1055
 
1056
+ NOTES
1057
+ Ruby 1.9�Ǥ�Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���¤�
1058
+ ɬ�פ˱����ƥ��󥳡��ǥ��󥰤μ�ư�Ѵ���Ԥ��ޤ���
1059
+
817
1060
  SEEALSO
818
1061
  Kanji#put_tate
819
1062
 
@@ -833,7 +1076,10 @@ $[text]
833
1076
 
834
1077
  ASCIIʸ���ϽĽ񤭤ˤǤ��ޤ���
835
1078
 
1079
+ NOTES
1080
+ Ruby 1.9�Ǥ�Ruby/SDL��m17n��ǽ��ͭ���ˤ��Ƥ���¤�
1081
+ ɬ�פ˱����ƥ��󥳡��ǥ��󥰤μ�ư�Ѵ���Ԥ��ޤ���
1082
+
836
1083
  SEEALSO
837
1084
  Kanji#put
838
1085
 
839
-