aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/ApplicationIndicatorCustom.cs
blob: 7e4b24c1ea698232ed896b3ebc07c98cd4bc6415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Runtime.InteropServices;

namespace AyatanaAppIndicator
{
    public partial class ApplicationIndicator : GLib.Object
    {
        [DllImport ("ayatana-appindicator3.dll")]
        static extern int app_indicator_get_status (IntPtr i);

        [DllImport ("ayatana-appindicator3.dll")]
        static extern int app_indicator_get_category (IntPtr i);

        [DllImport ("ayatana-appindicator3.dll")]
        static extern void app_indicator_set_status (IntPtr i, int s);

        [GLib.Property ("status")]
        public AppIndicatorStatus AppIndicatorStatus
        {
            get
            {
                return (AppIndicatorStatus) app_indicator_get_status (Handle);
            }

            set
            {
                app_indicator_set_status (Handle, (int) value);
            }
        }

        [GLib.Property ("category")]
        public AppIndicatorCategory AppIndicatorCategory
        {
            get
            {
                return (AppIndicatorCategory) app_indicator_get_category (Handle);
            }
        }
    }
}