Exemple #1
0
 public void RemoveElement(WfcElement element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     Wfc.RemoveElement(_Device.Handle, element.Handle);
 }
Exemple #2
0
 public void InsertElement(WfcElement element, WfcElement position)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     Wfc.InsertElement(_Device.Handle, element.Handle, position != null ? position.Handle : Wfc.INVALID_HANDLE);
 }
Exemple #3
0
        public WfcWindow()
        {
            if (Wfc.IsAvailable == false)
            {
                throw new InvalidOperationException("OpenWF Compositor is not available");
            }

            _WfcDevice  = new WfcDevice();
            _WfcContext = _WfcDevice.CreateContext();
            WfcElement wfcElement = _WfcContext.CreateElement();

            WfcSource wfcSource = _WfcContext.CreateSource(0);                  // XXX

            wfcElement.Source = wfcSource;

            _WfcContext.InsertElement(wfcElement);
            _WfcContext.Commit();
        }
Exemple #4
0
 public void InsertElement(WfcElement element)
 {
     InsertElement(element, null);
 }