IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2018, 12:09:10 PM (8 years ago)
Author:
eugene
Message:

add colors and justification for text items in kapa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/src/KapaWindow.c

    r40165 r40419  
    358358}
    359359
    360 int KapaSendTextline (int fd, char *string, float x, float y, float angle) {
    361  
     360int KapaSendTextline (int fd, char *string, float x, float y, float angle, int justify, int color) {
     361 
     362  // must be in range 0 - 8
     363  justify = MIN(MAX(justify, 0), 8);
     364
    362365  KiiSendCommand (fd, 4, "PTXT");
    363   KiiSendMessage (fd, "%f %f %f ", x, y, angle);
     366  KiiSendMessage (fd, "%f %f %f %d %d", x, y, angle, justify, color);
    364367  KiiSendData (fd, string, strlen(string));
    365368  KiiWaitAnswer (fd, "DONE");
Note: See TracChangeset for help on using the changeset viewer.