diff options
Diffstat (limited to 'src/action.h')
-rw-r--r-- | src/action.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/action.h b/src/action.h index 7405418..d9b7698 100644 --- a/src/action.h +++ b/src/action.h @@ -1,22 +1,25 @@ +typedef struct Action Action; + enum Actions_Types { + ACT_NULL, ACT_PIXELSCOLORS, -} - -struct act_pixcol { - long int p; /* Position */ - unsigned int c; /* Color */ }; -struct Action { - int type; - ActUnion act; +struct action_pixcol { + int x, y; /* Position */ + unsigned int c; /* Color */ }; struct ActionPixelsColors { long int cnt; - struct act_pixcol *pix; -} + struct actiton_pixcol *pix; +}; typedef union { - ActionPixelsColors px; + struct ActionPixelsColors px; } ActUnion; + +struct Action { + int type; + ActUnion act; +}; |