rmagick 2.12.2 → 2.13.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

@@ -1,13 +1,14 @@
1
- /* $Id: rmenum.c,v 1.8 2009/09/05 20:01:08 rmagick Exp $ */
2
- /*============================================================================\
3
- | Copyright (C) 2009 by Timothy P. Hunter
4
- | Name: rmenum.c
5
- | Author: Tim Hunter
6
- | Purpose: Enumeration methods
7
- \============================================================================*/
8
-
9
-
10
-
1
+ /**************************************************************************//**
2
+ * Enumeration methods.
3
+ *
4
+ * Copyright © 2002 - 2009 by Timothy P. Hunter
5
+ *
6
+ * Changes since Nov. 2009 copyright © by Benjamin Thomas and Omer Bar-or
7
+ *
8
+ * @file rmenum.c
9
+ * @version $Id: rmenum.c,v 1.9 2009/12/20 02:33:33 baror Exp $
10
+ * @author Tim Hunter
11
+ ******************************************************************************/
11
12
 
12
13
  #include "rmagick.h"
13
14
 
@@ -22,10 +23,14 @@ static VALUE Enum_type_inspect(VALUE);
22
23
 
23
24
 
24
25
 
25
- /*
26
- * Extern: rm_define_enum_type
27
- * Purpose: set up a subclass of Enum
28
- */
26
+ /**
27
+ * Set up a subclass of Enum.
28
+ *
29
+ * No Ruby usage (internal function)
30
+ *
31
+ * @param tag the name of the subclass
32
+ * @return the subclass
33
+ */
29
34
  VALUE
30
35
  rm_define_enum_type(const char *tag)
31
36
  {
@@ -40,10 +45,16 @@ rm_define_enum_type(const char *tag)
40
45
  }
41
46
 
42
47
 
43
- /*
44
- Extern: rm_enum_new (1.8)
45
- Purpose: Construct a new Enum subclass instance
46
- */
48
+ /**
49
+ * Construct a new Enum subclass instance.
50
+ *
51
+ * No Ruby usage (internal function)
52
+ *
53
+ * @param class the subclass
54
+ * @param sym the symbol
55
+ * @param val the value for the symbol
56
+ * @return a new instance of class
57
+ */
47
58
  VALUE
48
59
  rm_enum_new(VALUE class, VALUE sym, VALUE val)
49
60
  {
@@ -55,10 +66,14 @@ rm_enum_new(VALUE class, VALUE sym, VALUE val)
55
66
  }
56
67
 
57
68
 
58
- /*
59
- Extern: Enum_alloc (1.8)
60
- Purpose: Enum class alloc function
61
- */
69
+ /**
70
+ * Enum class alloc function.
71
+ *
72
+ * No Ruby usage (internal function)
73
+ *
74
+ * @param class the Ruby class to use
75
+ * @return a new enumerator
76
+ */
62
77
  VALUE
63
78
  Enum_alloc(VALUE class)
64
79
  {
@@ -71,12 +86,19 @@ Enum_alloc(VALUE class)
71
86
  }
72
87
 
73
88
 
74
- /*
75
- Method: Enum#===
76
- Purpose: "Case equal" operator for Enum
77
- Returns: true or false
78
- Notes: Yes, I know "case equal" is a misnomer.
79
- */
89
+ /**
90
+ * "Case equal" operator for Enum.
91
+ *
92
+ * Ruby usage:
93
+ * - @verbatim Enum#=== @endverbatim
94
+ *
95
+ * Notes:
96
+ * - Yes, I know "case equal" is a misnomer.
97
+ *
98
+ * @param self this object
99
+ * @param other the other object
100
+ * @return true or false
101
+ */
80
102
  VALUE
81
103
  Enum_case_eq(VALUE self, VALUE other)
82
104
  {
@@ -93,10 +115,17 @@ Enum_case_eq(VALUE self, VALUE other)
93
115
  }
94
116
 
95
117
 
96
- /*
97
- Method: Enum#initialize
98
- Purpose: Initialize a new Enum instance
99
- */
118
+ /**
119
+ * Initialize a new Enum instance.
120
+ *
121
+ * Ruby usage:
122
+ * - @verbatim Enum#initialize(sym,val) @endverbatim
123
+ *
124
+ * @param self this object
125
+ * @param sym the symbol
126
+ * @param val the value for the symbol
127
+ * @return self
128
+ */
100
129
  VALUE
101
130
  Enum_initialize(VALUE self, VALUE sym, VALUE val)
102
131
  {
@@ -110,10 +139,15 @@ Enum_initialize(VALUE self, VALUE sym, VALUE val)
110
139
  }
111
140
 
112
141
 
113
- /*
114
- Method: Enum#to_i
115
- Purpose: Return the value of an enum
116
- */
142
+ /**
143
+ * Return the value of an enum.
144
+ *
145
+ * Ruby usage:
146
+ * - @verbatim Enum#to_i @endverbatim
147
+ *
148
+ * @param self this object
149
+ * @return this object's value
150
+ */
117
151
  VALUE
118
152
  Enum_to_i(VALUE self)
119
153
  {
@@ -124,12 +158,19 @@ Enum_to_i(VALUE self)
124
158
  }
125
159
 
126
160
 
127
- /*
128
- Method: Enum#<=>
129
- Purpose: Support Comparable module in Enum
130
- Returns: -1, 0, 1, or nil
131
- Notes: Enums must be instances of the same class to be equal.
132
- */
161
+ /**
162
+ * Support Comparable module in Enum.
163
+ *
164
+ * Ruby usage:
165
+ * - @verbatim Enum#<=> @endverbatim
166
+ *
167
+ * Notes:
168
+ * - Enums must be instances of the same class to be equal.
169
+ *
170
+ * @param self this object
171
+ * @param other the other object
172
+ * @return -1, 0, 1, or nil
173
+ */
133
174
  VALUE
134
175
  Enum_spaceship(VALUE self, VALUE other)
135
176
  {
@@ -153,10 +194,15 @@ Enum_spaceship(VALUE self, VALUE other)
153
194
  }
154
195
 
155
196
 
156
- /*
157
- Method: Enum#to_s
158
- Purpose: Return the name of an enum
159
- */
197
+ /**
198
+ * Return the name of an enum.
199
+ *
200
+ * Ruby usage:
201
+ * - @verbatim Enum#to_s @endverbatim
202
+ *
203
+ * @param self this object
204
+ * @return the name
205
+ */
160
206
  VALUE
161
207
  Enum_to_s(VALUE self)
162
208
  {
@@ -167,10 +213,17 @@ Enum_to_s(VALUE self)
167
213
  }
168
214
 
169
215
 
170
- /*
171
- * Method: xxx#initialize
172
- * Purpose: initialize method for all Enum subclasses
173
- */
216
+ /**
217
+ * Initialize method for all Enum subclasses.
218
+ *
219
+ * Ruby usage:
220
+ * - @verbatim xxx#initialize(sym,val) @endverbatim
221
+ *
222
+ * @param self this object
223
+ * @param sym the symbol
224
+ * @param val the value of the symbol
225
+ * @return self
226
+ */
174
227
  VALUE
175
228
  Enum_type_initialize(VALUE self, VALUE sym, VALUE val)
176
229
  {
@@ -193,10 +246,15 @@ Enum_type_initialize(VALUE self, VALUE sym, VALUE val)
193
246
  }
194
247
 
195
248
 
196
- /*
197
- * Method: xxx#inspect
198
- * Purpose: Enum subclass #inspect
199
- */
249
+ /**
250
+ * Enum subclass #inspect.
251
+ *
252
+ * Ruby usage:
253
+ * - @verbatim xxx#inspect @endverbatim
254
+ *
255
+ * @param self this object
256
+ * @return string representation of self
257
+ */
200
258
  static VALUE
201
259
  Enum_type_inspect(VALUE self)
202
260
  {
@@ -210,11 +268,19 @@ Enum_type_inspect(VALUE self)
210
268
  }
211
269
 
212
270
 
213
- /*
214
- * Method: xxx.values
215
- * Purpose: Behaves like #each if a block is present, otherwise like #to_a.
216
- * Notes: defined for each Enum subclass
217
- */
271
+ /**
272
+ * Behaves like #each if a block is present, otherwise like #to_a.
273
+ *
274
+ * Ruby usage:
275
+ * - @verbatim xxx.values @endverbatim
276
+ * - @verbatim xxx.values {|v| } @endverbatim
277
+ *
278
+ * Notes:
279
+ * - Defined for each Enum subclass
280
+ *
281
+ * @param class the subclass
282
+ * @return iterator over values if given block, a copy of the values otherwise
283
+ */
218
284
  static VALUE
219
285
  Enum_type_values(VALUE class)
220
286
  {
@@ -247,10 +313,14 @@ Enum_type_values(VALUE class)
247
313
  }
248
314
 
249
315
 
250
- /*
251
- Extern: ClassType_new
252
- Purpose: Construct a ClassType enum object for the specified value
253
- */
316
+ /**
317
+ * Construct a ClassType enum object for the specified value.
318
+ *
319
+ * No Ruby usage (internal function)
320
+ *
321
+ * @param cls the class type
322
+ * @return a new enumerator
323
+ */
254
324
  VALUE
255
325
  ClassType_new(ClassType cls)
256
326
  {
@@ -274,10 +344,14 @@ ClassType_new(ClassType cls)
274
344
  }
275
345
 
276
346
 
277
- /*
278
- Extern: ColorspaceType_new
279
- Purpose: construct a ColorspaceType enum object for the specified value
280
- */
347
+ /**
348
+ * Construct a ColorspaceType enum object for the specified value.
349
+ *
350
+ * No Ruby usage (internal function)
351
+ *
352
+ * @param cs the ColorspaceType
353
+ * @return a new ColorspaceType enumerator
354
+ */
281
355
  VALUE
282
356
  ColorspaceType_new(ColorspaceType cs)
283
357
  {
@@ -362,10 +436,14 @@ ColorspaceType_new(ColorspaceType cs)
362
436
  }
363
437
 
364
438
 
365
- /*
366
- Static: CompositeOperator_new
367
- Purpose: return the name of a CompositeOperator enum as a string
368
- */
439
+ /**
440
+ * Return the name of a CompositeOperator enum as a string.
441
+ *
442
+ * No Ruby usage (internal function)
443
+ *
444
+ * @param op the CompositeOperator
445
+ * @return the name
446
+ */
369
447
  static const char *
370
448
  CompositeOperator_name(CompositeOperator op)
371
449
  {
@@ -457,10 +535,14 @@ CompositeOperator_name(CompositeOperator op)
457
535
  }
458
536
 
459
537
 
460
- /*
461
- External: CompositeOperator_new
462
- Purpose: Construct a CompositeOperator enum object for the specified value
463
- */
538
+ /**
539
+ * Construct a CompositeOperator enum object for the specified value.
540
+ *
541
+ * No Ruby usage (internal function)
542
+ *
543
+ * @param op the CompositeOperator
544
+ * @return a new CompositeOperator enumerator
545
+ */
464
546
  VALUE
465
547
  CompositeOperator_new(CompositeOperator op)
466
548
  {
@@ -469,10 +551,14 @@ CompositeOperator_new(CompositeOperator op)
469
551
  }
470
552
 
471
553
 
472
- /*
473
- Static: CompressionType_name
474
- Purpose: Return the name of a CompressionType enum as a string
475
- */
554
+ /**
555
+ * Return the name of a CompressionType enum as a string.
556
+ *
557
+ * No Ruby usage (internal function)
558
+ *
559
+ * @param ct the CompressionType
560
+ * @return the name
561
+ */
476
562
  static const char *
477
563
  CompressionType_name(CompressionType ct)
478
564
  {
@@ -519,10 +605,14 @@ CompressionType_name(CompressionType ct)
519
605
  }
520
606
 
521
607
 
522
- /*
523
- * External: CompressionType_new
524
- Purpose: Construct a CompressionType enum object for the specified value
525
- */
608
+ /**
609
+ * Construct a CompressionType enum object for the specified value.
610
+ *
611
+ * No Ruby usage (internal function)
612
+ *
613
+ * @param ct the CompressionType
614
+ * @return a new CompressionType enumerator
615
+ */
526
616
  VALUE
527
617
  CompressionType_new(CompressionType ct)
528
618
  {
@@ -531,10 +621,14 @@ CompressionType_new(CompressionType ct)
531
621
  }
532
622
 
533
623
 
534
- /*
535
- Static: DisposeType_name
536
- Purpose: Return the name of a DisposeType enum as a string
537
- */
624
+ /**
625
+ * Return the name of a DisposeType enum as a string.
626
+ *
627
+ * No Ruby usage (internal function)
628
+ *
629
+ * @param type the DisposeType
630
+ * @return the name
631
+ */
538
632
  static const char *
539
633
  DisposeType_name(DisposeType type)
540
634
  {
@@ -550,10 +644,14 @@ DisposeType_name(DisposeType type)
550
644
  }
551
645
 
552
646
 
553
- /*
554
- External: DisposeType.new
555
- Purpose: Construct a DisposeType enum object for the specified value..new
556
- */
647
+ /**
648
+ * Construct a DisposeType enum object for the specified value..new.
649
+ *
650
+ * No Ruby usage (internal function)
651
+ *
652
+ * @param type the DisposeType
653
+ * @return a new DisposeType enumerator
654
+ */
557
655
  VALUE
558
656
  DisposeType_new(DisposeType type)
559
657
  {
@@ -562,10 +660,14 @@ DisposeType_new(DisposeType type)
562
660
  }
563
661
 
564
662
 
565
- /*
566
- Static: FilterTypes_name
567
- Purpose: Return the name of a FilterTypes enum as a string
568
- */
663
+ /**
664
+ * Return the name of a FilterTypes enum as a string.
665
+ *
666
+ * No Ruby usage (internal function)
667
+ *
668
+ * @param type the FilterTypes
669
+ * @return the name
670
+ */
569
671
  static const char *
570
672
  FilterTypes_name(FilterTypes type)
571
673
  {
@@ -616,10 +718,14 @@ FilterTypes_name(FilterTypes type)
616
718
  }
617
719
 
618
720
 
619
- /*
620
- External: FilterTypes.new
621
- Purpose: Construct an FilterTypes enum object for the specified value
622
- */
721
+ /**
722
+ * Construct an FilterTypes enum object for the specified value.
723
+ *
724
+ * No Ruby usage (internal function)
725
+ *
726
+ * @param type the FilterTypes
727
+ * @return a new FilterTypes enumerator
728
+ */
623
729
  VALUE
624
730
  FilterTypes_new(FilterTypes type)
625
731
  {
@@ -628,10 +734,14 @@ FilterTypes_new(FilterTypes type)
628
734
  }
629
735
 
630
736
 
631
- /*
632
- Static: EndianType_name
633
- Purpose: Return the name of a EndianType enum as a string
634
- */
737
+ /**
738
+ * Return the name of a EndianType enum as a string.
739
+ *
740
+ * No Ruby usage (internal function)
741
+ *
742
+ * @param type the EndianType
743
+ * @return the name
744
+ */
635
745
  static const char *
636
746
  EndianType_name(EndianType type)
637
747
  {
@@ -645,10 +755,14 @@ EndianType_name(EndianType type)
645
755
  }
646
756
 
647
757
 
648
- /*
649
- External: EndianType.new
650
- Purpose: Construct an EndianType enum object
651
- */
758
+ /**
759
+ * Construct an EndianType enum object.
760
+ *
761
+ * No Ruby usage (internal function)
762
+ *
763
+ * @param type the EndianType
764
+ * @return a new EndianType enumerator
765
+ */
652
766
  VALUE
653
767
  EndianType_new(EndianType type)
654
768
  {
@@ -657,10 +771,14 @@ EndianType_new(EndianType type)
657
771
  }
658
772
 
659
773
 
660
- /*
661
- Static: GravityType_name
662
- Purpose: Return the name of a GravityType enum as a string
663
- */
774
+ /**
775
+ * Return the name of a GravityType enum as a string.
776
+ *
777
+ * No Ruby usage (internal function)
778
+ *
779
+ * @param type the GravityType
780
+ * @return the name
781
+ */
664
782
  static const char *
665
783
  GravityType_name(GravityType type)
666
784
  {
@@ -684,10 +802,14 @@ GravityType_name(GravityType type)
684
802
  }
685
803
 
686
804
 
687
- /*
688
- External: GravityType.new
689
- Purpose: Construct an GravityType enum object for the specified value
690
- */
805
+ /**
806
+ * Construct an GravityType enum object for the specified value.
807
+ *
808
+ * No Ruby usage (internal function)
809
+ *
810
+ * @param type the GravityType
811
+ * @return a new GravityType enumerator
812
+ */
691
813
  VALUE
692
814
  GravityType_new(GravityType type)
693
815
  {
@@ -696,10 +818,14 @@ GravityType_new(GravityType type)
696
818
  }
697
819
 
698
820
 
699
- /*
700
- Static: ImageType_name
701
- Purpose: Return the name of a ImageType enum as a string
702
- */
821
+ /**
822
+ * Return the name of a ImageType enum as a string.
823
+ *
824
+ * No Ruby usage (internal function)
825
+ *
826
+ * @param type the ImageType
827
+ * @return the name
828
+ */
703
829
  static const char *
704
830
  ImageType_name(ImageType type)
705
831
  {
@@ -723,10 +849,14 @@ ImageType_name(ImageType type)
723
849
  }
724
850
 
725
851
 
726
- /*
727
- External: ImageType.new
728
- Purpose: Construct an ImageType enum object for the specified value
729
- */
852
+ /**
853
+ * Construct an ImageType enum object for the specified value.
854
+ *
855
+ * No Ruby usage (internal function)
856
+ *
857
+ * @param type the ImageType
858
+ * @return a new ImageType enumerator
859
+ */
730
860
  VALUE
731
861
  ImageType_new(ImageType type)
732
862
  {
@@ -735,10 +865,14 @@ ImageType_new(ImageType type)
735
865
  }
736
866
 
737
867
 
738
- /*
739
- Static: InterlaceType_name
740
- Purpose: Return the name of a InterlaceType enum as a string
741
- */
868
+ /**
869
+ * Return the name of a InterlaceType enum as a string.
870
+ *
871
+ * No Ruby usage (internal function)
872
+ *
873
+ * @param interlace the InterlaceType
874
+ * @return the name
875
+ */
742
876
  static const char *
743
877
  InterlaceType_name(InterlaceType interlace)
744
878
  {
@@ -758,10 +892,14 @@ InterlaceType_name(InterlaceType interlace)
758
892
  }
759
893
 
760
894
 
761
- /*
762
- External: InterlaceType_new
763
- Purpose: Construct an InterlaceType enum object for the specified value.
764
- */
895
+ /**
896
+ * Construct an InterlaceType enum object for the specified value.
897
+ *
898
+ * No Ruby usage (internal function)
899
+ *
900
+ * @param interlace the InterlaceType
901
+ * @return a new InterlaceType enumerator
902
+ */
765
903
  VALUE
766
904
  InterlaceType_new(InterlaceType interlace)
767
905
  {
@@ -770,10 +908,14 @@ InterlaceType_new(InterlaceType interlace)
770
908
  }
771
909
 
772
910
 
773
- /*
774
- Static: InterpolatePixelMethod_name
775
- Purpose: Return the name of a InterpolatePixelMethod enum as a string
776
- */
911
+ /**
912
+ * Return the name of a InterpolatePixelMethod enum as a string.
913
+ *
914
+ * No Ruby usage (internal function)
915
+ *
916
+ * @param interpolate the InterpolatePixelMethod
917
+ * @return the name
918
+ */
777
919
  static const char *
778
920
  InterpolatePixelMethod_name(InterpolatePixelMethod interpolate)
779
921
  {
@@ -794,10 +936,14 @@ InterpolatePixelMethod_name(InterpolatePixelMethod interpolate)
794
936
  }
795
937
 
796
938
 
797
- /*
798
- External: InterpolatePixelMethod_new
799
- Purpose: Construct an InterpolatePixelMethod enum object for the specified value.
800
- */
939
+ /**
940
+ * Construct an InterpolatePixelMethod enum object for the specified value.
941
+ *
942
+ * No Ruby usage (internal function)
943
+ *
944
+ * @param interpolate the InterpolatePixelMethod
945
+ * @return a new InterpolatePixelMethod enumerator
946
+ */
801
947
  VALUE
802
948
  InterpolatePixelMethod_new(InterpolatePixelMethod interpolate)
803
949
  {
@@ -806,10 +952,14 @@ InterpolatePixelMethod_new(InterpolatePixelMethod interpolate)
806
952
  }
807
953
 
808
954
 
809
- /*
810
- External: MagickLayerMethod_new
811
- Purpose: Construct an MagickLayerMethod enum object for the specified value.
812
- */
955
+ /**
956
+ * Return the name of a MagickLayerMethod enum as a string.
957
+ *
958
+ * No Ruby usage (internal function)
959
+ *
960
+ * @param method the MagickLayerMethod
961
+ * @return the name
962
+ */
813
963
  static const char *
814
964
  LAYERMETHODTYPE_NAME(LAYERMETHODTYPE method)
815
965
  {
@@ -846,6 +996,14 @@ LAYERMETHODTYPE_NAME(LAYERMETHODTYPE method)
846
996
  }
847
997
 
848
998
 
999
+ /**
1000
+ * Construct an MagickLayerMethod enum object for the specified value.
1001
+ *
1002
+ * No Ruby usage (internal function)
1003
+ *
1004
+ * @param method the MagickLayerMethod
1005
+ * @return a new MagickLayerMethod enumerator
1006
+ */
849
1007
  VALUE
850
1008
  LAYERMETHODTYPE_NEW(LAYERMETHODTYPE method)
851
1009
  {
@@ -854,10 +1012,14 @@ LAYERMETHODTYPE_NEW(LAYERMETHODTYPE method)
854
1012
  }
855
1013
 
856
1014
 
857
- /*
858
- Static: OrientationType_name
859
- Purpose: Return the name of a OrientationType enum as a string
860
- */
1015
+ /**
1016
+ * Return the name of a OrientationType enum as a string.
1017
+ *
1018
+ * No Ruby usage (internal function)
1019
+ *
1020
+ * @param type the OreintationType
1021
+ * @return the name
1022
+ */
861
1023
  static const char *
862
1024
  OrientationType_name(OrientationType type)
863
1025
  {
@@ -878,10 +1040,14 @@ OrientationType_name(OrientationType type)
878
1040
  }
879
1041
 
880
1042
 
881
- /*
882
- External: OrientationType_new
883
- Purpose: Construct an OrientationType enum object for the specified value.
884
- */
1043
+ /**
1044
+ * Construct an OrientationType enum object for the specified value.
1045
+ *
1046
+ * No Ruby usage (internal function)
1047
+ *
1048
+ * @param type the OrientationType
1049
+ * @return a new OrientationType enumerator
1050
+ */
885
1051
  VALUE
886
1052
  OrientationType_new(OrientationType type)
887
1053
  {
@@ -890,10 +1056,14 @@ OrientationType_new(OrientationType type)
890
1056
  }
891
1057
 
892
1058
 
893
- /*
894
- Static: RenderingIntent_name
895
- Purpose: Return the name of a RenderingIntent enum as a string
896
- */
1059
+ /**
1060
+ * Return the name of a RenderingIntent enum as a string.
1061
+ *
1062
+ * No Ruby usage (internal function)
1063
+ *
1064
+ * @param intent the RenderingIntent
1065
+ * @return the name
1066
+ */
897
1067
  static const char *
898
1068
  RenderingIntent_name(RenderingIntent intent)
899
1069
  {
@@ -910,10 +1080,14 @@ RenderingIntent_name(RenderingIntent intent)
910
1080
  }
911
1081
 
912
1082
 
913
- /*
914
- External: RenderingIntent_new
915
- Purpose: Construct an RenderingIntent enum object for the specified value.
916
- */
1083
+ /**
1084
+ * Construct an RenderingIntent enum object for the specified value.
1085
+ *
1086
+ * No Ruby usage (internal function)
1087
+ *
1088
+ * @param intent the RenderingIntent
1089
+ * @return a new RenderingIntent enumerator
1090
+ */
917
1091
  VALUE
918
1092
  RenderingIntent_new(RenderingIntent intent)
919
1093
  {
@@ -922,10 +1096,14 @@ RenderingIntent_new(RenderingIntent intent)
922
1096
  }
923
1097
 
924
1098
 
925
- /*
926
- Static: ResolutionType_name
927
- Purpose: Return the name of a ResolutionType enum as a string
928
- */
1099
+ /**
1100
+ * Return the name of a ResolutionType enum as a string.
1101
+ *
1102
+ * No Ruby usage (internal function)
1103
+ *
1104
+ * @param type the ResolutionType
1105
+ * @return the name
1106
+ */
929
1107
  static const char *
930
1108
  ResolutionType_name(ResolutionType type)
931
1109
  {
@@ -940,10 +1118,14 @@ ResolutionType_name(ResolutionType type)
940
1118
  }
941
1119
 
942
1120
 
943
- /*
944
- External: ResolutionType_new
945
- Purpose: Construct an ResolutionType enum object for the specified value.
946
- */
1121
+ /**
1122
+ * Construct an ResolutionType enum object for the specified value.
1123
+ *
1124
+ * No Ruby usage (internal function)
1125
+ *
1126
+ * @param type the ResolutionType
1127
+ * @return a new ResolutionType enumerator
1128
+ */
947
1129
  VALUE
948
1130
  ResolutionType_new(ResolutionType type)
949
1131
  {
@@ -952,10 +1134,14 @@ ResolutionType_new(ResolutionType type)
952
1134
  }
953
1135
 
954
1136
 
955
- /*
956
- Extern: StorageType_name
957
- Purpose: Return the string representation of a StorageType value
958
- */
1137
+ /**
1138
+ * Return the string representation of a StorageType value.
1139
+ *
1140
+ * No Ruby usage (internal function)
1141
+ *
1142
+ * @param type the StorageType
1143
+ * @return the name
1144
+ */
959
1145
  const char *
960
1146
  StorageType_name(StorageType type)
961
1147
  {
@@ -975,10 +1161,14 @@ StorageType_name(StorageType type)
975
1161
  }
976
1162
 
977
1163
 
978
- /*
979
- Static: VirtualPixelMethod_name
980
- Purpose: Return the string representation of a VirtualPixelMethod value
981
- */
1164
+ /**
1165
+ * Return the string representation of a VirtualPixelMethod value.
1166
+ *
1167
+ * No Ruby usage (internal function)
1168
+ *
1169
+ * @param method the VirtualPixelMethod
1170
+ * @return the name
1171
+ */
982
1172
  static const char *
983
1173
  VirtualPixelMethod_name(VirtualPixelMethod method)
984
1174
  {
@@ -1018,10 +1208,14 @@ VirtualPixelMethod_name(VirtualPixelMethod method)
1018
1208
  }
1019
1209
 
1020
1210
 
1021
- /*
1022
- Static: VirtualPixelMethod_new
1023
- Purpose: Construct a VirtualPixelMethod enum for a specified VirtualPixelMethod value
1024
- */
1211
+ /**
1212
+ * Construct a VirtualPixelMethod enum for a specified VirtualPixelMethod value.
1213
+ *
1214
+ * No Ruby usage (internal function)
1215
+ *
1216
+ * @param style theVirtualPixelMethod
1217
+ * @return a new VirtualPixelMethod enumerator
1218
+ */
1025
1219
  VALUE
1026
1220
  VirtualPixelMethod_new(VirtualPixelMethod style)
1027
1221
  {