#include <X11/Intrinsic.h>#include <Xm/Xm.h>#include <mi32/html.h>
Go to the source code of this file.
Defines | |
| #define | XMHTMLEXPORT extern |
| #define | XmHTMLREVISION 1 |
| #define | XmHTMLTextSet |
| #define | XmHTMLUPDATE_LEVEL 5 |
| #define | XmHTMLVersion (XmHTMLVERSION * 1000 + XmHTMLREVISION * 100 + XmHTMLUPDATE_LEVEL) |
| #define | XmHTMLVERSION 1 |
| #define | XmHTMLVERSION_STRING "XmHTML Beta Version 1.1.5 (C)Ripley Software Development" |
| #define | XmIsHTML(w) XtIsSubclass(w, xmHTMLWidgetClass) |
Typedefs | |
| typedef unsigned char | CHAR |
| typedef struct _XmHTMLRec * | XmHTMLWidget |
| typedef typedef_XFUNCPROTOBEGIN struct _XmHTMLClassRec * | XmHTMLWidgetClass |
Functions | |
| XMHTMLEXPORT void | _XmHTMLSetTkaOverrideFunc (void(*)(void *, void *), void *) |
| XMHTMLEXPORT Widget | XmCreateHTML (Widget parent, String name, ArgList arglist, Cardinal argcount) |
| XMHTMLEXPORT Pixel | XmHTMLAllocColor (Widget w, String color, Pixel def_pixel) |
| XMHTMLEXPORT int | XmHTMLAnchorGetId (Widget w, String anchor) |
| XMHTMLEXPORT void | XmHTMLAnchorReEval (Widget w, String href, Boolean visited) |
| XMHTMLEXPORT void | XmHTMLAnchorScrollToId (Widget w, int anchor_id) |
| XMHTMLEXPORT void | XmHTMLAnchorScrollToName (Widget w, String anchor) |
| XMHTMLEXPORT Boolean | XmHTMLAnchorVisibleById (Widget w, int anchor_id) |
| XMHTMLEXPORT Boolean | XmHTMLAnchorVisibleByName (Widget w, String anchor) |
| XMHTMLEXPORT Widget | XmHTMLFrameGetChild (Widget w, String name) |
| XMHTMLEXPORT void | XmHTMLFreeColor (Widget w, Pixel pixel) |
| XMHTMLEXPORT void | XmHTMLFreeDocumentInfo (XmHTMLDocumentInfo *doc_info) |
| XMHTMLEXPORT void | XmHTMLFreeFontCacheInfo (XmHTMLFontCacheInfo *info) |
| XMHTMLEXPORT XmHTMLDocumentInfo * | XmHTMLGetDocumentInfo (Widget w) |
| XMHTMLEXPORT XmHTMLFontCacheInfo * | XmHTMLGetFontCacheInfo (Widget w) |
| XMHTMLEXPORT Boolean | XmHTMLGetHeadAttributes (Widget w, XmHTMLHeadAttributes *head, unsigned char mask_bits) |
| XMHTMLEXPORT String | XmHTMLGetTitle (Widget w) |
| XMHTMLEXPORT URLType | XmHTMLGetURLType (String href) |
| XMHTMLEXPORT int | XmHTMLGetVersion (void) |
| XMHTMLEXPORT Boolean | XmHTMLGIFtoGZF (String infile, unsigned char *buf, int size, String outfile) |
| XMHTMLEXPORT void | XmHTMLImageAddImageMap (Widget w, String image_map) |
| XMHTMLEXPORT XmImageInfo * | XmHTMLImageDefaultProc (Widget w, String file, unsigned char *buf, int size) |
| XMHTMLEXPORT void | XmHTMLImageFreeAllImages (Widget w) |
| XMHTMLEXPORT void | XmHTMLImageFreeImageInfo (Widget w, XmImageInfo *info) |
| XMHTMLEXPORT int | XmHTMLImageGetImageInfoSize (XmImageInfo *info) |
| XMHTMLEXPORT unsigned char | XmHTMLImageGetType (String file, unsigned char *buf, int size) |
| XMHTMLEXPORT Boolean | XmHTMLImageGZFSupported (void) |
| XMHTMLEXPORT Boolean | XmHTMLImageJPEGSupported (void) |
| XMHTMLEXPORT Boolean | XmHTMLImagePNGSupported (void) |
| XMHTMLEXPORT void | XmHTMLImageProgressiveContinue (Widget w) |
| XMHTMLEXPORT void | XmHTMLImageProgressiveKill (Widget w) |
| XMHTMLEXPORT void | XmHTMLImageProgressiveSuspend (Widget w) |
| XMHTMLEXPORT XmImageStatus | XmHTMLImageReplace (Widget w, XmImageInfo *image, XmImageInfo *new_image) |
| XMHTMLEXPORT XmImageStatus | XmHTMLImageUpdate (Widget w, XmImageInfo *image) |
| XMHTMLEXPORT void | XmHTMLRedisplay (Widget w) |
| XMHTMLEXPORT Boolean | XmHTMLTagCheck (String attributes, String tag) |
| XMHTMLEXPORT int | XmHTMLTagCheckNumber (String attributes, String tag, int default_value) |
| XMHTMLEXPORT Boolean | XmHTMLTagCheckValue (String attributes, String tag, String check) |
| XMHTMLEXPORT int | XmHTMLTagGetNumber (String attributes, String tag, int default_value) |
| XMHTMLEXPORT String | XmHTMLTagGetValue (String attributes, String tag) |
| XMHTMLEXPORT void | XmHTMLTextClearSelection (Widget w, Time time) |
| XMHTMLEXPORT Boolean | XmHTMLTextCopy (Widget w, Time time) |
| XMHTMLEXPORT XmHTMLTextFinder | XmHTMLTextFinderCreate (Widget w) |
| XMHTMLEXPORT void | XmHTMLTextFinderDestroy (XmHTMLTextFinder finder) |
| XMHTMLEXPORT int | XmHTMLTextFinderGetError (XmHTMLTextFinder finder) |
| XMHTMLEXPORT String | XmHTMLTextFinderGetErrorString (XmHTMLTextFinder finder) |
| XMHTMLEXPORT void | XmHTMLTextFinderReset (XmHTMLTextFinder finder) |
| XMHTMLEXPORT Boolean | XmHTMLTextFinderSetPattern (XmHTMLTextFinder finder, String to_find) |
| XMHTMLEXPORT Boolean | XmHTMLTextFinderSetPatternFlags (XmHTMLTextFinder finder, int flags, Boolean ignore_case, XmHTMLDirection direction) |
| XMHTMLEXPORT XmHTMLRegexStatus | XmHTMLTextFindString (Widget w, XmHTMLTextFinder finder) |
| XMHTMLEXPORT Boolean | XmHTMLTextFindToPosition (Widget w, XmHTMLTextFinder finder, XmHTMLTextPosition *start, XmHTMLTextPosition *end) |
| XMHTMLEXPORT String | XmHTMLTextGetFormatted (Widget w, unsigned char papertype, XmHTMLPaperSize *paperdef, unsigned char type, unsigned char PSoptions) |
| XMHTMLEXPORT String | XmHTMLTextGetSelection (Widget w) |
| XMHTMLEXPORT String | XmHTMLTextGetSource (Widget w) |
| XMHTMLEXPORT String | XmHTMLTextGetString (Widget w) |
| XMHTMLEXPORT void | XmHTMLTextScrollToLine (Widget w, int line) |
| XMHTMLEXPORT void | XmHTMLTextSetHighlight (Widget w, XmHTMLTextPosition first, XmHTMLTextPosition last, XmHighlightMode mode) |
| XMHTMLEXPORT Boolean | XmHTMLTextSetSelection (Widget w, XmHTMLTextPosition first, XmHTMLTextPosition last, Time time) |
| XMHTMLEXPORT void | XmHTMLTextSetString (Widget w, String text) |
| XMHTMLEXPORT void | XmHTMLTextSetStringWithLength (Widget w, String text, size_t len) |
| XMHTMLEXPORT Boolean | XmHTMLTextShowPosition (Widget w, XmHTMLTextPosition position) |
| XMHTMLEXPORT XmHTMLInfoStructure * | XmHTMLXYToInfo (Widget w, int x, int y) |
| XMHTMLEXPORT XmImage * | XmImageCreate (Widget w, String file, Dimension width, Dimension height, XmImageConfig *config) |
| XMHTMLEXPORT XmImage * | XmImageCreateFromInfo (Widget w, XmImageInfo *info, Dimension width, Dimension height, XmImageConfig *config) |
| XMHTMLEXPORT void | XmImageDestroy (XmImage *image) |
| XMHTMLEXPORT int | XmImageDrawImage (XmImage *image, Drawable dest, int src_x, int src_y, int dest_x, int dest_y) |
| XMHTMLEXPORT Boolean | XmImageExport (XmImageInfo *info, String file, Dimension width, Dimension height, unsigned char type) |
| XMHTMLEXPORT int | XmImageSetBackgroundImage (XmImage *src, Drawable dest, int src_x, int src_y, int width, int height, int dest_x, int dest_y) |
Variables | |
| XMHTMLEXPORT WidgetClass | xmHTMLWidgetClass |
| #define XMHTMLEXPORT extern |
| #define XmHTMLREVISION 1 |
| #define XmHTMLTextSet |
(WIDGET,TEXT) XtVaSetValues((WIDGET), \
XmNvalue, (TEXT), NULL)
| #define XmHTMLUPDATE_LEVEL 5 |
| #define XmHTMLVersion (XmHTMLVERSION * 1000 + XmHTMLREVISION * 100 + XmHTMLUPDATE_LEVEL) |
| #define XmHTMLVERSION 1 |
| #define XmHTMLVERSION_STRING "XmHTML Beta Version 1.1.5 (C)Ripley Software Development" |
| #define XmIsHTML | ( | w | ) | XtIsSubclass(w, xmHTMLWidgetClass) |
XmIsHTML.
| typedef unsigned char CHAR |
MIUNICODE CHAR_ALREADY_TYPEDEFED.
| typedef struct _XmHTMLRec* XmHTMLWidget |
| typedef typedef_XFUNCPROTOBEGIN struct _XmHTMLClassRec* XmHTMLWidgetClass |
< Should do the following but doesn't on sprite?
| XMHTMLEXPORT void _XmHTMLSetTkaOverrideFunc | ( | void(*)(void *, void *) | , | |
| void * | ||||
| ) |
Function that won't be needed once we can specify a tka as a resource.
Creates an XmHTML widget.
| parent | widget to act as parent for this new XmHTMLWidget | |
| name | name for the new widget | |
| arglist | arguments for this new XmHTMLWidget | |
| argcount | number of arguments |
| XMHTMLEXPORT Pixel XmHTMLAllocColor | ( | Widget | w, | |
| String | color, | |||
| Pixel | def_pixel | |||
| ) |
Allocates the named color and takes the XmNmaxImageColors resource into account.
| w | XmHTMLWidget id | |
| color | colorname, either symbolic or an RGB triplet | |
| def_pixel | pixel to return when allocation of color fails |
| XMHTMLEXPORT int XmHTMLAnchorGetId | ( | Widget | w, | |
| String | anchor | |||
| ) |
Returns the internal id of an anchor.
| w | XmHTMLWidget | |
| anchor | anchor to locate |
| XMHTMLEXPORT void XmHTMLAnchorReEval | ( | Widget | w, | |
| String | href, | |||
| Boolean | visited | |||
| ) |
Checks an HTML instance against a current href name.
| w | html widget | |
| href | current anchors reference | |
| visited | href visited |
| XMHTMLEXPORT void XmHTMLAnchorScrollToId | ( | Widget | w, | |
| int | anchor_id | |||
| ) |
Moves the text with the current anchor on top.
| w | XmHTMLWidget | |
| anchor_id | internal anchor id to scroll to |
| XMHTMLEXPORT void XmHTMLAnchorScrollToName | ( | Widget | w, | |
| String | anchor | |||
| ) |
Moves the text with the current anchor on top.
| w | XmHTMLWidget | |
| anchor | anchor to scroll to |
| XMHTMLEXPORT Boolean XmHTMLAnchorVisibleById | ( | Widget | w, | |
| int | anchor_id | |||
| ) |
Figure out if the given anchor is in the visible area.
| w | XmHTMLWidget id | |
| anchor_id | ID of anchor for which to test visibility |
| XMHTMLEXPORT Boolean XmHTMLAnchorVisibleByName | ( | Widget | w, | |
| String | anchor | |||
| ) |
Figure out if the given anchor is in the visible area.
| w | XmHTMLWidget id | |
| anchor | NAME of anchor for which to test visibility |
Returns the Widget id of a frame child given it's name.
| w | XmHTMLWidget | |
| name | name of frame to locate |
| XMHTMLEXPORT void XmHTMLFreeColor | ( | Widget | w, | |
| Pixel | pixel | |||
| ) |
Releases an allocated pixel.
| w | XmHTMLWidget id | |
| pixel | pixel to be freed |
| XMHTMLEXPORT void XmHTMLFreeDocumentInfo | ( | XmHTMLDocumentInfo * | doc_info | ) |
| XMHTMLEXPORT void XmHTMLFreeFontCacheInfo | ( | XmHTMLFontCacheInfo * | info | ) |
Frees the given font cache info.
| info | font cache info to free |
| XMHTMLEXPORT XmHTMLDocumentInfo* XmHTMLGetDocumentInfo | ( | Widget | w | ) |
Returns a list of all images and anchors found in the currently displayed page.
| w | XmHTMLWidget id |
| XMHTMLEXPORT XmHTMLFontCacheInfo* XmHTMLGetFontCacheInfo | ( | Widget | w | ) |
Returns info about the font cache for display of the given widget.
| w | Widget for which to get font cache info |
| XMHTMLEXPORT Boolean XmHTMLGetHeadAttributes | ( | Widget | w, | |
| XmHTMLHeadAttributes * | head, | |||
| unsigned char | mask_bits | |||
| ) |
Fills the given HeadAttributes with the requested document.
| w | XmHTMLWidget id | |
| head | structure to fill | |
| mask_bits | indicates what members to fill |
| XMHTMLEXPORT String XmHTMLGetTitle | ( | Widget | w | ) |
Returns the value of the <title></title> element.
| w | XmHTMLWidget in question |
| XMHTMLEXPORT URLType XmHTMLGetURLType | ( | String | href | ) |
Tries to figure out what type of url the given href is.
| href | url specification |
| XMHTMLEXPORT int XmHTMLGetVersion | ( | void | ) |
Returns the version number of XmHTML.
| XMHTMLEXPORT Boolean XmHTMLGIFtoGZF | ( | String | infile, | |
| unsigned char * | buf, | |||
| int | size, | |||
| String | outfile | |||
| ) |
Converts a Compuserve gif image to a GZF image.
return True when conversion was successfull. False if something failed.
| infile | name of giffile | |
| buf | giffile data | |
| size | size of buffer (if any) | |
| outfile | name of destination file |
| XMHTMLEXPORT void XmHTMLImageAddImageMap | ( | Widget | w, | |
| String | image_map | |||
| ) |
Add the given imagemap to an HTML widget.
| w | widget | |
| image_map | raw html data containinf the imagemap to parse |
| XMHTMLEXPORT XmImageInfo* XmHTMLImageDefaultProc | ( | Widget | w, | |
| String | file, | |||
| unsigned char * | buf, | |||
| int | size | |||
| ) |
XmHTML default image loading procedure.
| w | Widget ID | |
| file | full name and location of image to load | |
| buf | image data | |
| size | length of buf |
| XMHTMLEXPORT void XmHTMLImageFreeAllImages | ( | Widget | w | ) |
Releases all allocated images and associated structures.
| w | XmHTMLWidget for which to free all images |
| XMHTMLEXPORT void XmHTMLImageFreeImageInfo | ( | Widget | w, | |
| XmImageInfo * | info | |||
| ) |
Free the given XmImageInfo structure.
| info | image to free |
| XMHTMLEXPORT int XmHTMLImageGetImageInfoSize | ( | XmImageInfo * | info | ) |
Returns the size of the given XmImageInfo structure.
| info | ptr to an XmImageInfo structure |
| XMHTMLEXPORT unsigned char XmHTMLImageGetType | ( | String | file, | |
| unsigned char * | buf, | |||
| int | size | |||
| ) |
Determine the type of a given image.
| file | name of image file to check |
| XMHTMLEXPORT Boolean XmHTMLImageGZFSupported | ( | void | ) |
Check if GZF support is available.
| XMHTMLEXPORT Boolean XmHTMLImageJPEGSupported | ( | void | ) |
Check if JPEG support is available (this is a compile time option).
| XMHTMLEXPORT Boolean XmHTMLImagePNGSupported | ( | void | ) |
Check if PNG support is available.
| XMHTMLEXPORT void XmHTMLImageProgressiveContinue | ( | Widget | w | ) |
Reactivate progressive image loading.
| XMHTMLEXPORT void XmHTMLImageProgressiveKill | ( | Widget | w | ) |
Terminate progressive image loading.
| XMHTMLEXPORT void XmHTMLImageProgressiveSuspend | ( | Widget | w | ) |
Suspend progressive image loading.
| XMHTMLEXPORT XmImageStatus XmHTMLImageReplace | ( | Widget | w, | |
| XmImageInfo * | image, | |||
| XmImageInfo * | new_image | |||
| ) |
Replaces the XmImageInfo structure with a new one.
| w | XmHTMLWidget | |
| image | XmImageInfo structure to be replaced, must be known by XmHTML | |
| new_image | new XmImageInfo structure |
| XMHTMLEXPORT XmImageStatus XmHTMLImageUpdate | ( | Widget | w, | |
| XmImageInfo * | image | |||
| ) |
Updates an image.
| w | XmHTMLWidget | |
| image | image info representing the image to be updated. |
| XMHTMLEXPORT void XmHTMLRedisplay | ( | Widget | w | ) |
Forces a layout recomputation of the currently loaded document.
| w | Widget for which to redo layout computation |
| XMHTMLEXPORT Boolean XmHTMLTagCheck | ( | String | attributes, | |
| String | tag | |||
| ) |
| XMHTMLEXPORT int XmHTMLTagCheckNumber | ( | String | attributes, | |
| String | tag, | |||
| int | default_value | |||
| ) |
Retrieves the numerical value of the given tag.
| attributes | attributes from an HTML element | |
| tag | tag to look for | |
| default_value | default value if tag is not found |
| XMHTMLEXPORT Boolean XmHTMLTagCheckValue | ( | String | attributes, | |
| String | tag, | |||
| String | check | |||
| ) |
Checks whether the specified tag in the given list of attributes has a certain value.
| attributes | attributes from an HTML element | |
| tag | tag to look for | |
| check | value to check |
| XMHTMLEXPORT int XmHTMLTagGetNumber | ( | String | attributes, | |
| String | tag, | |||
| int | default_value | |||
| ) |
Retrieves the numerical value of the given tag.
| attributes | attributes from an HTML element | |
| tag | tag to look for | |
| default_value | default value if tag is not found |
| XMHTMLEXPORT String XmHTMLTagGetValue | ( | String | attributes, | |
| String | tag | |||
| ) |
Looks for the specified tag in the given list of attributes.
| attributes | attributes from an HTML element | |
| tag | tag to look for |
| XMHTMLEXPORT void XmHTMLTextClearSelection | ( | Widget | w, | |
| Time | time | |||
| ) |
Clears the selection.
| w | XmHTMLWidget id |
| XMHTMLEXPORT Boolean XmHTMLTextCopy | ( | Widget | w, | |
| Time | time | |||
| ) |
Copies text.
| w | XmHTMLWidget id |
| XMHTMLEXPORT XmHTMLTextFinder XmHTMLTextFinderCreate | ( | Widget | w | ) |
Create a new Finder Context suitable for searching the contents of an HTML Widget.
| w | XmHTMLWidget id |
| XMHTMLEXPORT void XmHTMLTextFinderDestroy | ( | XmHTMLTextFinder | finder | ) |
Destroys a finder context and frees any resources allocated.
| finder | finder to be destroyed |
| XMHTMLEXPORT int XmHTMLTextFinderGetError | ( | XmHTMLTextFinder | finder | ) |
Returns error code of the last known regex error.
| finder | current Finder Context |
| XMHTMLEXPORT String XmHTMLTextFinderGetErrorString | ( | XmHTMLTextFinder | finder | ) |
Returns a description of the last known regex error.
| finder | current Finder Context |
| XMHTMLEXPORT void XmHTMLTextFinderReset | ( | XmHTMLTextFinder | finder | ) |
Rewinds the finder to it's starting position and clears the pattern buffer.
| finder | finder to be reset |
| XMHTMLEXPORT Boolean XmHTMLTextFinderSetPattern | ( | XmHTMLTextFinder | finder, | |
| String | to_find | |||
| ) |
Sets the search pattern in a finder.
| finder | finder to be updated | |
| to_find | test to be searched |
| XMHTMLEXPORT Boolean XmHTMLTextFinderSetPatternFlags | ( | XmHTMLTextFinder | finder, | |
| int | flags, | |||
| Boolean | ignore_case, | |||
| XmHTMLDirection | direction | |||
| ) |
Allows users to fine-tune the pattern-compiler by providing their own regcomp flags.
| finder | current Finder Context | |
| flags | regcomp flags to be used | |
| ignore_case | if true, case is ignored when searching | |
| direction | search direction |
| XMHTMLEXPORT XmHTMLRegexStatus XmHTMLTextFindString | ( | Widget | w, | |
| XmHTMLTextFinder | finder | |||
| ) |
Find the first appearance of the compiled pattern in the current text.
| w | XmHTMLWidget id | |
| finder | current finder id |
| XMHTMLEXPORT Boolean XmHTMLTextFindToPosition | ( | Widget | w, | |
| XmHTMLTextFinder | finder, | |||
| XmHTMLTextPosition * | start, | |||
| XmHTMLTextPosition * | end | |||
| ) |
Determines if there is a matching word in the specified range.
| w | XmHTMLWidget id | |
| finder | current finder id | |
| start | starting position | |
| end | ending position |
| XMHTMLEXPORT String XmHTMLTextGetFormatted | ( | Widget | w, | |
| unsigned char | papertype, | |||
| XmHTMLPaperSize * | paperdef, | |||
| unsigned char | type, | |||
| unsigned char | PSoptions | |||
| ) |
Returns a formatted copy of the current document.
| w | XmHTMLWidget id | |
| papertype | type of paper to use (any of the XmHTMLTEXT_PAPERSIZE enums) | |
| paperdef | size of paper for custom stuff, or default overrides | |
| type | type of output wanted, plain, formatted or PS | |
| PSoptions | options to use when creating postscript output |
| XMHTMLEXPORT String XmHTMLTextGetSelection | ( | Widget | w | ) |
Returns a copy of the current document.
| w | XmHTMLWidget id |
| XMHTMLEXPORT String XmHTMLTextGetSource | ( | Widget | w | ) |
Returns a copy of the original, unmodified document.
| w | XmHTMLWidget in question |
| XMHTMLEXPORT String XmHTMLTextGetString | ( | Widget | w | ) |
Composes a text buffer consisting of the parser output.
The return value from this function must be freed by the caller. Typical use of this function is to set this buffer into the widget when the parser failed to verify the document as it might well be that a next parser pass on the original document does produce an HTML3.2 conforming and verified document.
| w | XmHTMLWidget in question |
| XMHTMLEXPORT void XmHTMLTextScrollToLine | ( | Widget | w, | |
| int | line | |||
| ) |
Scrolls the widget to the given line number.
| w | widget to scroll | |
| line | line number to scroll to |
| XMHTMLEXPORT void XmHTMLTextSetHighlight | ( | Widget | w, | |
| XmHTMLTextPosition | first, | |||
| XmHTMLTextPosition | last, | |||
| XmHighlightMode | mode | |||
| ) |
Sets the highlight between the specified positions.
| w | XmHTMLWidget id | |
| first | first text position | |
| last | last text position |
| XMHTMLEXPORT Boolean XmHTMLTextSetSelection | ( | Widget | w, | |
| XmHTMLTextPosition | first, | |||
| XmHTMLTextPosition | last, | |||
| Time | time | |||
| ) |
Sets the selection between the specified positions.
| w | XmHTMLWidget id | |
| first | first text position | |
| last | last text position |
| XMHTMLEXPORT void XmHTMLTextSetString | ( | Widget | w, | |
| String | text | |||
| ) |
Sets the given text into the given HTML widget.
| w | XmHTMLWidget in question | |
| text | text to set |
| XMHTMLEXPORT void XmHTMLTextSetStringWithLength | ( | Widget | w, | |
| String | text, | |||
| size_t | len | |||
| ) |
Sets the given text into the given HTML widget.
same as XmHTMLTextSetString with one fundamental difference: text doesn't have to be NULL terminated. The size of the input string is instead given by len. If text is NULL or len is 0, the current contents are cleared.
| w | XmHTMLWidget in question | |
| text | text to set, doesn't have to be NULL terminated | |
| len | size of input string. |
| XMHTMLEXPORT Boolean XmHTMLTextShowPosition | ( | Widget | w, | |
| XmHTMLTextPosition | position | |||
| ) |
Displays the position.
| w | XmHTMLWidget id | |
| position | text position |
| XMHTMLEXPORT XmHTMLInfoStructure* XmHTMLXYToInfo | ( | Widget | w, | |
| int | x, | |||
| int | y | |||
| ) |
Retrives the contents of an image and/or anchor ath the given cursor position.
| w | XmHTMLWidget id | |
| x | x-location of pointer, relative to left side of workArea | |
| y | y-location of pointer, relative to top side of workArea |
| XMHTMLEXPORT XmImage* XmImageCreate | ( | Widget | w, | |
| String | file, | |||
| Dimension | width, | |||
| Dimension | height, | |||
| XmImageConfig * | config | |||
| ) |
Creates and fills an image structure without bothering XmHTML.
| w | widget id | |
| file | image filename | |
| width | requested image width | |
| height | requested image height | |
| config | XmImage configuration |
| XMHTMLEXPORT XmImage* XmImageCreateFromInfo | ( | Widget | w, | |
| XmImageInfo * | info, | |||
| Dimension | width, | |||
| Dimension | height, | |||
| XmImageConfig * | config | |||
| ) |
Creates and fills and image structure without bothering XmHTML.
| w | widget id | |
| info | XmImageInfo structure | |
| width | requested image width | |
| height | requested image height | |
| config | XmImage configuration |
| XMHTMLEXPORT void XmImageDestroy | ( | XmImage * | image | ) |
Completely destroys the given image.
| image | image to destroy |
| XMHTMLEXPORT int XmImageDrawImage | ( | XmImage * | image, | |
| Drawable | dest, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | dest_x, | |||
| int | dest_y | |||
| ) |
Blits an XmImage to the given destination drawable.
| image | image to be rendered | |
| dest | destination drawable | |
| src_x | x coordinate of origin of image (upper left corner) | |
| src_y | y coordinate of origin of image (upper left corner) | |
| dest_x | x coordinate of destination drawable (upper left corner) | |
| dest_y | y coordinate of destination drawable (upper left corner) |
| XMHTMLEXPORT Boolean XmImageExport | ( | XmImageInfo * | info, | |
| String | file, | |||
| Dimension | width, | |||
| Dimension | height, | |||
| unsigned char | type | |||
| ) |
Export image to file.
| XMHTMLEXPORT int XmImageSetBackgroundImage | ( | XmImage * | src, | |
| Drawable | dest, | |||
| int | src_x, | |||
| int | src_y, | |||
| int | width, | |||
| int | height, | |||
| int | dest_x, | |||
| int | dest_y | |||
| ) |
Sets the given image as the background image in the given destination drawable.
| src | background image | |
| dest | destination drawable | |
| src_x | x coordinate of the source rectangle (upper left corner) | |
| src_y | y coordinate of the source rectangle (upper left corner) | |
| width | width of the rectangle to be filled | |
| height | height of the rectangle to be filled | |
| dest_x | x coordinate of the destination drawable (upper left corner) | |
| dest_y | y coordinate of the destination drawable (upper left corner) |
| XMHTMLEXPORT WidgetClass xmHTMLWidgetClass |
1.6.1