Exemplo n.º 1
0
static int pyPageInfo_setLocation(pyPageInfo* self, PyObject* value, void*) {
    if (value == NULL) {
        self->fThis->setLocation(plLocation());
    } else {
        if (!pyLocation_Check(value)) {
            PyErr_SetString(PyExc_TypeError, "location must be a plLocation");
            return -1;
        }
        self->fThis->setLocation(*((pyLocation*)value)->fThis);
    }
    return 0;
}
Exemplo n.º 2
0
plLocation plLocation::MakeNormal(uint32_t number)
{
    return plLocation(kNormalLocStartIdx + number);
}
Exemplo n.º 3
0
plLocation plLocation::MakeReserved(uint32_t number)
{
    return plLocation(kReservedLocAvailableStart + number, kReserved);
}