public void RemoveElement(WfcElement element) { if (element == null) { throw new ArgumentNullException("element"); } Wfc.RemoveElement(_Device.Handle, element.Handle); }
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); }
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(); }
public void InsertElement(WfcElement element) { InsertElement(element, null); }