Пример #1
0
 public void SetOffset(IRmlElement element, Vector2 offset, bool isFixed = false)
 {
     unsafe
     {
         CheckIfEntityExists();
         Core.Library.Client.RmlElement_SetOffset(RmlElementNativePointer, element.RmlElementNativePointer, offset, (byte)(isFixed ? 1 : 0));
     }
 }
Пример #2
0
 public void ReplaceChild(IRmlElement newChild, IRmlElement oldChild)
 {
     unsafe
     {
         CheckIfEntityExists();
         Core.Library.Client.RmlElement_ReplaceChild(RmlElementNativePointer, newChild.RmlElementNativePointer, oldChild.RmlElementNativePointer);
     }
 }
Пример #3
0
 public void InsertBefore(IRmlElement child, IRmlElement adjacent)
 {
     unsafe
     {
         CheckIfEntityExists();
         Core.Library.Client.RmlElement_InsertBefore(RmlElementNativePointer, child.RmlElementNativePointer, adjacent.RmlElementNativePointer);
     }
 }
Пример #4
0
 public void RemoveChild(IRmlElement child)
 {
     unsafe
     {
         CheckIfEntityExists();
         Core.Library.Client.RmlElement_RemoveChild(RmlElementNativePointer, child.RmlElementNativePointer);
     }
 }
Пример #5
0
 public void AppendChild(IRmlElement element)
 {
     unsafe
     {
         CheckIfEntityExists();
         Core.Library.Client.RmlElement_AppendChild(RmlElementNativePointer, element.RmlElementNativePointer);
     }
 }