Ejemplo n.º 1
0
void GCompound::sendToBack(GObject *gobj) {
    int index = findGObject(gobj);
    if (index == -1) return;
    if (index != 0) {
        contents.remove(index);
        contents.insert(0, gobj);
        pp->sendToBack(gobj);
    }
}
Ejemplo n.º 2
0
void GCompound::sendToFront(GObject *gobj) {
    int index = findGObject(gobj);
    if (index == -1) return;
    if (index != contents.size() - 1) {
        contents.remove(index);
        contents.add(gobj);
        pp->sendToFront(gobj);
    }
}
Ejemplo n.º 3
0
void GCompound::sendForward(GObject *gobj) {
    int index = findGObject(gobj);
    if (index == -1) return;
    if (index != contents.size() - 1) {
        contents.remove(index);
        contents.insert(index + 1, gobj);
        pp->sendForward(gobj);
    }
}
Ejemplo n.º 4
0
void GCompound::sendToFront(GObject* gobj) {
    int index = findGObject(gobj);
    if (index == -1) {
        return;
    }
    if (index != contents.size() - 1) {
        contents.remove(index);
        contents.add(gobj);
        stanfordcpplib::getPlatform()->gobject_sendToFront(gobj);
    }
}
Ejemplo n.º 5
0
void GCompound::sendToBack(GObject* gobj) {
    int index = findGObject(gobj);
    if (index == -1) {
        return;
    }
    if (index != 0) {
        contents.remove(index);
        contents.insert(0, gobj);
        stanfordcpplib::getPlatform()->gobject_sendToBack(gobj);
    }
}
Ejemplo n.º 6
0
void GCompound::remove(GObject* gobj) {
    int index = findGObject(gobj);
    if (index != -1) removeAt(index);
}