internal PaintEventArgs( Gdi32.HDC hdc, Rectangle clipRect, DrawingEventFlags flags = DrawingEventFlags.CheckState) { _event = new DrawingEventArgs(hdc, clipRect, flags); }
internal PaintEventArgs( Graphics graphics, Rectangle clipRect, DrawingEventFlags flags) { _event = new DrawingEventArgs(graphics, clipRect, flags); SaveStateIfNeeded(graphics); }
internal PaintEventArgs( PaintEventArgs e, Rectangle clipRect) { Gdi32.HDC hdc = e.HDC; _event = hdc.IsNull ? new DrawingEventArgs(e.GraphicsInternal, clipRect, e._event.Flags) : new DrawingEventArgs(hdc, clipRect, e._event.Flags); }
internal DrawItemEventArgs( Gdi32.HDC hdc, Font font, Rectangle rect, uint index, User32.ODS state, Color foreColor, Color backColor) { _event = new DrawingEventArgs(hdc, rect, DrawingEventFlags.CheckState); Font = font; Index = (int)index; State = (DrawItemState)state; _foreColor = foreColor; _backColor = backColor; }
public DrawItemEventArgs( Graphics graphics, Font font, Rectangle rect, int index, DrawItemState state, Color foreColor, Color backColor) { _event = new DrawingEventArgs(graphics, rect, DrawingEventFlags.GraphicsStateUnclean); Font = font; Index = index; State = state; _foreColor = foreColor; _backColor = backColor; }