Show
Ignore:
Timestamp:
08/15/08 13:25:16 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35774

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/WKAL/Skeletons/Graphics/Image.t

    r323 r437  
    6767    friend class GeneratedImage; 
    6868    friend class GraphicsContext; 
    69 public: 
    70     /** 
    71      * Image construtor 
    72      * @param[in] : image observer 
    73      * @code 
    74      * Image *i = new Image(); 
    75      * @endcode 
    76      */ 
    77     Image(ImageObserver* = 0); 
     69publi 
    7870 
    7971    /** 
     
    8577    virtual ~Image(); 
    8678     
     79 
     80    /** 
     81     * create an image 
     82     * @param[in] : imageObserver 
     83     * @param[out] : image 
     84     */ 
     85    static PassRefPtr<Image> create(ImageObserver* = 0); 
     86 
    8787    /** 
    8888     * load platform resource  
     
    9393     * @endcode 
    9494     */ 
    95     static Image* loadPlatformResource(const char* name); 
     95    static PassRefPtr<Image> loadPlatformResource(const char* name); 
    9696 
    9797    /** 
     
    114114    virtual bool isBitmapImage() const ; 
    115115     
     116 
     117    /** 
     118     * get a nullImage 
     119     * @param[out] : null image 
     120     */ 
     121    static Image* nullImage(); 
     122 
    116123    /** 
    117124     * test if the image is null 
     
    226233     * @endcode 
    227234     */ 
    228     virtual void destroyDecodedData(bool incremental = false)
     235    virtual void destroyDecodedData(bool incremental = false) = 0
    229236 
    230237    /** 
     
    235242     * @endcode 
    236243     */ 
    237     virtual unsigned decodedSize() const
     244    virtual unsigned decodedSize() const = 0
    238245 
    239246    /** 
     
    288295protected: 
    289296    /** 
    290      * fill with solid color 
    291      */ 
     297     * image constructor 
     298     **/ 
     299    Image(ImageObserver* = 0); 
     300  
     301    /** 
     302     * fillWithSolidColor 
     303     **/ 
    292304    static void fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, CompositeOperator op); 
    293305 
    294 protected: 
    295306    /** 
    296307     * draw 
    297308     */ 
    298     virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator) = 0; 
    299  
     309    virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator) = 0 
    300310    /** 
    301311     *  drawTiled 
    302312     */ 
    303313    void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, CompositeOperator); 
     314 
    304315    /** 
    305316     *  drawTiled 
     
    309320    // Supporting tiled drawing 
    310321    /** 
    311      * mayFillWithSolidColor 
     322     * mayFillWithSolidColor 
    312323     */ 
    313324    virtual bool mayFillWithSolidColor() const ; 
     325 
    314326    /** 
    315327     *  solidColor  
    316328     */ 
    317329    virtual Color solidColor() const ; 
    318      
    319     /** 
    320      * startAnimation 
     330 
     331    /** 
     332     * startAnimation 
    321333     */ 
    322334    virtual void startAnimation() ; 
     
    334346 
    335347} 
    336  
    337 #endif 
    338  
    339  
    340  
    341