My Video Player
 All Data Structures Files Functions Variables Macros Pages
Field_Area Struct Reference

Structure to store the top-left and botton-right corner coordinates of various fields & buttons. More...

Data Fields

int x1
 x coordinate of the top-left corrner. More...
 
int y1
 y coordinate of the top-left corrner. More...
 
int x2
 x coordinate of the bottom-right corrner. More...
 
int y2
 y coordinate of the bottom-right corrner. More...
 

Detailed Description

Structure to store the top-left and botton-right corner coordinates of various fields & buttons.

At times, it is necessary to know the if the mouse is pointing to a sepcific area in the dispalyed image. Since all the buttons, text-fields, slider etc. are nothing by sub-images of the entire image, a structure is necessary to know their locations. This will enable us to call the correct callback function say, pressing the button, editing the text-box, moving the slider, etc. This structure holds the corrdinates of the top-left corner (x1, y1) and bottom-right corner (x2, y2) of the various fields.

Definition at line 152 of file video_player.c.

Field Documentation

int x1

x coordinate of the top-left corrner.

Definition at line 153 of file video_player.c.

int x2

x coordinate of the bottom-right corrner.

Definition at line 155 of file video_player.c.

int y1

y coordinate of the top-left corrner.

Definition at line 154 of file video_player.c.

int y2

y coordinate of the bottom-right corrner.

Definition at line 156 of file video_player.c.


The documentation for this struct was generated from the following file: