
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */

#include "dia-lib-enums.h"
#include "dia-enums.h"
#include "font.h"
#include "units.h"

#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)

/* enumerations from "dia-enums.h" */

GType
dia_line_caps_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_LINE_CAPS_DEFAULT), "DIA_LINE_CAPS_DEFAULT", "default" },
        { C_ENUM (DIA_LINE_CAPS_BUTT), "DIA_LINE_CAPS_BUTT", "butt" },
        { C_ENUM (DIA_LINE_CAPS_ROUND), "DIA_LINE_CAPS_ROUND", "round" },
        { C_ENUM (DIA_LINE_CAPS_PROJECTING), "DIA_LINE_CAPS_PROJECTING", "projecting" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaLineCaps"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_line_join_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_LINE_JOIN_DEFAULT), "DIA_LINE_JOIN_DEFAULT", "default" },
        { C_ENUM (DIA_LINE_JOIN_MITER), "DIA_LINE_JOIN_MITER", "miter" },
        { C_ENUM (DIA_LINE_JOIN_ROUND), "DIA_LINE_JOIN_ROUND", "round" },
        { C_ENUM (DIA_LINE_JOIN_BEVEL), "DIA_LINE_JOIN_BEVEL", "bevel" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaLineJoin"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_line_style_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_LINE_STYLE_DEFAULT), "DIA_LINE_STYLE_DEFAULT", "default" },
        { C_ENUM (DIA_LINE_STYLE_SOLID), "DIA_LINE_STYLE_SOLID", "solid" },
        { C_ENUM (DIA_LINE_STYLE_DASHED), "DIA_LINE_STYLE_DASHED", "dashed" },
        { C_ENUM (DIA_LINE_STYLE_DASH_DOT), "DIA_LINE_STYLE_DASH_DOT", "dash-dot" },
        { C_ENUM (DIA_LINE_STYLE_DASH_DOT_DOT), "DIA_LINE_STYLE_DASH_DOT_DOT", "dash-dot-dot" },
        { C_ENUM (DIA_LINE_STYLE_DOTTED), "DIA_LINE_STYLE_DOTTED", "dotted" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaLineStyle"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_fill_style_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_FILL_STYLE_SOLID), "DIA_FILL_STYLE_SOLID", "solid" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaFillStyle"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_alignment_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_ALIGN_LEFT), "DIA_ALIGN_LEFT", "left" },
        { C_ENUM (DIA_ALIGN_CENTRE), "DIA_ALIGN_CENTRE", "centre" },
        { C_ENUM (DIA_ALIGN_RIGHT), "DIA_ALIGN_RIGHT", "right" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaAlignment"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_text_fitting_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_TEXT_FIT_NEVER), "DIA_TEXT_FIT_NEVER", "never" },
        { C_ENUM (DIA_TEXT_FIT_WHEN_NEEDED), "DIA_TEXT_FIT_WHEN_NEEDED", "when-needed" },
        { C_ENUM (DIA_TEXT_FIT_ALWAYS), "DIA_TEXT_FIT_ALWAYS", "always" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaTextFitting"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "font.h" */

GType
dia_font_family_get_type (void)
{
    static gsize gtype_id = 0;
    static const GFlagsValue values[] = {
        { C_FLAGS (DIA_FONT_FAMILY_ANY), "DIA_FONT_FAMILY_ANY", "family-any" },
        { C_FLAGS (DIA_FONT_SANS), "DIA_FONT_SANS", "sans" },
        { C_FLAGS (DIA_FONT_SERIF), "DIA_FONT_SERIF", "serif" },
        { C_FLAGS (DIA_FONT_MONOSPACE), "DIA_FONT_MONOSPACE", "monospace" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_flags_register_static (g_intern_static_string ("DiaFontFamily"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_font_slant_get_type (void)
{
    static gsize gtype_id = 0;
    static const GFlagsValue values[] = {
        { C_FLAGS (DIA_FONT_NORMAL), "DIA_FONT_NORMAL", "normal" },
        { C_FLAGS (DIA_FONT_OBLIQUE), "DIA_FONT_OBLIQUE", "oblique" },
        { C_FLAGS (DIA_FONT_ITALIC), "DIA_FONT_ITALIC", "italic" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_flags_register_static (g_intern_static_string ("DiaFontSlant"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

GType
dia_font_weight_get_type (void)
{
    static gsize gtype_id = 0;
    static const GFlagsValue values[] = {
        { C_FLAGS (DIA_FONT_ULTRALIGHT), "DIA_FONT_ULTRALIGHT", "ultralight" },
        { C_FLAGS (DIA_FONT_LIGHT), "DIA_FONT_LIGHT", "light" },
        { C_FLAGS (DIA_FONT_WEIGHT_NORMAL), "DIA_FONT_WEIGHT_NORMAL", "weight-normal" },
        { C_FLAGS (DIA_FONT_MEDIUM), "DIA_FONT_MEDIUM", "medium" },
        { C_FLAGS (DIA_FONT_DEMIBOLD), "DIA_FONT_DEMIBOLD", "demibold" },
        { C_FLAGS (DIA_FONT_BOLD), "DIA_FONT_BOLD", "bold" },
        { C_FLAGS (DIA_FONT_ULTRABOLD), "DIA_FONT_ULTRABOLD", "ultrabold" },
        { C_FLAGS (DIA_FONT_HEAVY), "DIA_FONT_HEAVY", "heavy" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_flags_register_static (g_intern_static_string ("DiaFontWeight"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* enumerations from "units.h" */

GType
dia_unit_get_type (void)
{
    static gsize gtype_id = 0;
    static const GEnumValue values[] = {
        { C_ENUM (DIA_UNIT_CENTIMETER), "DIA_UNIT_CENTIMETER", "centimetre" },
        { C_ENUM (DIA_UNIT_DECIMETER), "DIA_UNIT_DECIMETER", "decimetre" },
        { C_ENUM (DIA_UNIT_FEET), "DIA_UNIT_FEET", "feet" },
        { C_ENUM (DIA_UNIT_INCH), "DIA_UNIT_INCH", "inch" },
        { C_ENUM (DIA_UNIT_METER), "DIA_UNIT_METER", "metre" },
        { C_ENUM (DIA_UNIT_MILLIMETER), "DIA_UNIT_MILLIMETER", "millimetre" },
        { C_ENUM (DIA_UNIT_POINT), "DIA_UNIT_POINT", "point" },
        { C_ENUM (DIA_UNIT_PICA), "DIA_UNIT_PICA", "pica" },
        { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_enum_register_static (g_intern_static_string ("DiaUnit"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
}

/* Generated data ends here */

