first commit
This commit is contained in:
136
Lab7/window.h
Normal file
136
Lab7/window.h
Normal 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);
|
||||
|
||||
Reference in New Issue
Block a user