Browse Source

Update comments

Michael Ragazzon 6 years ago
parent
commit
8aa7018e56

+ 9 - 10
Include/RmlUi/Core/Context.h

@@ -87,19 +87,19 @@ public:
 
 
 	/// Creates a new, empty document and places it into this context.
 	/// Creates a new, empty document and places it into this context.
 	/// @param[in] tag The document type to create.
 	/// @param[in] tag The document type to create.
-	/// @return The new document, or nullptr if no document could be created. The document is returned with a reference owned by the caller.
+	/// @return The new document, or nullptr if no document could be created.
 	ElementDocument* CreateDocument(const String& tag = "body");
 	ElementDocument* CreateDocument(const String& tag = "body");
 	/// Load a document into the context.
 	/// Load a document into the context.
 	/// @param[in] document_path The path to the document to load.
 	/// @param[in] document_path The path to the document to load.
-	/// @return The loaded document, or nullptr if no document was loaded. The document is returned with a reference owned by the caller.
+	/// @return The loaded document, or nullptr if no document was loaded.
 	ElementDocument* LoadDocument(const String& document_path);
 	ElementDocument* LoadDocument(const String& document_path);
 	/// Load a document into the context.
 	/// Load a document into the context.
 	/// @param[in] document_stream The opened stream, ready to read.
 	/// @param[in] document_stream The opened stream, ready to read.
-	/// @return The loaded document, or nullptr if no document was loaded. The document is returned with a reference owned by the caller.
+	/// @return The loaded document, or nullptr if no document was loaded.
 	ElementDocument* LoadDocument(Stream* document_stream);
 	ElementDocument* LoadDocument(Stream* document_stream);
 	/// Load a document into the context.
 	/// Load a document into the context.
 	/// @param[in] string The string containing the document RML.
 	/// @param[in] string The string containing the document RML.
-	/// @return The loaded document, or nullptr if no document was loaded. The document is returned with a reference owned by the caller.
+	/// @return The loaded document, or nullptr if no document was loaded.
 	ElementDocument* LoadDocumentFromMemory(const String& string);
 	ElementDocument* LoadDocumentFromMemory(const String& string);
 	/// Unload the given document.
 	/// Unload the given document.
 	/// @param[in] document The document to unload.
 	/// @param[in] document The document to unload.
@@ -114,24 +114,23 @@ public:
 
 
 	/// Returns the first document in the context with the given id.
 	/// Returns the first document in the context with the given id.
 	/// @param[in] id The id of the desired document.
 	/// @param[in] id The id of the desired document.
-	/// @return The document (if it was found), or nullptr if no document exists with the ID. The document is returned with a borrowed reference.
+	/// @return The document (if it was found), or nullptr if no document exists with the ID.
 	ElementDocument* GetDocument(const String& id);
 	ElementDocument* GetDocument(const String& id);
 	/// Returns a document in the context by index.
 	/// Returns a document in the context by index.
 	/// @param[in] index The index of the desired document.
 	/// @param[in] index The index of the desired document.
-	/// @return The document (if one exists with this index), or nullptr if the index was invalid. The document is returned with a borrowed reference.
+	/// @return The document (if one exists with this index), or nullptr if the index was invalid.
 	ElementDocument* GetDocument(int index);
 	ElementDocument* GetDocument(int index);
 	/// Returns the number of documents in the context.
 	/// Returns the number of documents in the context.
-	/// @return The number of documents in the context.
 	int GetNumDocuments() const;
 	int GetNumDocuments() const;
 
 
 	/// Returns the hover element.
 	/// Returns the hover element.
-	/// @return The element the mouse cursor is hovering over. The element is returned with a borrowed reference.
+	/// @return The element the mouse cursor is hovering over.
 	Element* GetHoverElement();
 	Element* GetHoverElement();
 	/// Returns the focus element.
 	/// Returns the focus element.
-	/// @return The element with input focus. The element is returned with a borrowed reference.
+	/// @return The element with input focus.
 	Element* GetFocusElement();
 	Element* GetFocusElement();
 	/// Returns the root element that holds all the documents
 	/// Returns the root element that holds all the documents
-	/// @return The root element. The element is returned with a borrowed reference.
+	/// @return The root element.
 	Element* GetRootElement();
 	Element* GetRootElement();
 
 
 	// Returns the youngest descendent of the given element which is under the given point in screen coordinates.
 	// Returns the youngest descendent of the given element which is under the given point in screen coordinates.

+ 3 - 2
Include/RmlUi/Core/ElementDocument.h

@@ -93,7 +93,8 @@ public:
 	void PushToBack();
 	void PushToBack();
 
 
 	/// Show the document.
 	/// Show the document.
-	/// @param[in] focus_flag  Flags controlling the focus, see the 'FocusFlag' description for details.
+	/// @param[in] modal_flag Flags controlling the modal state of the document, see the 'ModalFlag' description for details.
+	/// @param[in] focus_flag Flags controlling the focus, see the 'FocusFlag' description for details.
 	void Show(ModalFlag modal_flag = ModalFlag::None, FocusFlag focus_flag = FocusFlag::Auto);
 	void Show(ModalFlag modal_flag = ModalFlag::None, FocusFlag focus_flag = FocusFlag::Auto);
 	/// Hide the document.
 	/// Hide the document.
 	void Hide();
 	void Hide();
@@ -119,7 +120,7 @@ public:
 
 
 	/// Updates the document, including its layout. Users must call this manually before requesting information such as 
 	/// Updates the document, including its layout. Users must call this manually before requesting information such as 
 	/// size or position of an element if any element in the document was recently changed, unless Context::Update has
 	/// size or position of an element if any element in the document was recently changed, unless Context::Update has
-	/// already been called after the change. This has a perfomance penalty, only call when strictly necessary.
+	/// already been called after the change. This has a perfomance penalty, only call when necessary.
 	void UpdateDocument();
 	void UpdateDocument();
 	
 	
 protected:
 protected:

+ 1 - 0
Include/RmlUi/Core/EventInstancer.h

@@ -51,6 +51,7 @@ public:
 
 
 	/// Instance an event object.
 	/// Instance an event object.
 	/// @param[in] target Target element of this event.
 	/// @param[in] target Target element of this event.
+	/// @param[in] id EventId of this event.
 	/// @param[in] name Name of this event.
 	/// @param[in] name Name of this event.
 	/// @param[in] parameters Additional parameters for this event.
 	/// @param[in] parameters Additional parameters for this event.
 	/// @param[in] interruptible If the event propagation can be stopped.
 	/// @param[in] interruptible If the event propagation can be stopped.