Ejemplo n.º 1
0
 internal PaintEventArgs(
     Gdi32.HDC hdc,
     Rectangle clipRect,
     DrawingEventFlags flags = DrawingEventFlags.CheckState)
 {
     _event = new DrawingEventArgs(hdc, clipRect, flags);
 }
Ejemplo n.º 2
0
 internal PaintEventArgs(
     Graphics graphics,
     Rectangle clipRect,
     DrawingEventFlags flags)
 {
     _event = new DrawingEventArgs(graphics, clipRect, flags);
     SaveStateIfNeeded(graphics);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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;
 }