Class: WR::HandleWin::HandleGr
- Inherits:
-
RWin::Canvas
- Object
- Data
- RWin::Canvas
- WR::HandleWin::HandleGr
- Defined in:
- lib/wrb/applications/frmdesigner/fdmodules.rb
Instance Method Summary collapse
Methods inherited from RWin::Canvas
#AngleArc, #Arc, #ArcTo, #BitBlt, #Chord, #DrawIcon, #DrawImagelist, #DrawText, #Ellipse, #FillRect, #FloodFill, #FrameRect, #GetArcDirection, #GetBkColor, #GetDeviceCaps, #GetLogPixels, #GetROP2, #GetStretchBltMode, #GetSysColor, #GetTextColor, #GetTextExtent, #InvertRect, #LineTo, #MaskBlt, #MoveTo, #Opaque, #PatBlt, #Pie, #PlgBlt, #PolyBezier, #PolyBezierTo, #PolyDraw, #PolyPolygon, #PolyPolyline, #Polygon, #Polyline, #PolylineTo, #Rectangle, #RoundRect, #SetArcDirection, #SetBkColor, #SetBrush, #SetFont, #SetHBrush, #SetHFont, #SetHPen, #SetPen, #SetROP2, #SetStretchBltMode, #SetTextColor, #StretchBlt, #TextOut, #Transparent, #_hdc, draw, #initialize, #release
Constructor Details
This class inherits a constructor from RWin::Canvas
Instance Method Details
#draw(obj, border, first_selection) ⇒ Object
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/wrb/applications/frmdesigner/fdmodules.rb', line 211 def draw(obj, border, first_selection) obj_w, obj_h = obj.windowsize if border SetPen(0xff0000) Rectangle(0, 0, obj_w, obj_h) return end if first_selection SetBrush(0xffffff) else SetBrush(0xafafaf) end Rectangle(0, 0, 5, 5) Rectangle(obj_w-5, 0, obj_w, 5) Rectangle(0, obj_h-5, 5, obj_h) Rectangle(obj_w-5, obj_h-5, obj_w, obj_h) Rectangle(obj_w/2-3, 0, obj_w/2+2, 5) Rectangle(obj_w/2-3, obj_h-5, obj_w/2+2, obj_h) Rectangle(0, obj_h/2-3, 5, obj_h/2+2) Rectangle(obj_w-5, obj_h/2-3, obj_w, obj_h/2+2) end |