Esempio n. 1
0
        public static unsafe void ProcessPaint(ref WindowMessage msg, EventedWindowCore window)
        {
            fixed(WindowMessage *ptr = &msg)
            {
                var packet = new PaintPacket(ptr);

                window.OnPaint(ref packet);
            }
        }
Esempio n. 2
0
 protected internal virtual void OnPaint(ref PaintPacket packet)
 {
     unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); }
 }