Annotation of parser3/src/types/pa_vimage.C, revision 1.2

1.1       paf         1: /** @image
                      2:        Parser: @b image parser type.
                      3: 
                      4:        Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com)
                      5: 
                      6:        Author: Alexander Petrosyan <paf@design.ru>(http://design.ru/paf)
                      7: 
1.2     ! paf         8:        $Id: pa_vimage.C,v 1.1 2001/04/10 13:22:57 paf Exp $
1.1       paf         9: */
                     10: 
                     11: #include "pa_vimage.h"
                     12: #include "pa_vint.h"
                     13: #include "pa_vstring.h"
                     14: 
                     15: void VImage::set(const String& src, int width, int height) {
                     16:        // $src
                     17:        ffields.put(String(pool(), "src"), NEW VString(src));
                     18:        // $width
                     19:        if(width)
                     20:                ffields.put(String(pool(), "width"), NEW VInt(pool(), width));
                     21:        // $height
                     22:        if(height)
                     23:                ffields.put(String(pool(), "height"), NEW VInt(pool(), height));
1.2     ! paf        24: 
        !            25:        // defaults
        !            26:        // $border[0] 
        !            27:        ffields.put(String(pool(), "border"), NEW VInt(pool(), 0));
1.1       paf        28: }

E-mail: