[archived content]

module dfl.drawing;
public class Bitmap: Image
{
public void dispose();
public final void draw(Graphics g,Point pt,Graphics tempMemGraphics);
public final void draw(Graphics g,Point pt);
public final void drawStretched(Graphics g,Rect r,Graphics tempMemGraphics);
public final void drawStretched(Graphics g,Rect r);
public final HBITMAP handle; [property getter]
public final int height; [property getter]
public final Size size; [property getter]
public final int width; [property getter]
[+] Inherited members
}
public class Brush
{
public final HBRUSH handle; [property getter]
}
public struct Color
{
public Color solidColor(Color backColor);
public Color blendColor(Color wc);
public static Color transparent; [property getter]
public static Color empty; [property getter]
public static Color fromRgb(ubyte alpha,COLORREF rgb);
public static Color fromRgb(COLORREF rgb);
public static Color fromArgb(ubyte alpha,ubyte red,ubyte green,ubyte blue);
public static Color opCall(ubyte alpha,ubyte red,ubyte green,ubyte blue);
public static Color opCall(ubyte red,ubyte green,ubyte blue);
public static Color opCall(ubyte alpha,Color c);
public COLORREF toRgb();
public COLORREF toArgb();
public ubyte a; [property getter]
public ubyte b; [property getter]
public ubyte g; [property getter]
public ubyte r; [property getter]
}
public class Font
{
public final ubyte gdiCharSet; [property getter]
public final float getSize(GraphicsUnit unit,Graphics g);
public final float getSize(GraphicsUnit unit);
public final HFONT handle; [property getter]
public final char[] name; [property getter]
public final float size; [property getter]
public final FontStyle style; [property getter]
public final GraphicsUnit unit; [property getter]
}
public enum FontSmoothing;
public enum FontStyle;
public class Graphics
{
public final bool copyTo(Graphics destGraphics,int destX,int destY,int width,int height,int srcX = 0,int srcY = 0,DWORD rop = SRCCOPY);
public final bool copyTo(Graphics destGraphics,Rect bounds);
public void dispose();
public final void drawArc(Pen pen,int x,int y,int width,int height,int arcX1,int arcY1,int arcX2,int arcY2);
public final void drawArc(Pen pen,Rect r,Point arc1,Point arc2);
public final void drawBezier(Pen pen,Point[4] points);
public final void drawBezier(Pen pen,Point pt1,Point pt2,Point pt3,Point pt4);
public final void drawBeziers(Pen pen,Point[] points);
public final void drawEllipse(Pen pen,int x,int y,int width,int height);
public final void drawEllipse(Pen pen,Rect r);
public final void drawIcon(Icon icon,Rect r);
public final void drawIcon(Icon icon,int x,int y);
public final void drawLine(Pen pen,int startX,int startY,int endX,int endY);
public final void drawLine(Pen pen,Point start,Point end);
public final void drawLines(Pen pen,Point[] points);
public final void drawPolygon(Pen pen,Point[] points);
public final void drawRectangle(Pen pen,Rect r);
public final void drawRectangle(Pen pen,int x,int y,int width,int height);
public final void drawRectangles(Pen pen,Rect[] rs);
public final void drawText(char[] text,Font font,Color color,Rect r);
public final void drawText(char[] text,Font font,Color color,Rect r,TextFormat fmt);
public final void drawTextDisabled(char[] text,Font font,Color color,Color backColor,Rect r,TextFormat fmt);
public final void drawTextDisabled(char[] text,Font font,Color color,Color backColor,Rect r);
public final void fillRectangle(Brush brush,int x,int y,int width,int height);
public final void fillRectangle(Brush brush,Rect r);
public final void fillRectangle(Color color,Rect r);
public final void fillRectangle(Color color,int x,int y,int width,int height);
public final void fillRegion(Brush brush,Region region);
public final void flush();
public static Graphics fromHwnd(HWND hwnd);
public final Color getNearestColor(Color c);
public final Size getScaleSize(Font f);
public static Graphics getScreen();
public final char[] getTrimmedText(char[] text,Font font,Rect r,TextTrimming trim);
public final HDC handle; [property getter]
public final Size measureText(char[] text,Font font,int maxWidth,TextFormat fmt);
public final Size measureText(char[] text,Font font,TextFormat fmt);
public final Size measureText(char[] text,Font font,int maxWidth);
public final Size measureText(char[] text,Font font);
}
public enum GraphicsUnit;
public class HatchBrush: Brush
{
public final Color foregroundColor; [property getter]
public final HatchStyle hatchStyle; [property getter]
[+] Inherited members
}
public enum HatchStyle;
public class Icon: Image
{
public void dispose();
public final void draw(Graphics g,Point pt);
public final void drawStretched(Graphics g,Rect r);
public final HICON handle; [property getter]
public final int height; [property getter]
public final Size size; [property getter]
public final Bitmap toBitmap();
public final int width; [property getter]
[+] Inherited members
}
public class Image
{
public void draw(Graphics g,Point pt);
public void drawStretched(Graphics g,Rect r);
public int height; [property getter]
public Size size; [property getter]
public int width; [property getter]
}
public class MemoryGraphics: Graphics
{
public void dispose();
public final HBITMAP hbitmap; [property getter]
public final int height; [property getter]
public final Size size; [property getter]
public final Bitmap toBitmap(Graphics g);
public final Bitmap toBitmap();
public final int width; [property getter]
[+] Inherited members
}
public class Pen
{
public final HPEN handle; [property getter]
}
public enum PenStyle;
public class Picture: Image
{
public void dispose();
public final void draw(Graphics g,Point pt);
public final void drawStretched(Graphics g,Rect r);
public static Picture fromFile(char[] fileName);
public static Picture fromStream(DStream stm);
public final int getHeight(Graphics g);
public final Size getSize(Graphics g);
public final int getWidth(Graphics g);
public final int height; [property getter]
public final OLE_XSIZE_HIMETRIC loghimX; [property getter]
public final OLE_YSIZE_HIMETRIC loghimY; [property getter]
public final Size size; [property getter]
public final Bitmap toBitmap(Graphics g);
public final Bitmap toBitmap();
public final int width; [property getter]
[+] Inherited members
}
public struct Point
{
public Point opNeg();
public void opSubAssign(Size sz);
public void opAddAssign(Size sz);
public Point opSub(Size sz);
public Point opAdd(Size sz);
public int opEquals(Point pt);
public static Point opCall();
public static Point opCall(int x,int y);
public LONG y;
public LONG x;
}
public struct Rect
{
public void offset(Point pt);
public void offset(int x,int y);
public bool intersectsWith(Rect r);
public void inflate(Size insz);
public void inflate(int i_width,int i_height);
public bool contains(Rect r);
public bool contains(Point pos);
public bool contains(int c_x,int c_y);
public int opEquals(Rect r);
public static Rect fromLTRB(int left,int top,int right,int bottom);
public static Rect opCall();
public static Rect opCall(Point location,Size size);
public static Rect opCall(int x,int y,int width,int height);
public int bottom; [property getter]
public int right; [property getter]
public Size size; [property setter]
public Size size; [property getter]
public Point location; [property setter]
public Point location; [property getter]
public int height;
public int width;
public int y;
public int x;
}
public class Region
{
public final HRGN handle; [property getter]
public int opEquals(Region rgn);
public int opEquals(Object o);
}
public class Screen
{
public Rect bounds; [property getter]
public static Screen primaryScreen; [property getter]
public Rect workingArea; [property getter]
}
public struct Size
{
public void opSubAssign(Size sz);
public void opAddAssign(Size sz);
public Size opSub(Size sz);
public Size opAdd(Size sz);
public int opEquals(Size sz);
public static Size opCall();
public static Size opCall(int width,int height);
public int height;
public int width;
}
public class SolidBrush: Brush
{
public final Color color; [property getter]
[+] Inherited members
}
public class SystemColors
{
public static Color activeBorder; [property getter]
public static Color activeCaption; [property getter]
public static Color activeCaptionText; [property getter]
public static Color appWorkspace; [property getter]
public static Color control; [property getter]
public static Color controlDark; [property getter]
public static Color controlDarkDark; [property getter]
public static Color controlLight; [property getter]
public static Color controlLightLight; [property getter]
public static Color controlText; [property getter]
public static Color desktop; [property getter]
public static Color grayText; [property getter]
public static Color highlight; [property getter]
public static Color highlightText; [property getter]
public static Color hotTrack; [property getter]
public static Color inactiveBorder; [property getter]
public static Color inactiveCaption; [property getter]
public static Color inactiveCaptionText; [property getter]
public static Color info; [property getter]
public static Color infoText; [property getter]
public static Color menu; [property getter]
public static Color menuText; [property getter]
public static Color scrollBar; [property getter]
public static Color window; [property getter]
public static Color windowFrame; [property getter]
public static Color windowText; [property getter]
}
public class SystemIcons
{
public static Icon application; [property getter]
public static Icon error; [property getter]
public static Icon information; [property getter]
public static Icon question; [property getter]
public static Icon warning; [property getter]
}
public enum TextAlignment;
public class TextFormat
{
public final TextAlignment alignment; [property getter]
public final TextAlignment alignment; [property setter]
public final TextFormatFlags formatFlags; [property getter]
public final TextFormatFlags formatFlags; [property setter]
public static TextFormat genericDefault; [property getter]
public static TextFormat genericTypographic; [property getter]
public final int leftMargin; [property setter]
public final int leftMargin; [property getter]
public final int rightMargin; [property setter]
public final int rightMargin; [property getter]
public final int tabLength; [property setter]
public final int tabLength; [property getter]
public final TextTrimming trimming; [property getter]
public final TextTrimming trimming; [property getter]
}
public enum TextFormatFlags;
public enum TextTrimming;

Page last modified on May 18, 2005, at 02:48 PM