first commit

This commit is contained in:
2026-03-05 13:16:26 +01:00
commit 1b2bf174e8
164 changed files with 35594 additions and 0 deletions

136
Lab7/window.h Normal file
View File

@@ -0,0 +1,136 @@
//## begin module.cm preserve=no
// %X% %Q% %Z% %W%
//## end module.cm
//## begin module.cp preserve=no
//## end module.cp
//## Module: Window; Pseudo Package specification
//## Subsystem: lab7
//## Source file: H:\kurs\avC++\lab7\Window.h
#ifndef Window_h
#define Window_h 1
//## begin module.additionalIncludes preserve=no
//## end module.additionalIncludes
//## begin module.includes preserve=yes
//## end module.includes
// Panel
#include "Panel.h"
// Graphics
#include "Graphics.h"
//## begin module.additionalDeclarations preserve=yes
//## end module.additionalDeclarations
//## Class: Window
//## Category: lab7
//## Subsystem: lab7
//## Persistence: Transient
//## Cardinality/Multiplicity: n
//## Uses: <unnamed>; Graphics { -> }
class Window
{
//## begin Window.initialDeclarations preserve=yes
//## end Window.initialDeclarations
public:
//## Constructors (generated)
Window();
//## Constructors (specified)
//## Operation: Window%940854119
Window (int xpos, int ypos, int width, int height, char* name);
//## Destructor (generated)
~Window();
//## Other Operations (specified)
//## Operation: draw%940929792
void draw (Graphics& g);
//## Operation: add%940943118
void add (Component* c);
//## Operation: isHit%941013988
bool isHit (int x, int y);
//## Operation: handleKeyEvent%941013989
void handleKeyEvent (Event e);
//## Operation: handleMouseEvent%941013990
void handleMouseEvent (Event e);