fensetereEFetogile
→ windowResized()Runs whenever the window changes size.
tiro fensetereEFetogile() { ... }Declare fensetereEFetogile as a function with tiro, and Bopa will call it for you whenever the window changes size. You never call it yourself.
In Bopa that happens when you drag the splitter between the code and the preview. Try it: draw a canvas that fills the window, then drag the splitter.
What usually goes inside is another thalaKanefase, so the canvas keeps matching the new space:
thalaKanefase(bopharaFensetere, boleeleFensetere);
It is the third function Bopa calls for you, after
setaLoetoandtshwantsha. Its name works differently from theirs, though:setaLoetoandtshwantshasay what they do, whilefensetereEFetogilesays what has happened. Every later event name is written that way.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(bopharaFensetere, boleeleFensetere);
tlhalosa('Kgolokwe e e mo bogareng jwa kanefase e e salang e lekana le lera la ponopele.');
}
tiro tshwantsha() {
bokamorago(236);
tlogelaMothalo();
tlatsaMmala(70, 140, 190);
thalaSediko(bophara / 2, boleele / 2, palopotlana(bophara, boleele) * 0.6);
tlatsaMmala(40);
bogoloJwaMokwalo(16);
rulaganyaMokwalo(BOGARE);
thalaMokwalo(bophara + ' × ' + boleele, bophara / 2, 30);
}
tiro fensetereEFetogile() {
thalaKanefase(bopharaFensetere, boleeleFensetere);
}See also
Section titled “See also”bopharaFensetere, boleeleFensetere, setaLoeto, tshwantsha, thalaKanefase