Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Core requests

sidorares edited this page · 4 revisions
Clone this wiki locally
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)
Something went wrong with that request. Please try again.