Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created September 6, 2016 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/fb7b1bb5fc4bc693e83f00f3b80f82d8 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/fb7b1bb5fc4bc693e83f00f3b80f82d8 to your computer and use it in GitHub Desktop.
using System;
using System.Runtime.InteropServices;
namespace CSSLayoutApp
{
[StructLayout(LayoutKind.Sequential)]
public struct CSSNode
{
public CSSStyle style;
public CSSLayout layout;
public uint lineIndex;
public bool hasNewLayout;
public bool isTextNode;
public IntPtr parent;
public IntPtr children;
public bool isDirty;
public CSSMeasureFunc measure;
public CSSPrintFunc print;
public IntPtr context;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment