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); }
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); } }
void ScrollerCode::Update () { CodeView::Update(); InteractorComp* subj = GetIntComp(); Graphic* gr = subj->GetGraphic(); gr->SetFont(nil); }