blob: 9657673148fd9538c1391d8183c91a533222ee27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Sample Code: class.lua File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Sample Code
 <span id="projectnumber">0.1 20120518</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">class.lua File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>enables classes in lua
<a href="#details">More...</a></p>
<p><a href="class_8lua_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa054d3d223ac0f3f6f0ec350708f9361"><td class="memItemLeft" align="right" valign="top">function </td><td class="memItemRight" valign="bottom"><a class="el" href="class_8lua.html#aa054d3d223ac0f3f6f0ec350708f9361">class</a> (BaseClass, ClassInitialiser)</td></tr>
<tr class="memdesc:aa054d3d223ac0f3f6f0ec350708f9361"><td class="mdescLeft"> </td><td class="mdescRight">``declare'' as class <a href="#aa054d3d223ac0f3f6f0ec350708f9361"></a><br/></td></tr>
<tr class="separator:aa054d3d223ac0f3f6f0ec350708f9361"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>enables classes in lua </p>
<p>Definition in file <a class="el" href="class_8lua_source.html">class.lua</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aa054d3d223ac0f3f6f0ec350708f9361"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">function class </td>
<td>(</td>
<td class="paramtype">BaseClass </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">ClassInitialiser </td>
<td class="paramname"> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>``declare'' as class </p>
<p>use as: </p>
<div class="fragment"><div class="line">TWibble = <span class="keyword">class</span>()</div>
<div class="line"><span class="keyword">function</span> TWibble.init(instance)</div>
<div class="line"> <span class="keyword">self</span>.instance = instance</div>
<div class="line"> -- more stuff here</div>
<div class="line">end</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="class_8lua_source.html#l00036">36</a> of file <a class="el" href="class_8lua_source.html">class.lua</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 7 2013 10:03:43 for Sample Code by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
|