Update doc comments.

This commit is contained in:
Daiki Ueno
2011-08-25 10:31:41 +09:00
parent 43ab623fac
commit 099ca60975
15 changed files with 97 additions and 63 deletions

View File

@ -83,6 +83,8 @@ IGNORE_HFILES = \
eek-clutter-section.h \ eek-clutter-section.h \
eek-clutter-key.h \ eek-clutter-key.h \
eek-gtk-renderer.h \ eek-gtk-renderer.h \
eek-theme.h \
eek-theme-node.h \
eek-enumtypes.h eek-enumtypes.h
if !ENABLE_CLUTTER if !ENABLE_CLUTTER
IGNORE_HFILES += eek-clutter-keyboard.h eek-clutter.h IGNORE_HFILES += eek-clutter-keyboard.h eek-clutter.h

View File

@ -37,6 +37,7 @@
<title>API Manual</title> <title>API Manual</title>
<chapter> <chapter>
<title>Base Classes, Interfaces, and Utilities</title> <title>Base Classes, Interfaces, and Utilities</title>
<xi:include href="xml/eek.xml"/>
<xi:include href="xml/eek-serializable.xml"/> <xi:include href="xml/eek-serializable.xml"/>
<xi:include href="xml/eek-element.xml"/> <xi:include href="xml/eek-element.xml"/>
<xi:include href="xml/eek-container.xml"/> <xi:include href="xml/eek-container.xml"/>
@ -49,12 +50,12 @@
<xi:include href="xml/eek-types.xml"/> <xi:include href="xml/eek-types.xml"/>
</chapter> </chapter>
<chapter> <chapter>
<title>Clutter Keyboard</title> <title>GTK Adapter</title>
<xi:include href="xml/eek-clutter-keyboard.xml"/> <xi:include href="xml/eek-gtk-keyboard.xml"/>
</chapter> </chapter>
<chapter> <chapter>
<title>GTK Keyboard</title> <title>Clutter Adapter</title>
<xi:include href="xml/eek-gtk-keyboard.xml"/> <xi:include href="xml/eek-clutter-keyboard.xml"/>
</chapter> </chapter>
<chapter> <chapter>
<title>Libxklavier Layout Engine</title> <title>Libxklavier Layout Engine</title>

View File

@ -3,6 +3,7 @@
<TITLE>EekKeyboard</TITLE> <TITLE>EekKeyboard</TITLE>
EekKeyboard EekKeyboard
EekKeyboardClass EekKeyboardClass
EekModifierKey
eek_keyboard_new eek_keyboard_new
eek_keyboard_get_layout eek_keyboard_get_layout
eek_keyboard_get_size eek_keyboard_get_size
@ -15,6 +16,7 @@ eek_keyboard_get_group
eek_keyboard_get_level eek_keyboard_get_level
eek_keyboard_set_modifier_behavior eek_keyboard_set_modifier_behavior
eek_keyboard_get_modifier_behavior eek_keyboard_get_modifier_behavior
eek_keyboard_set_modifiers
eek_keyboard_get_modifiers eek_keyboard_get_modifiers
eek_keyboard_create_section eek_keyboard_create_section
eek_keyboard_find_key_by_keycode eek_keyboard_find_key_by_keycode
@ -24,6 +26,8 @@ eek_keyboard_set_num_lock_mask
eek_keyboard_get_num_lock_mask eek_keyboard_get_num_lock_mask
eek_keyboard_set_alt_gr_mask eek_keyboard_set_alt_gr_mask
eek_keyboard_get_alt_gr_mask eek_keyboard_get_alt_gr_mask
eek_keyboard_get_pressed_keys
eek_keyboard_get_locked_keys
EekKeyboardPrivate EekKeyboardPrivate
<SUBSECTION Standard> <SUBSECTION Standard>
EEK_KEYBOARD EEK_KEYBOARD
@ -68,37 +72,6 @@ EEK_IS_GTK_KEYBOARD_CLASS
EEK_GTK_KEYBOARD_GET_CLASS EEK_GTK_KEYBOARD_GET_CLASS
</SECTION> </SECTION>
<SECTION>
<FILE>eek-theme-node</FILE>
EekSide
EekCorner
eek_theme_node_new
eek_theme_node_get_parent
eek_theme_node_get_theme
eek_theme_node_get_element_type
eek_theme_node_get_element_id
eek_theme_node_get_element_class
eek_theme_node_get_pseudo_class
eek_theme_node_get_color
eek_theme_node_get_background_color
eek_theme_node_get_foreground_color
eek_theme_node_get_background_gradient
eek_theme_node_get_border_width
eek_theme_node_get_border_radius
eek_theme_node_get_border_color
eek_theme_node_get_font
EekThemeNodePrivate
EekThemeNodeClass
<SUBSECTION Standard>
EEK_THEME_NODE
EEK_IS_THEME_NODE
EEK_TYPE_THEME_NODE
eek_theme_node_get_type
EEK_THEME_NODE_CLASS
EEK_IS_THEME_NODE_CLASS
EEK_THEME_NODE_GET_CLASS
</SECTION>
<SECTION> <SECTION>
<FILE>eek-section</FILE> <FILE>eek-section</FILE>
<TITLE>EekSection</TITLE> <TITLE>EekSection</TITLE>
@ -285,6 +258,7 @@ eek_key_get_index
eek_key_set_oref eek_key_set_oref
eek_key_get_oref eek_key_get_oref
eek_key_is_pressed eek_key_is_pressed
eek_key_is_locked
EekKeyPrivate EekKeyPrivate
<SUBSECTION Standard> <SUBSECTION Standard>
EEK_KEY EEK_KEY
@ -360,22 +334,6 @@ EEK_IS_XML_LAYOUT_CLASS
EEK_XML_LAYOUT_GET_CLASS EEK_XML_LAYOUT_GET_CLASS
</SECTION> </SECTION>
<SECTION>
<FILE>eek-theme</FILE>
eek_theme_new
eek_theme_load_stylesheet
eek_theme_unload_stylesheet
EekThemeClass
<SUBSECTION Standard>
EEK_THEME
EEK_IS_THEME
EEK_TYPE_THEME
eek_theme_get_type
EEK_THEME_CLASS
EEK_IS_THEME_CLASS
EEK_THEME_GET_CLASS
</SECTION>
<SECTION> <SECTION>
<FILE>eek-keysym</FILE> <FILE>eek-keysym</FILE>
<TITLE>EekKeysym</TITLE> <TITLE>EekKeysym</TITLE>
@ -434,9 +392,11 @@ eek_color_new
eek_color_copy eek_color_copy
eek_color_free eek_color_free
EekGradientType EekGradientType
EekThemeNode </SECTION>
EekThemeContext
EekTheme <SECTION>
<FILE>eek</FILE>
eek_init
</SECTION> </SECTION>
<SECTION> <SECTION>

View File

@ -40,6 +40,12 @@ G_BEGIN_DECLS
typedef struct _EekKeyClass EekKeyClass; typedef struct _EekKeyClass EekKeyClass;
typedef struct _EekKeyPrivate EekKeyPrivate; typedef struct _EekKeyPrivate EekKeyPrivate;
/**
* EekKey:
*
* The #EekKey structure contains only private data and should only be
* accessed using the provided API.
*/
struct _EekKey struct _EekKey
{ {
/*< private >*/ /*< private >*/
@ -64,6 +70,7 @@ struct _EekKey
* @released: class handler for #EekKey::released signal * @released: class handler for #EekKey::released signal
* @locked: class handler for #EekKey::locked signal * @locked: class handler for #EekKey::locked signal
* @unlocked: class handler for #EekKey::unlocked signal * @unlocked: class handler for #EekKey::unlocked signal
* @cancelled: class handler for #EekKey::cancelled signal
* @is_pressed: virtual function for getting whether the key is pressed * @is_pressed: virtual function for getting whether the key is pressed
* @is_locked: virtual function for getting whether the key is locked * @is_locked: virtual function for getting whether the key is locked
*/ */

View File

@ -949,8 +949,8 @@ eek_keyboard_get_alt_gr_mask (EekKeyboard *keyboard)
* @keyboard: an #EekKeyboard * @keyboard: an #EekKeyboard
* *
* Get pressed keys. * Get pressed keys.
* Returns: (transfer container) (element-type EekModifierKey): A list * Returns: (transfer container) (element-type EekKey): A list of
* of pressed keys. * pressed keys.
*/ */
GList * GList *
eek_keyboard_get_pressed_keys (EekKeyboard *keyboard) eek_keyboard_get_pressed_keys (EekKeyboard *keyboard)

View File

@ -106,7 +106,16 @@ struct _EekKeyboardClass
gpointer pdummy[21]; gpointer pdummy[21];
}; };
/**
* EekModifierKey:
* @modifiers: an #EekModifierType which @key triggers
* @key: an #EekKey
*
* Entry which associates modifier mask to a key. This is returned by
* eek_keyboard_get_locked_keys().
*/
struct _EekModifierKey { struct _EekModifierKey {
/*< public >*/
EekModifierType modifiers; EekModifierType modifiers;
EekKey *key; EekKey *key;
}; };

View File

@ -47,6 +47,12 @@ G_BEGIN_DECLS
typedef struct _EekKeysymClass EekKeysymClass; typedef struct _EekKeysymClass EekKeysymClass;
typedef struct _EekKeysymPrivate EekKeysymPrivate; typedef struct _EekKeysymPrivate EekKeysymPrivate;
/**
* EekKeysym:
*
* The #EekKeysym structure contains only private data and should only
* be accessed using the provided API.
*/
struct _EekKeysym { struct _EekKeysym {
/*< private >*/ /*< private >*/
EekSymbol parent; EekSymbol parent;
@ -65,7 +71,7 @@ guint eek_keysym_get_xkeysym (EekKeysym *keysym);
EekKeysym *eek_keysym_new_from_name (const gchar *name); EekKeysym *eek_keysym_new_from_name (const gchar *name);
EekKeysym *eek_keysym_new_with_modifier (guint xkeysym, EekKeysym *eek_keysym_new_with_modifier (guint xkeysym,
EekModifierType modifier); EekModifierType modifier_mask);
G_END_DECLS G_END_DECLS

View File

@ -41,6 +41,12 @@ G_BEGIN_DECLS
typedef struct _EekSectionClass EekSectionClass; typedef struct _EekSectionClass EekSectionClass;
typedef struct _EekSectionPrivate EekSectionPrivate; typedef struct _EekSectionPrivate EekSectionPrivate;
/**
* EekSection:
*
* The #EekSection structure contains only private data and should
* only be accessed using the provided API.
*/
struct _EekSection struct _EekSection
{ {
/*< private >*/ /*< private >*/
@ -63,6 +69,7 @@ struct _EekSection
* @key_released: class handler for #EekSection::key-released signal * @key_released: class handler for #EekSection::key-released signal
* @key_locked: class handler for #EekSection::key-locked signal * @key_locked: class handler for #EekSection::key-locked signal
* @key_unlocked: class handler for #EekSection::key-unlocked signal * @key_unlocked: class handler for #EekSection::key-unlocked signal
* @key_cancelled: class handler for #EekSection::key-cancelled signal
*/ */
struct _EekSectionClass struct _EekSectionClass
{ {

View File

@ -20,11 +20,11 @@
/** /**
* SECTION:eek-serializable * SECTION:eek-serializable
* @short_description: Interface implemented by #EekElement to * @short_description: Interface which provides object serialization
* serialize it to #GVariant * into #GVariant
* *
* The #EekSerializableIface interface defines serialize/deserialize * The #EekSerializableIface interface defines serialize/deserialize
* method of #EekElement. * method.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View File

@ -34,6 +34,7 @@ G_BEGIN_DECLS
*/ */
struct _EekSymbolMatrix struct _EekSymbolMatrix
{ {
/*< public >*/
gint num_groups; gint num_groups;
gint num_levels; gint num_levels;
EekSymbol **data; EekSymbol **data;

View File

@ -102,9 +102,9 @@ void eek_symbol_set_category (EekSymbol *symbol,
EekSymbolCategory category); EekSymbolCategory category);
EekSymbolCategory eek_symbol_get_category (EekSymbol *symbol); EekSymbolCategory eek_symbol_get_category (EekSymbol *symbol);
EekModifierType eek_symbol_get_modifier_mask EekModifierType eek_symbol_get_modifier_mask
(EekSymbol *keysym); (EekSymbol *symbol);
void eek_symbol_set_modifier_mask void eek_symbol_set_modifier_mask
(EekSymbol *keysym, (EekSymbol *symbol,
EekModifierType mask); EekModifierType mask);
gboolean eek_symbol_is_modifier (EekSymbol *symbol); gboolean eek_symbol_is_modifier (EekSymbol *symbol);
void eek_symbol_set_icon_name (EekSymbol *symbol, void eek_symbol_set_icon_name (EekSymbol *symbol,

View File

@ -20,7 +20,8 @@
/** /**
* SECTION:eek-types * SECTION:eek-types
* @short_description: Miscellaneous types * @title: Miscellaneous Types
* @short_description: Miscellaneous types used in Libeek
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View File

@ -159,6 +159,7 @@ typedef struct _EekColor EekColor;
typedef struct _EekPoint EekPoint; typedef struct _EekPoint EekPoint;
struct _EekPoint struct _EekPoint
{ {
/*< public >*/
gdouble x; gdouble x;
gdouble y; gdouble y;
}; };
@ -180,6 +181,7 @@ void eek_point_rotate (EekPoint *point,
*/ */
struct _EekBounds struct _EekBounds
{ {
/*< public >*/
gdouble x; gdouble x;
gdouble y; gdouble y;
gdouble width; gdouble width;
@ -206,6 +208,7 @@ eek_bounds_long_side (EekBounds *bounds)
*/ */
struct _EekOutline struct _EekOutline
{ {
/*< public >*/
gdouble corner_radius; gdouble corner_radius;
EekPoint *points; EekPoint *points;
gint num_points; gint num_points;
@ -226,6 +229,7 @@ void eek_outline_free (EekOutline *outline);
*/ */
struct _EekColor struct _EekColor
{ {
/*< public >*/
gdouble red; gdouble red;
gdouble green; gdouble green;
gdouble blue; gdouble blue;

View File

@ -18,6 +18,7 @@
/** /**
* SECTION: eek-xml * SECTION: eek-xml
* @title: XML Conversion Utilities
* @short_description: #EekKeyboard to XML conversion utilities * @short_description: #EekKeyboard to XML conversion utilities
*/ */

View File

@ -1,5 +1,40 @@
/*
* Copyright (C) 2011 Daiki Ueno <ueno@unixuser.org>
* Copyright (C) 2011 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
/**
* SECTION:eek
* @title: Library Initialization
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include "eek.h" #include "eek.h"
/**
* eek_init:
*
* Initialize the Libeek library. This must be called before using
* functions provided by Libeek.
*/
void void
eek_init (void) eek_init (void)
{ {