public PPResource(PPResource resource) : this(resource.ppresource) { if (!resource.IsEmpty) { PPBCore.AddRefResource(this); } }
public MouseInputEvent(InputEvent inputEvent) { PPBCore.AddRefResource(inputEvent.Handle); handle = inputEvent.handle; }
/// <summary> /// AddRefResource() increments the reference count for the provided /// <code>resource</code>. /// </summary> /// <param name="resource">A <code>Resource</code> corresponding to a /// resource.</param> public static void AddRefResource(Resource resource) => PPBCore.AddRefResource(resource);
public KeyboardInputEvent(InputEvent inputEvent) { PPBCore.AddRefResource(inputEvent.Handle); handle = inputEvent.handle; }