Example #1
0
 public PPResource(PPResource resource) : this(resource.ppresource)
 {
     if (!resource.IsEmpty)
     {
         PPBCore.AddRefResource(this);
     }
 }
Example #2
0
 public MouseInputEvent(InputEvent inputEvent)
 {
     PPBCore.AddRefResource(inputEvent.Handle);
     handle = inputEvent.handle;
 }
Example #3
0
 /// <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);
Example #4
0
 public KeyboardInputEvent(InputEvent inputEvent)
 {
     PPBCore.AddRefResource(inputEvent.Handle);
     handle = inputEvent.handle;
 }