X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Flayer.h;h=1e321b0d6003213ca1b8d9a9d942e3631d49593e;hb=8289faf633081201ed763127316009f4a74e700c;hp=f729c4077f83b99761c0ce4aefabd7a02a81b974;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/layer.h b/synfig-core/src/synfig/layer.h index f729c40..1e321b0 100644 --- a/synfig-core/src/synfig/layer.h +++ b/synfig-core/src/synfig/layer.h @@ -162,7 +162,9 @@ class Layer : public Node public: - //! Type that represents a pointer to a layer's constructor + //! Type that represents a pointer to a Layer's constructor. + /*! As a pointer to the constructor, it represents a "factory" of layers. + */ typedef Layer* (*Factory)(); struct BookEntry @@ -188,6 +190,13 @@ public: version(version) { } }; + //! Book of types of layers indexed by layer type name. + /*! While the sifz file is read, each time a new layer entry is found, + ** the factory constructor that the "factory" pointer member of the + ** "BookEntry" struct points to, is called, and a new layer of that type + ** is created. + ** \sa Layer::Factory + */ typedef std::map Book; static void register_in_book(const BookEntry &);