Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Ruby_bindings/MDRubySequence.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download) (as text)
Sat Sep 3 06:22:57 2011 UTC (12 years, 8 months ago) by toshinagata1964
File MIME type: text/x-chdr
File size: 1338 byte(s)
initial import
1 /*
2 * MDRubyDocument.h
3 * Alchemusica
4 *
5 * Created by Toshi Nagata on 08/03/21.
6 * Copyright 2008-2011 Toshi Nagata. All rights reserved.
7 *
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 */
17
18 #ifndef __MDRubySequence__
19 #define __MDRubySequence__
20
21 #include <ruby.h>
22
23 // Sequence class
24 extern VALUE rb_cMRSequence;
25
26 @class MyDocument;
27
28 // MyDocument <-> Sequence
29 MyDocument *MyDocumentFromMRSequenceValue(VALUE val);
30 VALUE MRSequenceFromMyDocument(MyDocument *doc);
31
32 VALUE MRSequence_Current(VALUE self);
33
34 VALUE MRSequence_GlobalSettings(VALUE self, VALUE key);
35 VALUE MRSequence_SetGlobalSettings(VALUE self, VALUE key, VALUE value);
36
37 void MRSequenceInitClass(void);
38
39 // Execute a script in the context of "class Sequence ..."
40 int MDRubyLoadScriptUnderMRSequence(const char *fname);
41
42 // Call a method of Sequence
43 void MDRubyCallMethodOfMRSequence(MyDocument *doc, const char *method, int argc, VALUE *argv);
44
45 #endif /* __MDRubySequence__ */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26