Esempio n. 1
0
 private BrushHolder(BrushHandle handle)
 {
     _brush         = handle.HBRUSH;
     _shouldDispose = handle.OwnsHandle;
     if (!_shouldDispose)
     {
         GC.SuppressFinalize(this);
     }
 }
 public static extern bool FrameRgn(
     DeviceContext hdc,
     RegionHandle hrgn,
     BrushHandle hbr,
     int nWidth,
     int nHeight);
 public static extern bool FillRgn(
     DeviceContext hdc,
     RegionHandle hrgn,
     BrushHandle hbr);
 public static extern bool FrameRect(
     DeviceContext hDC,
     [In] ref RECT lprc,
     BrushHandle hbr);
Esempio n. 5
0
 public bool Equals(BrushHandle other) => other.HBRUSH == HBRUSH;
Esempio n. 6
0
 public static bool FrameRectangle(DeviceContext deviceContext, RECT rectangle, BrushHandle brush)
 {
     return(Imports.FrameRect(deviceContext, ref rectangle, brush));
 }