g
Size: a a a
g
g
AS
SG
AS
КП
AS
КП
WindowObserver obs = {
created:(ref Window w){
writeln("Created!");
},
closed:(ref Window w){
writeln("Closed!");
postQuitEvent;
},
start_clicked:(ref Window w, bool isLeft, int x, int y){
writeln("Click start! ", x, " ", y, " is left ", isLeft);
},
end_clicked:(ref Window w, bool isLeft, int x, int y){
writeln("Click end! ", x, " ", y, " is left ", isLeft);
},
};
writeln(&obs.moved); // не nullКП
КП
DH
WindowObserver obs = {
created:(ref Window w){
writeln("Created!");
},
closed:(ref Window w){
writeln("Closed!");
postQuitEvent;
},
start_clicked:(ref Window w, bool isLeft, int x, int y){
writeln("Click start! ", x, " ", y, " is left ", isLeft);
},
end_clicked:(ref Window w, bool isLeft, int x, int y){
writeln("Click end! ", x, " ", y, " is left ", isLeft);
},
};
writeln(&obs.moved); // не null