summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2006-07-05 14:59:12 +0000
committerMurray Cumming <murrayc@murrayc.com>2006-07-05 14:59:12 +0000
commit1f8c4e9bc512b753c358903418fc6141a2f41636 (patch)
tree8b110392ec061641af6b6fb71ee0c3e5a55a47b2
parent3cfc72222a9e28b8dffbeda1f22c70daae12cb82 (diff)
2006-07-05 Murray Cumming <murrayc@murrayc.com>
* cairomm/cairomm.h: * cairomm/context.h: * cairomm/path.h: * cairomm/scaledfont.h: * cairomm/surface.h: * cairomm/win32_surface.h: * cairomm/xlib_surface.h: Use @ instead of \ for doxygen commands, to be consistent with gtkmm, which uses it because it is the same as JavaDoc, with which some people are already familiar.
-rw-r--r--ChangeLog12
-rw-r--r--cairomm/cairomm.h6
-rw-r--r--cairomm/context.h48
-rw-r--r--cairomm/path.h2
-rw-r--r--cairomm/scaledfont.h26
-rw-r--r--cairomm/surface.h32
-rw-r--r--cairomm/win32_surface.h2
-rw-r--r--cairomm/xlib_surface.h4
8 files changed, 72 insertions, 60 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a9e298..a34f1d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-07-05 Murray Cumming <murrayc@murrayc.com>
+
+ * cairomm/cairomm.h:
+ * cairomm/context.h:
+ * cairomm/path.h:
+ * cairomm/scaledfont.h:
+ * cairomm/surface.h:
+ * cairomm/win32_surface.h:
+ * cairomm/xlib_surface.h: Use @ instead of \ for doxygen
+ commands, to be consistent with gtkmm, which uses it because it is the
+ same as JavaDoc, with which some people are already familiar.
+
2006-07-04 Jonathon Jongsma <jonathon.jongsma@gmail.com>
* Makefile.am: add ability to do snapshot releases to the
diff --git a/cairomm/cairomm.h b/cairomm/cairomm.h
index c838df0..7f78a79 100644
--- a/cairomm/cairomm.h
+++ b/cairomm/cairomm.h
@@ -19,12 +19,12 @@
#ifndef __CAIROMM_H
#define __CAIROMM_H
-/** \mainpage Cairomm: A C++ wrapper for the cairo graphics library
+/** @mainpage Cairomm: A C++ wrapper for the cairo graphics library
*
- * \section License
+ * @section License
* Cairomm is available under the terms of the LGPL license
*
- * \section Introduction
+ * @section Introduction
* If you're just beginning to learn cairomm, a good place to start is with the
* Cairo::Surface and Cairo::Context classes. In general terms, you draw onto
* a Surface using the graphics settings specified in your Context.
diff --git a/cairomm/context.h b/cairomm/context.h
index 28fb248..3c20fd8 100644
--- a/cairomm/context.h
+++ b/cairomm/context.h
@@ -249,7 +249,7 @@ public:
* @param dashes an array specifying alternate lengths of on and off portions
* @param offset an offset into the dash pattern at which the stroke should start
*
- * \exception
+ * @exception
*/
void set_dash(std::valarray<double>& dashes, double offset);
@@ -583,11 +583,11 @@ public:
* line width, line join, line cap, and dash settings. After stroke(),
* the current Path will be cleared from the cairo Context.
*
- * \sa set_line_width()
- * \sa set_line_join()
- * \sa set_line_cap()
- * \sa set_dash()
- * \sa stroke_preserve().
+ * @sa set_line_width()
+ * @sa set_line_join()
+ * @sa set_line_cap()
+ * @sa set_dash()
+ * @sa stroke_preserve().
*/
void stroke();
@@ -595,11 +595,11 @@ public:
* line width, line join, line cap, and dash settings. Unlike stroke(),
* stroke_preserve() preserves the Path within the cairo Context.
*
- * \sa set_line_width()
- * \sa set_line_join()
- * \sa set_line_cap()
- * \sa set_dash()
- * \sa stroke_preserve().
+ * @sa set_line_width()
+ * @sa set_line_join()
+ * @sa set_line_cap()
+ * @sa set_dash()
+ * @sa stroke_preserve().
*/
void stroke_preserve();
@@ -607,8 +607,8 @@ public:
* fill rule, (each sub-path is implicitly closed before being filled). After
* fill(), the current path will be cleared from the cairo context.
*
- * \sa set_fill_rule()
- * \sa fill_preserve()
+ * @sa set_fill_rule()
+ * @sa fill_preserve()
*/
void fill();
@@ -617,8 +617,8 @@ public:
* Unlike fill(), fill_preserve() preserves the path within the
* cairo Context.
*
- * \sa set_fill_rule()
- * \sa fill().
+ * @sa set_fill_rule()
+ * @sa fill().
*/
void fill_preserve();
void copy_page();
@@ -656,7 +656,7 @@ public:
* save()/restore() pair. The only other means of increasing the size of the
* clip region is reset_clip().
*
- * \sa set_fill_rule()
+ * @sa set_fill_rule()
*/
void clip();
@@ -667,8 +667,8 @@ public:
* Unlike clip(), cairo_clip_preserve preserves the path within the cairo
* Context.
*
- * \sa clip()
- * \sa set_fill_rule()
+ * @sa clip()
+ * @sa set_fill_rule()
*/
void clip_preserve();
void select_font_face(const std::string& family, FontSlant slant, FontWeight weight);
@@ -761,17 +761,17 @@ public:
//TODO: Copy or reference-count a Path somethow instead of asking the caller to delete it?
/** Creates a copy of the current path and returns it to the user.
*
- * \todo See cairo_path_data_t for hints on how to iterate over the returned
+ * @todo See cairo_path_data_t for hints on how to iterate over the returned
* data structure.
*
- * \note The caller owns the Path object returned from this function. The
+ * @note The caller owns the Path object returned from this function. The
* Path object must be freed when you are finished with it.
*/
Path* copy_path() const;
/** Gets a flattened copy of the current path and returns it to the user
*
- * \todo See cairo_path_data_t for hints on how to iterate over the returned
+ * @todo See cairo_path_data_t for hints on how to iterate over the returned
* data structure.
*
* This function is like copy_path() except that any curves in the path will
@@ -780,7 +780,7 @@ public:
* any elements of type CAIRO_PATH_CURVE_TO which will instead be
* replaced by a series of CAIRO_PATH_LINE_TO elements.
*
- * \note The caller owns the Path object returned from this function. The
+ * @note The caller owns the Path object returned from this function. The
* Path object must be freed when you are finished with it.
*/
Path* copy_path_flat() const;
@@ -843,7 +843,7 @@ public:
* content type is the only distinction between this function and push_group()
* which you should see for a more detailed description of group rendering.
*
- * \param content: indicates the type of group that will be created
+ * @param content: indicates the type of group that will be created
*/
void push_group_with_content(Content content);
@@ -856,7 +856,7 @@ public:
* the push_group function), so that any changes to the graphics state will
* not be visible outside the group.
*
- * \return a (surface) pattern containing the results of all drawing
+ * @return a (surface) pattern containing the results of all drawing
* operations performed to the group.
**/
RefPtr<Pattern> pop_group();
diff --git a/cairomm/path.h b/cairomm/path.h
index 909170f..f5f7480 100644
--- a/cairomm/path.h
+++ b/cairomm/path.h
@@ -32,7 +32,7 @@ namespace Cairo
* Path. The application is responsible for freeing the Path object when it is
* no longer needed.
*
- * \todo There's currently no way to access the path data without reverting to
+ * @todo There's currently no way to access the path data without reverting to
* the C object (see cobj())
*/
class Path
diff --git a/cairomm/scaledfont.h b/cairomm/scaledfont.h
index 26ef27e..ee9e570 100644
--- a/cairomm/scaledfont.h
+++ b/cairomm/scaledfont.h
@@ -64,13 +64,13 @@ public:
/** Creates a ScaledFont object from a font face and matrices that describe
* the size of the font and the environment in which it will be used.
*
- * \param font_matrix font space to user space transformation matrix for the
+ * @param font_matrix font space to user space transformation matrix for the
* font. In the simplest case of a N point font, this matrix is just a scale
* by N, but it can also be used to shear the font or stretch it unequally
* along the two axes. See Context::set_font_matrix().
- * \param ctm user to device transformation matrix with which the font will be
+ * @param ctm user to device transformation matrix with which the font will be
* used.
- * \param options: options to use when getting metrics for the font and
+ * @param options: options to use when getting metrics for the font and
* rendering with it.
*/
static RefPtr<ScaledFont> create(FontFace font_face, Matrix& font_matrix,
@@ -94,10 +94,10 @@ public:
* size of the rectangle, though they will affect the x_advance and y_advance
* values.
*
- * \param utf8 a string of text, encoded in UTF-8
- * \param extents Returns the extents of the given string
+ * @param utf8 a string of text, encoded in UTF-8
+ * @param extents Returns the extents of the given string
*
- * \since 1.2
+ * @since 1.2
*/
void text_extents(const std::string& utf8, TextExtents& extents) const;
@@ -111,33 +111,33 @@ public:
* Note that whitespace glyphs do not contribute to the size of the rectangle
* (extents.width and extents.height).
*
- * \param glyphs A vector of glyphs to calculate the extents of
- * \param extents Returns the extents for the array of glyphs
+ * @param glyphs A vector of glyphs to calculate the extents of
+ * @param extents Returns the extents for the array of glyphs
**/
void glyph_extents(std::vector<Glyph> glyphs, TextExtents& extents);
/** The FontFace with which this ScaledFont was created.
- * \since 1.2
+ * @since 1.2
*/
RefPtr<FontFace> get_font_face() const;
/** Gets the FontOptions with which the ScaledFont was created.
- * \since 1.2
+ * @since 1.2
*/
void get_font_options(FontOptions& options) const;
/** Gets the font matrix with which the ScaledFont was created.
- * \since 1.2
+ * @since 1.2
*/
void get_font_matrix(Matrix& font_matrix) const;
/** Gets the CTM with which the ScaledFont was created.
- * \since 1.2
+ * @since 1.2
*/
void get_ctm(Matrix& ctm) const;
/** Gets the type of scaled Font
- * \since 1.2
+ * @since 1.2
*/
FontType get_type() const;
diff --git a/cairomm/surface.h b/cairomm/surface.h
index 8e08bee..c7bf2fe 100644
--- a/cairomm/surface.h
+++ b/cairomm/surface.h
@@ -156,7 +156,7 @@ public:
/** Writes the contents of surface to a new file filename as a PNG image.
*
- * \note For this function to be available, cairo must have been compiled
+ * @note For this function to be available, cairo must have been compiled
* with PNG support
*
* @param filename the name of a file to write to
@@ -165,7 +165,7 @@ public:
/** Writes the Surface to the write function.
*
- * \note For this function to be available, cairo must have been compiled
+ * @note For this function to be available, cairo must have been compiled
* with PNG support
*
* @param write_func The function to be called when the backend needs to
@@ -328,7 +328,7 @@ public:
/** Creates a new image surface and initializes the contents to the given PNG
* file.
*
- * \note For this function to be available, cairo must have been compiled
+ * @note For this function to be available, cairo must have been compiled
* with PNG support.
*
* @param filename name of PNG file to load
@@ -340,7 +340,7 @@ public:
/** Creates a new image surface from PNG data read incrementally via the
* read_func function.
*
- * \note For this function to be available, cairo must have been compiled
+ * @note For this function to be available, cairo must have been compiled
* with PNG support.
*
* @param read_func function called to read the data of the file
@@ -361,7 +361,7 @@ public:
* surface is not rendered to the screen but instead renders the drawing to a
* PDF file on disk.
*
- * \note For this Surface to be available, cairo must have been compiled with
+ * @note For this Surface to be available, cairo must have been compiled with
* PDF support
*/
class PdfSurface : public Surface
@@ -406,8 +406,8 @@ public:
* function immediately after creating the surface or immediately after
* completing a page with either Context::show_page() or Context::copy_page().
*
- * \param width_in_points new surface width, in points (1 point == 1/72.0 inch)
- * \param height_in_points new surface height, in points (1 point == 1/72.0 inch)
+ * @param width_in_points new surface width, in points (1 point == 1/72.0 inch)
+ * @param height_in_points new surface height, in points (1 point == 1/72.0 inch)
**/
void set_size(double width_in_points, double height_in_points);
@@ -422,7 +422,7 @@ public:
* surface is not rendered to the screen but instead renders the drawing to a
* PostScript file on disk.
*
- * \note For this Surface to be available, cairo must have been compiled with
+ * @note For this Surface to be available, cairo must have been compiled with
* PostScript support
*/
class PsSurface : public Surface
@@ -468,15 +468,15 @@ public:
* function immediately after creating the surface or immediately after
* completing a page with either Context::show_page() or Context::copy_page().
*
- * \param width_in_points new surface width, in points (1 point == 1/72.0 inch)
- * \param height_in_points new surface height, in points (1 point == 1/72.0 inch)
+ * @param width_in_points new surface width, in points (1 point == 1/72.0 inch)
+ * @param height_in_points new surface height, in points (1 point == 1/72.0 inch)
*/
void set_size(double width_in_points, double height_in_points);
/** Emit a comment into the PostScript output for the given surface. See the
* cairo reference documentation for more information.
*
- * \param comment a comment string to be emitted into the PostScript output
+ * @param comment a comment string to be emitted into the PostScript output
*/
void dsc_comment(std::string comment);
@@ -516,7 +516,7 @@ typedef enum
* from cairo. This surface is not rendered to the screen but instead renders
* the drawing to an SVG file on disk.
*
- * \note For this Surface to be available, cairo must have been compiled with
+ * @note For this Surface to be available, cairo must have been compiled with
* SVG support
*/
class SvgSurface : public Surface
@@ -562,14 +562,14 @@ public:
* performed on the given surface. The simplest way to do this is to call this
* function immediately after creating the surface.
*
- * \since 1.2
+ * @since 1.2
*/
void restrict_to_version(SvgVersion version);
/** Retrieves the list of SVG versions supported by cairo. See
* restrict_to_version().
*
- * \since 1.2
+ * @since 1.2
*/
static const std::vector<SvgVersion> get_versions();
@@ -596,10 +596,10 @@ public:
* want to use hardware-accelerated graphics within the X Window system, you
* should use this Surface type.
*
- * \note For this Surface to be available, cairo must have been compiled with
+ * @note For this Surface to be available, cairo must have been compiled with
* Glitz support
*
- * \warning This is an experimental surface. It is not yet marked as a fully
+ * @warning This is an experimental surface. It is not yet marked as a fully
* supported surface by the cairo library
*/
class GlitzSurface : public Surface
diff --git a/cairomm/win32_surface.h b/cairomm/win32_surface.h
index f47f4bf..467270d 100644
--- a/cairomm/win32_surface.h
+++ b/cairomm/win32_surface.h
@@ -38,7 +38,7 @@ namespace Cairo
* want to draw to the screen within a Microsoft Windows application, you
* should use this Surface type.
*
- * \note For this Surface to be available, cairo must have been compiled with
+ * @note For this Surface to be available, cairo must have been compiled with
* Win32 support
*/
class Win32Surface : public Surface
diff --git a/cairomm/xlib_surface.h b/cairomm/xlib_surface.h
index d47c43a..8637293 100644
--- a/cairomm/xlib_surface.h
+++ b/cairomm/xlib_surface.h
@@ -39,7 +39,7 @@ namespace Cairo
* If you want to draw to the screen within an application that uses the X
* Window system, you should use this Surface type.
*
- * \note For this surface to be availabe, cairo must have been compiled with
+ * @note For this surface to be availabe, cairo must have been compiled with
* support for XLib Surfaces
*/
class XlibSurface : public Surface
@@ -60,7 +60,7 @@ public:
* colors are represented in the drawable is specified by the provided
* visual.
*
- * \note If drawable is a Window, then the function
+ * @note If drawable is a Window, then the function
* cairo_xlib_surface_set_size must be called whenever the size of the window
* changes.
*