本文整理汇总了C++中Graphic::Remove方法的典型用法代码示例。如果您正苦于以下问题:C++ Graphic::Remove方法的具体用法?C++ Graphic::Remove怎么用?C++ Graphic::Remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Graphic
的用法示例。
在下文中一共展示了Graphic::Remove方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Sim_Press
void VMouse::Sim_Press(Graphic* orig, Graphic* porig, Event& e) {
Canvas* screen = _myglass->GetCanvas();
Graphic* parent;
if (e.eventType == DownEvent) {
parent = orig->Parent();
if (parent != nil) {
orig->Erase(screen);
parent->Remove(orig);
parent->Append(porig);
porig->Draw(screen);
if (e.leftmouse) {
_vwriter->Request(1);
} else if (e.middlemouse) {
_vwriter->Request(2);
} else if (e.rightmouse) {
_vwriter->Request(3);
}
}
} else if (e.eventType == UpEvent) {
parent = porig->Parent();
if (parent != nil) {
porig->Erase(screen);
parent->Remove(porig);
parent->Append(orig);
orig->Draw(screen);
}
}
}
示例2: VMouseWriter
VMouse::VMouse(const char* name, const char* host) : VMouse_core(name) {
Graphic* parent;
parent = _pbutton1->Parent();
parent->Remove(_pbutton1);
parent = _pbutton2->Parent();
parent->Remove(_pbutton2);
parent = _pbutton3->Parent();
parent->Remove(_pbutton3);
_vwriter = new VMouseWriter(host, port_id);
}
示例3:
LinkView::~LinkView () {
Graphic* parent = GraphicView::GetGraphic();
Graphic* g1 = _connView1->GetGraphic();
Graphic* g2 = _connView2->GetGraphic();
parent->Remove(g1);
parent->Remove(g2);
delete _connView1;
delete _connView2;
}
示例4: GetGraphic
ViewerView::~ViewerView () {
Graphic* g = GetGraphic();
Iterator i;
g->First(i);
while (!g->Done(i)) {
g->Remove(i);
}
_vg->First(i);
_vg->Remove(i);
delete _vg;
}