Exemplo n.º 1
0
void EditorCode::Update () {
    IGraphicComps* igrcomps = GetEditorComp()->GetIGraphicComps();
    _gcode = (GroupCode*) igrcomps->Create(CODE_VIEW);
    igrcomps->Attach(_gcode);
    _gcode->Update();
    MonoSceneClassCode::Update();
    InteractorComp* subj = GetIntComp();
    Graphic* gr = subj->GetGraphic();
    gr->SetColors(nil, nil);
    gr->SetFont(nil);
}
Exemplo n.º 2
0
void TextComp::Uninterpret (Command* cmd) {
    Graphic* gr = GetGraphic();

    if (cmd->IsA(BRUSH_CMD) || cmd->IsA(PATTERN_CMD)) {
        // do nothing

    } else if (cmd->IsA(FONT_CMD)) {
        VoidData* vd = (VoidData*) cmd->Recall(this);
        PSFont* font = (PSFont*) vd->_void;
        gr->SetFont(font);
        Notify();

    } else {
        GraphicComp::Uninterpret(cmd);
    }
}
Exemplo n.º 3
0
void ScrollerCode::Update () {
    CodeView::Update();
    InteractorComp* subj = GetIntComp();
    Graphic* gr = subj->GetGraphic();
    gr->SetFont(nil);
}