X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=6a27f988f7c8f6b3101708ba0abdaf21d5a2475f;hb=971aa79cbc79ec491c79b81a54fed862e04b3f27;hp=b2b43588cc8134b6ef05fcfd6382a2d24bf092b4;hpb=80f8fdb229218f835f2d5e9a05df6a5ed509b990;p=rocksndiamonds.git diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index b2b43588..6a27f988 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -188,6 +188,15 @@ struct GadgetTextArea int cursor_x_preferred; // "preferred" x cursor position int size; // maximal size of input text int xsize, ysize; // size of text area (in chars) + + // automatically determined values + boolean cropped; // text area cropped to fit viewport + int full_x, full_y; // text area position when not cropped + int crop_width, crop_height; // size of text area when cropped + int crop_xsize, crop_ysize; // size of text area when cropped + + // runtime values + boolean full_open; // opening state of text area }; struct GadgetSelectbox @@ -276,6 +285,7 @@ struct GadgetInfo void InitGadgetsSoundCallback(void (*activating_function)(void), void (*selecting_function)(void)); +void InitGadgetScreenBorders(int, int); struct GadgetInfo *CreateGadget(int, ...); void FreeGadget(struct GadgetInfo *);