Skip to content
sidorares edited this page Jul 21, 2011 · 4 revisions
CreateWindow(winId, parentId, x, y, width, height, borderWidth, visual, class, createWindowAdditionalValues)
MapWindow(winId)
UnmapWindow(winId)
CreateGC(gcId, drawableId, createGCAdditionalValues)
InternAtom(string, callback(atomId))
GetAtomName(atomId, callback(string))
// replace mode: 0 replace, 1 prepend, 2 append
// unitSize = 8/16/32 TODO: remove, use depending on buffer size
ChangeProperty(replaceMode, winId, propNameAtom, typeNameAtom, units, data)
DeleteProperty(winId, propNameAtom)
// typeNameAtom: 0 = AnyType
// offset and maxLen in 4-byte units
GetProperty(deleteAfterGet, wid, propNameAtom, typeNameAtom, offset, maxLen, function(prop) 
{
    prop.type; // atom
    prop.data; // Buffer
    prop.bytesAfter; // remaining data. property length on the server is offset*4 + prop.data.length + prop.bytesAfter
})
PolyFillRectangle
PolyPoint
PolyLine
PolyText8
QueryExtension(callback(extDescription))
ListExtensions(callback(stringArray))
QueryPointer(winId)
PutImage(format, drawable, gc, width, height, dstX, dstY, leftPad, depth, dataBuffer)
Clone this wiki locally