~dbarth/notify-osd/close-notification-api

« back to all changes in this revision

Viewing changes to src/defaults.h

Merged my slot-allocation branch separating gravity from slot-allocation
scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        GRAVITY_EAST        // vertically centered at right of screen
62
62
} Gravity;
63
63
 
 
64
typedef enum
 
65
{
 
66
        SLOT_ALLOCATION_NONE = 0,
 
67
        SLOT_ALLOCATION_FIXED,  // async. always in top, sync. always in bottom
 
68
        SLOT_ALLOCATION_DYNAMIC // async. and sync can take top or bottom
 
69
} SlotAllocation;
 
70
 
64
71
/* instance structure */
65
72
struct _Defaults
66
73
{
67
74
        GObject parent;
68
75
 
69
76
        /* private */
70
 
        GConfClient* context;
71
 
        guint        notifier[6];
72
 
        gint         desktop_width;
73
 
        gint         desktop_height;
74
 
        gint         desktop_top;
75
 
        gint         desktop_bottom;
76
 
        gint         desktop_left;
77
 
        gint         desktop_right;
78
 
        gdouble      desktop_bottom_gap;
79
 
        gdouble      stack_height;
80
 
        gdouble      bubble_vert_gap;
81
 
        gdouble      bubble_horz_gap;
82
 
        gdouble      bubble_width;
83
 
        gdouble      bubble_min_height;
84
 
        gdouble      bubble_max_height;
85
 
        gdouble      bubble_shadow_size;
86
 
        GString*     bubble_shadow_color;
87
 
        GString*     bubble_bg_color;
88
 
        GString*     bubble_bg_opacity;
89
 
        GString*     bubble_hover_opacity;
90
 
        gdouble      bubble_corner_radius;
91
 
        gdouble      content_shadow_size;
92
 
        GString*     content_shadow_color;
93
 
        gdouble      margin_size;
94
 
        gdouble      icon_size;
95
 
        gdouble      gauge_size;
96
 
        gdouble      gauge_outline_width;
97
 
        gint         fade_in_timeout;
98
 
        gint         fade_out_timeout;
99
 
        gint         on_screen_timeout;
100
 
        GString*     text_font_face;
101
 
        GString*     text_title_color;
102
 
        gint         text_title_weight;
103
 
        gdouble      text_title_size;
104
 
        GString*     text_body_color;
105
 
        gint         text_body_weight;
106
 
        gdouble      text_body_size;
107
 
        gdouble      pixels_per_em;
108
 
        gdouble      system_font_size;
109
 
        gdouble      screen_dpi;
110
 
        Gravity      gravity;
 
77
        GConfClient*   context;
 
78
        guint          notifier[6];
 
79
        gint           desktop_width;
 
80
        gint           desktop_height;
 
81
        gint           desktop_top;
 
82
        gint           desktop_bottom;
 
83
        gint           desktop_left;
 
84
        gint           desktop_right;
 
85
        gdouble        desktop_bottom_gap;
 
86
        gdouble        stack_height;
 
87
        gdouble        bubble_vert_gap;
 
88
        gdouble        bubble_horz_gap;
 
89
        gdouble        bubble_width;
 
90
        gdouble        bubble_min_height;
 
91
        gdouble        bubble_max_height;
 
92
        gdouble        bubble_shadow_size;
 
93
        GString*       bubble_shadow_color;
 
94
        GString*       bubble_bg_color;
 
95
        GString*       bubble_bg_opacity;
 
96
        GString*       bubble_hover_opacity;
 
97
        gdouble        bubble_corner_radius;
 
98
        gdouble        content_shadow_size;
 
99
        GString*       content_shadow_color;
 
100
        gdouble        margin_size;
 
101
        gdouble        icon_size;
 
102
        gdouble        gauge_size;
 
103
        gdouble        gauge_outline_width;
 
104
        gint           fade_in_timeout;
 
105
        gint           fade_out_timeout;
 
106
        gint           on_screen_timeout;
 
107
        GString*       text_font_face;
 
108
        GString*       text_title_color;
 
109
        gint           text_title_weight;
 
110
        gdouble        text_title_size;
 
111
        GString*       text_body_color;
 
112
        gint           text_body_weight;
 
113
        gdouble        text_body_size;
 
114
        gdouble        pixels_per_em;
 
115
        gdouble        system_font_size;
 
116
        gdouble        screen_dpi;
 
117
        Gravity        gravity;
 
118
        SlotAllocation slot_allocation;
111
119
};
112
120
 
113
121
/* class structure */
252
260
Gravity
253
261
defaults_get_gravity (Defaults *self);
254
262
 
 
263
SlotAllocation
 
264
defaults_get_slot_allocation (Defaults *self);
 
265
 
255
266
G_END_DECLS
256
267
 
257
268
#endif /* __DEFAULTS_H */