summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-08-15 13:50:48 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-08-15 14:10:24 +0100
commitecb247eb155ff5495a91e32b6e416fd0b6c6a53e (patch)
treefe6ed570cdb90f43eb225236006fbd9e68dc9cb0 /include
parent6a783002e8b17995132fc6334b4e0900c36bf9a0 (diff)
downloadlibnslayout-ecb247eb155ff5495a91e32b6e416fd0b6c6a53e.tar.gz
libnslayout-ecb247eb155ff5495a91e32b6e416fd0b6c6a53e.tar.bz2
Style: Use spaces, not tabs, for alignment.
Tabs are only allowed at the start of a line.
Diffstat (limited to 'include')
-rw-r--r--include/libnslayout/error.h14
-rw-r--r--include/libnslayout/nslayout.h56
2 files changed, 35 insertions, 35 deletions
diff --git a/include/libnslayout/error.h b/include/libnslayout/error.h
index ee8a428..5c09179 100644
--- a/include/libnslayout/error.h
+++ b/include/libnslayout/error.h
@@ -43,7 +43,7 @@ typedef enum nsl_error {
/**
* Get error provenance.
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return error provenance
*/
static inline nsl_error nsl_error_provenance(nsl_error err)
@@ -55,7 +55,7 @@ static inline nsl_error nsl_error_provenance(nsl_error err)
/**
* Check if error is from libnslayout
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libnslayout
*/
static inline bool nsl_error_is_layout(nsl_error err)
@@ -67,7 +67,7 @@ static inline bool nsl_error_is_layout(nsl_error err)
/**
* Check if error is from libdom
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libdom
*/
static inline bool nsl_error_is_libdom(nsl_error err)
@@ -78,7 +78,7 @@ static inline bool nsl_error_is_libdom(nsl_error err)
/**
* Check if error is from libcss
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libcss
*/
static inline bool nsl_error_is_libcss(nsl_error err)
@@ -89,7 +89,7 @@ static inline bool nsl_error_is_libcss(nsl_error err)
/**
* Turn libnslayout return code into libnslayout error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return libnslayout error
*/
static inline nsl_error nsl_error_to_layout(nsl_error err)
@@ -100,7 +100,7 @@ static inline nsl_error nsl_error_to_layout(nsl_error err)
/**
* Turn libnslayout return code into libdom error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return dom exception
*/
static inline dom_exception nsl_error_to_libdom(nsl_error err)
@@ -111,7 +111,7 @@ static inline dom_exception nsl_error_to_libdom(nsl_error err)
/**
* Turn libnslayout return code into libcss error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return libcss error
*/
static inline css_error nsl_error_to_libcss(nsl_error err)
diff --git a/include/libnslayout/nslayout.h b/include/libnslayout/nslayout.h
index 551e550..6a95412 100644
--- a/include/libnslayout/nslayout.h
+++ b/include/libnslayout/nslayout.h
@@ -138,7 +138,7 @@ nsl_error nsl_node_event_set_intrinsic_dimensions(
/**
* Client calls to tell NSLayout that everything requires reselection.
*
- * \param[in]layout The layout to who's selection context has changed.
+ * \param[in] layout The layout to who's selection context has changed.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_selection_context_updated(
@@ -162,9 +162,9 @@ nsl_error nsl_fini(void);
/**
* LibNSLayout client callback function
*
- * \param[in] layout The layout we're making a request for.
- * \param[in] pw The client's private data for this layout.
- * \param[in,out] req The request details.
+ * \param[in] layout The layout we're making a request for.
+ * \param[in] pw The client's private data for this layout.
+ * \param[in,out] req The request details.
* \return NSL_OK on success, appropriate error otherwise.
*/
typedef nsl_error (*nsl_callback)(
@@ -175,12 +175,12 @@ typedef nsl_error (*nsl_callback)(
/**
* Create a Layout object for a given DOM
*
- * \param[in] doc The LibDOM document to build a layout for.
- * \param[in] css_ctx The LibCSS selection context for the document.
- * \param[in] media The LibCSS media to use when selecting.
- * \param[in] cb The client's private data for this layout.
- * \param[in] pw The client's private data for this layout.
- * \param[out] layout Returns a pointer to the created layout object.
+ * \param[in] doc The LibDOM document to build a layout for.
+ * \param[in] css_ctx The LibCSS selection context for the document.
+ * \param[in] media The LibCSS media to use when selecting.
+ * \param[in] cb The client's private data for this layout.
+ * \param[in] pw The client's private data for this layout.
+ * \param[out] layout Returns a pointer to the created layout object.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_create(
@@ -194,7 +194,7 @@ nsl_error nsl_layout_create(
/**
* Destroy a Layout object
*
- * \param[in] layout Returns a pointer to the created layout object.
+ * \param[in] layout Returns a pointer to the created layout object.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_destroy(
@@ -207,10 +207,10 @@ nsl_error nsl_layout_destroy(
* data structures for the document, but will not start to position
* things and will not emit render lists.
*
- * \param[in] layout Layout to set viewport for.
- * \param[in] viewport Viewport dimensions and offset.
- * \param[in] scale Rendering scale.
- * \param[in] dpi DPI of render target with viewport.
+ * \param[in] layout Layout to set viewport for.
+ * \param[in] viewport Viewport dimensions and offset.
+ * \param[in] scale Rendering scale.
+ * \param[in] dpi DPI of render target with viewport.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_update_viewport(
@@ -222,9 +222,9 @@ nsl_error nsl_update_viewport(
/**
* Find the area occupied by element.
*
- * \param[in] layout Layout to locate an element in.
- * \param[in] element Element to get area of.
- * \param[out] area Returns area with position relative to viewport.
+ * \param[in] layout Layout to locate an element in.
+ * \param[in] element Element to get area of.
+ * \param[out] area Returns area with position relative to viewport.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_element_get_location(
@@ -235,10 +235,10 @@ nsl_error nsl_element_get_location(
/**
* Find the top-most element at a given point, in terms of z-order.
*
- * \param[in] layout Layout to find an element in.
- * \param[in] x Mouse x-coordinate (viewport relative).
- * \param[in] y Mouse y-coordinate (viewport relative).
- * \param[out] element Returns the element we found.
+ * \param[in] layout Layout to find an element in.
+ * \param[in] x Mouse x-coordinate (viewport relative).
+ * \param[in] y Mouse y-coordinate (viewport relative).
+ * \param[out] element Returns the element we found.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_element_at_point(
@@ -250,10 +250,10 @@ nsl_error nsl_element_at_point(
/**
* Mark an element (or part of it) as needing redraw.
*
- * \param[in] layout Layout to indicate redraw is required for.
- * \param[in] element Element to mark as needing redraw.
- * \param[in] rel_area Area of element to redraw relative to object's top-left.
- * May be NULL, to redraw whole element.
+ * \param[in] layout Layout to indicate redraw is required for.
+ * \param[in] element Element to mark as needing redraw.
+ * \param[in] rel_area Area of element to redraw relative to object's top-left.
+ * May be NULL, to redraw whole element.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_dirty_element(
@@ -264,8 +264,8 @@ nsl_error nsl_layout_dirty_element(
/**
* Mark an area as needing redraw.
*
- * \param[in] layout Layout to indicate redraw is required for.
- * \param[in] area Area to redraw relative to viewport's top-left.
+ * \param[in] layout Layout to indicate redraw is required for.
+ * \param[in] area Area to redraw relative to viewport's top-left.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_dirty_area(