vala r1046 - in trunk: . doc/vala
- From: rasa svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1046 - in trunk: . doc/vala
- Date: Sun, 24 Feb 2008 11:36:37 +0000 (GMT)
Author: rasa
Date: Sun Feb 24 11:36:37 2008
New Revision: 1046
URL: http://svn.gnome.org/viewvc/vala?rev=1046&view=rev
Log:
2008-02-24 Raffaele Sandrini <raffaele sandrini ch>
* doc/vala/interfaces.xml: add some interface documentation,
patch by Johannes Schmid
Modified:
trunk/ChangeLog
trunk/doc/vala/interfaces.xml
Modified: trunk/doc/vala/interfaces.xml
==============================================================================
--- trunk/doc/vala/interfaces.xml (original)
+++ trunk/doc/vala/interfaces.xml Sun Feb 24 11:36:37 2008
@@ -1,21 +1,41 @@
<?xml version="1.0"?>
<section id="interfaces">
<h>Interfaces</h>
+ <p>Interfaces can be implemented by classes to provide functionality with a common interface. Each class
+ can implement multiple interface and interfaces can require other interfaces to be implemented.</p>
<section id="declaration">
<h>Interface declarations</h>
- <p>Documentation</p>
+ <blockcode>
+ public interface InterfaceName : RequiredInterface <optional>
+ {
+ <interface members>
+ }
+ </blockcode>
</section>
<section id="methods">
<h>Methods</h>
- <p>Documentation</p>
+ <p>Interfaces can contain abstract and non abstract methods.</p>
+ <blockcode>
+ public abstract void MethodName ();
+ public void MethodName2 ()
+ {
+ <Implementation>
+ }
+ </blockcode>
</section>
- <section id="properties">
- <h>Properties</h>
- <p>Documentation</p>
+ <section id="delegates">
+ <h>Delegates</h>
+ <p>Interfaces can also contain delegates</p>
+ <blockcode>
+ public delegate void DelegateName (void* data);
+ </blockcode>
</section>
<section id="signals">
<h>Signals</h>
- <p>Documentation</p>
+ <p>Signals are also supported by interfaces</p>
+ <blockcode>
+ public signal void SignalName ();
+ </blockcode>
</section>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]