Package Win32::GUI::DC
Constructor
Methods
AbortPath()
[TBD]
Arc(X, Y, RADIUS, START, SWEEP) [TBD]
BackColor([COLOR]) Gets or sets the background color.
BeginPath() [TBD]
BkMode([MODE]) Gets or sets the current background mix mode for the DC; possible values are:
Circle(X, Y, (WIDTH, HEIGHT | RADIUS)) Draws a circle or an ellipse; X, Y, RADIUS specifies the center point and the radius of the circle, while X, Y, WIDTH, HEIGHT specifies the center point and the size of the ellipse. Returns nonzero if succesful, zero on errors.
CloseFigure() [TBD]
DrawEdge(LEFT, TOP, RIGHT, BOTTOM, [EDGE, FLAGS]) [TBD]
Ellipse(LEFT, TOP, RIGHT, BOTTOM) [TBD]
EndPath() [TBD]
Fill(X, Y, [COLOR], [TYPE]) [TBD]
FillPath() [TBD]
GetPixel(X, Y) Returns the color of the pixel at X, Y.
GetUpdateRect([ERASE]) Returns the rectangle (as a four-element array containing left, top, right, bottom coordinates) that needs to be updated. If the update region is empty (eg. no need to update, the function returns undef). The optional ERASE parameter can be set to 1 to force an erase of the update region, if there is any; by default, no erase action is performed. This function is intended to be used in a Paint event; see Win32::GUI::Graphic::Paint().
InvertRect(LEFT, TOP, RIGHT, BOTTOM) Inverts the content of the rectangle from LEFT, TOP to RIGHT, BOTTOM. Returns nonzero if succesful, zero on errors.
LineTo(X, Y) Draws a line from the current drawing position up to, but not including, the point specified by X, Y. Returns nonzero if succesful, zero on errors.
MapMode([MODE]) [TBD]
MoveTo(X, Y) Moves the current drawing position to the point specified by X, Y. Returns nonzero if succesful, zero on errors.
PaintDesktop() Fills the DC content with the desktop pattern or wallpaper. Returns nonzero if succesful, zero on errors.
Pie(LEFT, TOP, RIGHT, BOTTOM, XF, YF, XS, YS) [TBD]
Rectangle(LEFT, TOP, RIGHT, BOTTOM) Draws a rectangle from LEFT, TOP to RIGHT, BOTTOM; the rectangle is outlined with the current pen and filled with the current brush. Returns nonzero if succesful, zero on errors.
Restore([STATE]) Restores the state of the DC saved by Save(). STATE can identify a state from the saved stack (use the identifier returned by the corresponding Save() call) or a negative number that specifies how many steps backwards in the stack to recall (eg. -1 recalls the last saved state). The default if STATE is not specified is -1. Note that the restored state is removed from the stack, and if you restore an early one, all the subsequent states will be removed too. Returns nonzero if succesful, zero on errors. See also Save().
Save() Saves the current state of the DC (this means the currently selected colors, brushes, pens, drawing modes, etc.) to an internal stack. The function returns a number identifying the saved state; this number can then be passed to the Restore() function to load it back. If the return value is zero, an error occurred. See also Restore().
SelectObject(OBJECT) [TBD]
SetPixel(X, Y, [COLOR]) Sets the pixel at X, Y to the specified COLOR (or to the current TextColor() if COLOR is not specified).
StrokeAndFillPath() [TBD]
StrokePath() [TBD]
TextColor([COLOR]) Gets or sets the text color.1 TRANSPARENT
2 OPAQUE
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 151:
You can't have =items (as at line 155) unless the first thing after the =over is an =item
- Around line 171:
You can't have =items (as at line 175) unless the first thing after the =over is an =item