Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
EMFHANDLES Struct Reference

The various create functions need a place to put their handles, these are stored in the table below. More...

#include <uemf.h>

Public Attributes

uint32_t * table
 Array Buffer for constructing the EMF in memory.
 
uint32_t * stack
 handles are either on the stack or in the table
 
size_t allocated
 Slots in the buffer.
 
size_t chunk
 Number to add if a realloc is required.
 
uint32_t sptr
 Pointer to next available handle in the stack.
 
uint32_t top
 Highest slot occupied (currently)
 
uint32_t peak
 Highest slot occupied (ever)
 

Detailed Description

The various create functions need a place to put their handles, these are stored in the table below.

We don't actually do anything much with these handles, that is up to whatever program finally plays back the EMF, but we do need to keep track of the numbers so that they are not accidentally reused. This structure is used for that, and all *_set functions that touch a handle reference it.

Stock objects are not used in this limited model, so libUEMF cannot detect if a handle is still in use. Nor can it tell when a handle has been deselected (by selecting another handle for the same type of graphic object, and thus made deleteable). End user code must keep track of this for itself.

Definition at line 3327 of file uemf.h.

Member Data Documentation

◆ allocated

size_t EMFHANDLES::allocated

Slots in the buffer.

Definition at line 3330 of file uemf.h.

◆ chunk

size_t EMFHANDLES::chunk

Number to add if a realloc is required.

Definition at line 3331 of file uemf.h.

◆ peak

uint32_t EMFHANDLES::peak

Highest slot occupied (ever)

Definition at line 3334 of file uemf.h.

◆ sptr

uint32_t EMFHANDLES::sptr

Pointer to next available handle in the stack.

Definition at line 3332 of file uemf.h.

◆ stack

uint32_t* EMFHANDLES::stack

handles are either on the stack or in the table

Definition at line 3329 of file uemf.h.

◆ table

uint32_t* EMFHANDLES::table

Array Buffer for constructing the EMF in memory.

Definition at line 3328 of file uemf.h.

◆ top

uint32_t EMFHANDLES::top

Highest slot occupied (currently)

Definition at line 3333 of file uemf.h.


The documentation for this struct was generated from the following file: