HTMLRenderingLib - Types and constants

 

HRReference

typedef struct OpaqueHRReference *HRReference;

HRReference is an opaque type used to refer to HTML rendering objects allocated by your application.

return to index

 

kHRRendererHTML32Type

enum {
        kHRRendererHTML32Type = 'ht32'
};
   

Is a constant used to request a particular renderer type in calls to HRNewReference. Currently kHRRendererHTML32Type is the only type of HTML renderer defined by HTMLRenderingLib.

return to index

 

HRScrollbarState

typedef SInt16 HRScrollbarState;
enum {
        eHRScrollbarOn = 0,
        eHRScrollbarOff = 1,
        eHRScrollbarAuto = 2 /* the default */
};

HRScrollbarState a data type passed to HRSetScrollbarState to request particular display modes for the scroll bars drawn in the area assigned to an HTML rendering object. The meanings of the three possible values are defined as follows:

return to index

 

 URLSourceType

typedef UInt16 URLSourceType;
enum {
        kHRLookingForHTMLSource = 1,
        kHRLookingForImage = 2,
        kHRLookingForEmbedded = 3,
        kHRLookingForImageMap = 4,
        kHRLookingForFrame = 5
};

URLSourceType defines a data type passed to your custom URL to FSSpec routine that identifies the type of file being requested. Your application can use this parameter to verify that it has located a file of the correct type for the requested URL. Definitions for the five possible values are as follows:

return to index