X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Frichtext_messages.h;h=7f53eb215f07436d5ff01e1140cbdf409fe3f313;hb=8c20de5e4ec260d9a7ee6d737b7601fba1c871c0;hp=6dcf9a2c73e20f5c9f9a405a4be8218445199d60;hpb=134ea1493847ea65896430c446c471874d0cf4fa;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/include/richtext_messages.h b/Usermode/Applications/axwin3_src/include/richtext_messages.h index 6dcf9a2c..7f53eb21 100644 --- a/Usermode/Applications/axwin3_src/include/richtext_messages.h +++ b/Usermode/Applications/axwin3_src/include/richtext_messages.h @@ -19,43 +19,63 @@ enum eRichText_Attrs { _ATTR_CURSORPOS, }; -enum +enum eRichText_IPCCalls { - // Calls - MSG_RICHTEXT_SETATTR, - MSG_RICHTEXT_SETFONT, - MSG_RICHTEXT_DELLINE, - MSG_RICHTEXT_ADDLINE, - - // Events - - MSG_RICHTEXT_SENDLINE, // Bi-directional - MSG_RICHTEXT_REQLINE // Bi-directional + IPC_RICHTEXT_SETATTR, + IPC_RICHTEXT_SETFONT, + IPC_RICHTEXT_DELLINE, + IPC_RICHTEXT_ADDLINE, + IPC_RICHTEXT_WRITELINE, // Set line contents + IPC_RICHTEXT_READLINE, // Request line contents + N_IPC_RICHTEXT }; -struct sRichTextMsg_SetAttr +struct sRichTextIPC_SetAttr { uint32_t Attr; uint32_t Value; }; -struct sRichTextMsg_SetFont +struct sRichTextIPC_SetFont { uint16_t Size; char Name[]; }; -struct sRichTextMsg_AddDelLine +struct sRichTextIPC_AddDelLine { uint32_t Line; }; +struct sRichTextIPC_ReadLine +{ + uint32_t Line; +}; + +struct sRichTextIPC_WriteLine +{ + uint32_t Line; + char LineData[]; +}; + +enum +{ + // Events + MSG_RICHTEXT_KEYPRESS = 0x1000, + MSG_RICHTEXT_MOUSEBTN, + + // Sent by server to get a line that is not cached (expects IPC WRITELINE) + MSG_RICHTEXT_REQLINE, + // Response to IPC READLINE + MSG_RICHTEXT_LINEDATA, +}; + struct sRichTextMsg_ReqLine { uint32_t Line; }; -struct sRichTextMsg_SendLine +struct sRichTextMsg_LineData { uint32_t Line; char LineData[];