Changeset 71

Show
Ignore:
Timestamp:
05/19/07 15:35:35 (2 years ago)
Author:
lindquist
Message:

removed GXContext
documentation update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/bughunt/docs/minwin/group.d

    r44 r71  
    2323 
    2424/// A group of components layed out in a rectanguluar area with a border and title around the edge. 
    25 class GroupBox : WindowChild 
     25/// $(WIN32 really derived from Group) 
     26/// $(GTK really derived from WindowChild) 
     27class GroupBox : Component 
    2628{ 
    2729    /// Construct an empty GroupBox with given parent, title and name. 
  • branches/bughunt/docs/minwin/paint.d

    r44 r71  
    55module minwin.paint; 
    66 
    7 /// 
     7/// Return a new GContext 
    88GContext newGContext(); 
    99 
     
    1818    Dot, 
    1919    /// Alternating dashes and dots. 
    20     DashDot 
     20    DashDot, 
     21    /// Invisible 
     22    None 
    2123} 
    2224 
     
    4749 
    4850typedef void* GContextPeer_; 
     51 
    4952/// Platform-specific graphics context type. 
    5053/// $(PLATFORMS HDC, GdkGC*) 
    5154alias GContextPeer_ GContextPeer; 
    5255 
     56/// Structure used to describe a pen. 
     57struct PenData 
     58{ 
     59    /// Writable property for the pen width. 
     60    uint width; 
     61    /// Writable property for the pen color. 
     62    Color color; 
     63    /// Writable property for the pen style. 
     64    PenStyle style; 
     65    /// Writable property for the pen line joining method. 
     66    LineJoin lineJoin; 
     67} 
     68 
     69/// Pen class used for drawing lines. 
     70class Pen 
     71{ 
     72    /// Creates a new Pen from the given data. 
     73    this(PenData* data); 
     74    /// Creates a new Pen with a color setting. 
     75    this(Color color); 
     76} 
     77 
     78/// Brush class used for filling shapes 
     79class Brush 
     80{ 
     81    /// Creates a new Brush with the given color. 
     82    this(Color color); 
     83} 
     84 
    5385/// A GContext is a simple 2D drawing API similar to a Windows DC and an X11 Graphics Context. 
    54 /// TODO 
    5586class GContext 
    5687{ 
     88    /// 
     89    GContextPeer peer; 
     90    /// 
     91    int hasPeer; 
     92    /// 
     93    void dispose(); 
     94    /// 
     95    void disposePeer(); 
     96    /// 
     97    Rect updateRect(); 
     98    /// 
     99    Font setFont(Font f); 
     100    /// 
     101    void getFontMetrics(inout FontMetrics fm); 
     102    /// 
     103    Pen setPen(Pen p); 
     104    /// 
     105    Brush setBrush(Brush b); 
     106    /// 
     107    void getClip(Region r); 
     108    /// 
     109    void setClip(Region r); 
     110    /// 
     111    void DrawRect(inout Rect r); 
     112    /// 
     113    void fillRect(inout Rect r); 
     114    /// 
     115    void drawText(int x, int y, char[] txt); 
     116    /// 
     117    void drawLine(int x1, int y1, int x2, int y2); 
     118    /// 
     119    void drawPolyline(Point[] pts); 
     120    /// 
     121    void drawPolygon(Point[] pts); 
     122    /// 
     123    void fillPolygon(Point[] pts); 
     124    /// 
     125    void drawImage(Image im, int x, int y, PaintMode mode = PaintMode.Copy); 
     126    /// 
     127    void stretchImage(Image im, int x, int y, int w, int h, PaintMode mode = PaintMode.Copy); 
     128    /// 
     129    void drawSubImage(Image im, int x, int y, int sx, int sy, int sw, int sh, PaintMode mode = PaintMode.Copy); 
     130    /// 
     131    void stretchSubImage(Image im, int x, int y, int w, int h, int sx, int sy, int sw, int sh, PaintMode mode = PaintMode.Copy); 
     132    /// 
     133    void flush(); 
    57134} 
    58  
    59 /// A GXContext is a more advanced painting API that is similar to GDI+ or Quartz. 
    60 /// TODO 
    61 class GXContext 
    62 { 
    63 } 
  • branches/bughunt/minwin/paint.d

    r69 r71  
    9393 
    9494    alias HDC GContextPeer; 
    95  
    96     class GXContext { } // GDI+ 
    9795 
    9896    alias HPEN PenPeer; 
     
    410408 
    411409    alias GdkGC* GContextPeer; 
    412  
    413     class GXContext { } // not impl in GDK 
    414410 
    415411    class GContext {