Re: Private virtual methods



On Sun, 5 Aug 2018 at 18:21, Tony Houghton <h realh co uk> wrote:
On Sun, 5 Aug 2018 at 16:51, Emmanuele Bassi <ebassi gmail com> wrote:

[To document/annotate a virtual method with no public function]

The syntax is `StructureName::virtual_function`.

Thanks. Presumably the scanner inspects the class structure and/or code to work out whether you're trying to document a signal or method? 


The syntax for a signal is different: the token before the `::` separator is the type name, as opposed to the structure name; so, it's `GtkButton::clicked`, and `GListModelInterface::get_item()`.

Ciao,
 Emmanuele.

--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]