Logo Search packages:      
Sourcecode: inkscape version File versions

NRPixBlock* nr_pixblock_new ( NR_PIXBLOCK_MODE  mode,
int  x0,
int  y0,
int  x1,
int  y1,
bool  clear 

Allocates NRPixBlock and sets it up.

Pointer to fresh pixblock. Calls g_new() and nr_pixblock_setup(). FIXME: currently unused, delete? JG: Should be used more often! (To simplify memory management.)

Definition at line 220 of file nr-pixblock.cpp.

      NRPixBlock *pb;

      pb = g_new (NRPixBlock, 1);
    if (!pb) return 0;

      nr_pixblock_setup (pb, mode, x0, y0, x1, y1, clear);
    if (pb->size!=NR_PIXBLOCK_SIZE_TINY && !pb->data.px) {
        return 0;

      return pb;

Generated by  Doxygen 1.6.0   Back to index