Is used for drawing operations.
Note:
TPen represents a X11 graphic context (GC) and because you can
use more than one GC with a single window, the drawing operations aren't
part of the window itself.
TPen adds the feature for 2 dimensional translations because it simplifys
certain operations with pens a lot. When a new pen is created TPen gets
its initial origin from the window.
The fill operations differ from X11 in the way that they fill the
whole object while X11 fills the interior. Currently this reduces
performance until the handling for foreground (outline) and
background (interior) colors is implemented.
The AIX X11 implementation causes some small trouble with the arc and
circle operations.
Pen for server-side bitmaps.
| ||
Ascent of the current font. |
| ||
Removes the clipping region. Note: does this really work? |
| ||
Descent of the current font. |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
Draw string `str'. x, y is the upper left
coordinate of the string. DrawString is a little bit slower than FillString. |
| ||
| ||
Draw string 'str' in multiple lines, reduce spaces between words to one an break lines to fit width. 'str' can contain '\n'. |
| ||
| ||
| ||
| ||
| ||
Experimental FillString will fill the background with the current back color when drawing the string. The back color can be set with SetBackColor. Please note that FillString doesn't support color dithering and will use the nearest color TOAD was able to allocate. Maybe i'm going to rename this method into `PrintString' since `FillString' is really a very idiotic name. |
| ||
Returns the bounding rectangle of the pens current clipping region or the size of the window the pen is related to, when the pen has no clipping region. |
| ||
Height of the current font. |
| ||
| ||
| ||
| ||
| ||
| ||
Experimental Sets the background color for `FillString(..)'. |
| ||
When true, TPen will not paint inside the child windows of the current window (which is the standard setting) and when false, TPen will use the entire area of the current window for painting including its children. |
| ||
Sets a clipping rectangle. |
| ||
You shouldn't call this yourself currently, it's used by TWindow::_DispatchPaintEvent() |
| ||
Set the line and fill color to color. |
| ||
Select the color dithering mode:
|
| ||
Set the fill color to color. |
| ||
Sets a new font for DrawString and return the old font. |
| ||
Set the line color to color. |
| ||
How to draw lines:
|
| ||
Sets the width of the line for all line drawing operations, eg.
DrawLine, DrawRectangle, etc. Note: there is a difference between 0 and 1, but i have to learn more about it eg. 0 is faster and the like |
| ||
Sets the mode for the drawing operations. Possible values are:
|
| ||
| ||
Pen for windows |
| ||
Width of 'str' when printed with the current font. |
| ||
| ||
Adds a clipping rectangle to the pens current clipping region. Note: when the pen has no clipping region yet, this method doesn't do anything. I guess we will change the behaviour by the time. |