X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin2_src%2FWM%2Fwm.h;h=df4f860c4b9752e03a2956771658a61446561772;hb=7941d6b368acb0abc17e6a77ffaf7b4c306b67ab;hp=d91626ba8f9dcb5eb87427b06d4b9a2772159853;hpb=117854336280cdf3d07143820e4d82d92c570239;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin2_src/WM/wm.h b/Usermode/Applications/axwin2_src/WM/wm.h index d91626ba..df4f860c 100644 --- a/Usermode/Applications/axwin2_src/WM/wm.h +++ b/Usermode/Applications/axwin2_src/WM/wm.h @@ -8,13 +8,14 @@ #include "common.h" /** - * \brief Number of elements that can be owned by each application) + * \brief Number of elements that can be owned by each application */ // TODO: Fine tune these values #define MAX_ELEMENTS_PER_APP 1024 #define DEFAULT_ELEMENTS_PER_APP 128 typedef struct sAxWin_Element tElement; +typedef struct sWindow tWindow; typedef struct sApplication tApplication; struct sAxWin_Element @@ -38,7 +39,7 @@ struct sAxWin_Element uint32_t Flags; - short FixedWith; //!< Fixed Long Size attribute (height) + short FixedWith; //!< Fixed lengthways Size attribute (height) short FixedCross; //!< Fixed Cross Size attribute (width) char *Text; @@ -56,12 +57,22 @@ struct sAxWin_Element char DebugName[]; }; +struct sWindow +{ + int X, Y, W, H; + tImage *Icon; + + tWindow *OrderNext; // Render order + + tElement Element; +}; + struct sApplication { tApplication *Next; + tIPC_Type *IPCType; void *Ident; //!< Client Identifier - tMessages_Handle_Callback *SendMessage; char *Name; //!< Application name