DrawingForm - accessibilitysoftwarehub/OpenSourceWindowsGazeControl GitHub Wiki

General Information

Name: DrawingForm

Description: This class is a full screen, transparent form.

Purpose: Drawing the user feedback when zoomed in.

Full Description: This form covers the whole screen and when the user is zooming in it will draw the crosshairs onto the zoom window.

Note:

Method Descriptions

GetCrossHairImage Switch to check which of the crosshairs has been selected in the settings and returns the corresponding image resource.

DrawingForm_Load Sets form to top left corner and removes border. Makes form the top layer.

CreateSmoother Creates smoother.

SetCrossHairPos Sets the position of the currentgaze

SetCrossHairPos(int,int) converts two ints to a point before calling the alternative version of this method.

Draw This method gets the crosshair image. Refreshes the form to wipe the previous image. smooths the graphics then centers the crosshair image location. draws the crosshair image. saves the currentGaze location to history.

ClearForm Wipes screen. Hides screen. Creates a new smoother.