~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to include/gal/cairo/cairo_gal.h

  • Committer: Pierre Parent
  • Date: 2014-07-06 10:32:13 UTC
  • mfrom: (4798.1.179 kicad)
  • Revision ID: pierre.parent@insa-rouen.fr-20140706103213-wjsdy0hc9q6wbz5v
Merge with lp:kicad 4977

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    virtual void Flush();
136
136
 
137
137
    /// @copydoc GAL::ClearScreen()
138
 
    virtual void ClearScreen();
 
138
    virtual void ClearScreen( const COLOR4D& aColor );
139
139
 
140
140
    // -----------------
141
141
    // Attribute setting
164
164
    // --------------
165
165
 
166
166
    /// @copydoc GAL::Transform()
167
 
    virtual void Transform( MATRIX3x3D aTransformation );
 
167
    virtual void Transform( const MATRIX3x3D& aTransformation );
168
168
 
169
169
    /// @copydoc GAL::Rotate()
170
170
    virtual void Rotate( double aAngle );
283
283
    wxPoint                 savedCursorPosition;    ///< The last cursor position
284
284
    wxBitmap*               cursorPixels;           ///< Cursor pixels
285
285
    wxBitmap*               cursorPixelsSaved;      ///< Saved cursor pixels
286
 
    int                     cursorSize;             ///< Cursor size
287
 
    VECTOR2D                cursorPosition;         ///< Current cursor position
288
286
 
289
287
    /// Maximum number of arguments for one command
290
288
    static const int MAX_CAIRO_ARGUMENTS = 6;
311
309
    /// Type definition for an graphics group element
312
310
    typedef struct
313
311
    {
314
 
        GRAPHICS_COMMAND command;                    ///< Command to execute
 
312
        GRAPHICS_COMMAND command;                   ///< Command to execute
315
313
        double arguments[MAX_CAIRO_ARGUMENTS];      ///< Arguments for Cairo commands
316
314
        bool boolArgument;                          ///< A bool argument
317
315
        int intArgument;                            ///< An int argument
335
333
    unsigned int*       bitmapBufferBackup;     ///< Backup storage of the cairo image
336
334
    int                 stride;                 ///< Stride value for Cairo
337
335
    bool                isInitialized;          ///< Are Cairo image & surface ready to use
 
336
    COLOR4D             backgroundColor;        ///< Background color
338
337
 
339
338
    // Methods
340
339
    void storePath();                           ///< Store the actual path
354
353
     */
355
354
    void skipMouseEvent( wxMouseEvent& aEvent );
356
355
 
357
 
    /// @copydoc GAL::initCursor()
358
 
    virtual void initCursor( int aCursorSize );
 
356
    /**
 
357
     * @brief Prepares cursor bitmap.
 
358
     */
 
359
    virtual void initCursor();
359
360
 
360
361
    /**
361
362
     * @brief Blits cursor into the current screen.
386
387
 
387
388
    /// Format used to store pixels
388
389
    static const cairo_format_t GAL_FORMAT = CAIRO_FORMAT_RGB24;
 
390
 
 
391
    ///> Opacity of a single layer
 
392
    static const float LAYER_ALPHA;
389
393
};
390
394
} // namespace KIGFX
391
395