mirror of
https://github.com/brl/mutter.git
synced 2025-03-25 04:33:52 +00:00
Move internal data structures on top
Try to keep the declarations section of the source files clean and possibly consistent.
This commit is contained in:
parent
d84a88ac3b
commit
4a1f4d6f9a
@ -56,6 +56,8 @@
|
|||||||
#define CLUTTER_TEXT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), CLUTTER_TYPE_TEXT, ClutterTextPrivate))
|
#define CLUTTER_TEXT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), CLUTTER_TYPE_TEXT, ClutterTextPrivate))
|
||||||
|
|
||||||
typedef struct _LayoutCache LayoutCache;
|
typedef struct _LayoutCache LayoutCache;
|
||||||
|
typedef struct _TextCommand TextCommand;
|
||||||
|
typedef struct _ClutterTextMapping ClutterTextMapping;
|
||||||
|
|
||||||
/* Probably move into main */
|
/* Probably move into main */
|
||||||
static PangoContext *_context = NULL;
|
static PangoContext *_context = NULL;
|
||||||
@ -82,6 +84,21 @@ struct _LayoutCache
|
|||||||
guint age;
|
guint age;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct _TextCommand
|
||||||
|
{
|
||||||
|
const gchar *name;
|
||||||
|
gboolean (*func) (ClutterText *ttext,
|
||||||
|
const gchar *commandline,
|
||||||
|
ClutterEvent *event);
|
||||||
|
};
|
||||||
|
|
||||||
|
struct _ClutterTextMapping
|
||||||
|
{
|
||||||
|
ClutterModifierType state;
|
||||||
|
guint keyval;
|
||||||
|
const gchar *action;
|
||||||
|
};
|
||||||
|
|
||||||
struct _ClutterTextPrivate
|
struct _ClutterTextPrivate
|
||||||
{
|
{
|
||||||
PangoFontDescription *font_desc;
|
PangoFontDescription *font_desc;
|
||||||
@ -226,19 +243,6 @@ offset_to_bytes (const gchar *text,
|
|||||||
(g_utf8_pointer_to_offset ((t), (t) + (p)))
|
(g_utf8_pointer_to_offset ((t), (t) + (p)))
|
||||||
|
|
||||||
|
|
||||||
typedef struct TextCommand {
|
|
||||||
const gchar *name;
|
|
||||||
gboolean (*func) (ClutterText *ttext,
|
|
||||||
const gchar *commandline,
|
|
||||||
ClutterEvent *event);
|
|
||||||
} TextCommand;
|
|
||||||
|
|
||||||
typedef struct ClutterTextMapping {
|
|
||||||
ClutterModifierType state;
|
|
||||||
guint keyval;
|
|
||||||
const gchar *action;
|
|
||||||
} ClutterTextMapping;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
clutter_text_mappings_clear (ClutterText *self)
|
clutter_text_mappings_clear (ClutterText *self)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user