Beispiel #1
0
        public static int ConfigHeight(Rainmeter.Settings.InstanceSettings Instance)
        {
            IntPtr hwnd = (IntPtr)(UInt32.Parse(Rainmeter.PluginBridge("GetWindow", Rainmeter.PluginBridge("GetConfig", Instance.INI_File))));
            RECT   rct;

            GetWindowRect(hwnd, out rct);
            return(rct.Bottom - rct.Top);
        }
Beispiel #2
0
        public static int ConfigWidth(string sSkin)
        {
            IntPtr hwnd = (IntPtr)(UInt32.Parse(Rainmeter.PluginBridge("GetWindow", sSkin)));
            RECT   rct;

            GetWindowRect(hwnd, out rct);
            return(rct.Right - rct.Left);
        }
Beispiel #3
0
        public static int ConfigHeight(string sSkin)
        {
            IntPtr hwnd = (IntPtr)(UInt32.Parse(Rainmeter.PluginBridge("GetWindow", sSkin)));
            RECT   rct;

            GetWindowRect(hwnd, out rct);
            return(rct.Bottom - rct.Top);
        }
Beispiel #4
0
        // Call this function to determine if the parent skin is topmost
        public static bool ParentIsTopmost(Rainmeter.Settings.InstanceSettings Instance)
        {
            IntPtr     hwnd = (IntPtr)(UInt32.Parse(Rainmeter.PluginBridge("GetWindow", Rainmeter.PluginBridge("GetConfig", Instance.INI_File))));
            WINDOWINFO info = new WINDOWINFO(true);

            GetWindowInfo(hwnd, ref info);
            return((info.dwExStyle & 0x00000008L) > 0);
        }
Beispiel #5
0
                public unsafe void Initialize(Settings _PluginSettings, char *iniFile, char *section, UInt32 id)
                {
                    this.PluginSettings = _PluginSettings;
                    this._ID            = id;
                    this._INI_File      = new string(iniFile);
                    this._Section       = new string(section);

                    this.ConfigName = Rainmeter.PluginBridge("GetConfig", this.INI_File);
                }
Beispiel #6
0
 public string SetVariable(string sVariable, object oData)
 {
     return(Rainmeter.PluginBridge("SetVariable", "\"" + this.ConfigName + "\" " + sVariable.Trim() + " \"" + oData.ToString().Trim() + "\""));
 }
Beispiel #7
0
 public string GetVariable(string sVariable)
 {
     return(Rainmeter.PluginBridge("GetVariable", "\"" + this.ConfigName + "\" " + sVariable.Trim() + ""));
 }
Beispiel #8
0
 public static IntPtr GetConfigWindow(Rainmeter.Settings.InstanceSettings Instance)
 {
     return((IntPtr)(UInt32.Parse(Rainmeter.PluginBridge("GetWindow", Rainmeter.PluginBridge("GetConfig", Instance.INI_File)))));
 }