textalign.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. Darkain Made This. :)
  3. // and BU tweaked it
  4. */
  5. /*
  6. Darkain: i wanted one base for ALL text alignment in ALL classes.
  7. */
  8. #ifndef _TEXTALIGN_H
  9. #define _TEXTALIGN_H
  10. typedef enum {
  11. TEXTALIGN_LEFT,
  12. TEXTALIGN_CENTER, //what ever default center style is... see bellow
  13. TEXTALIGN_RIGHT,
  14. TEXTALIGN_EVENSPACING, //add more space between letters/words to make it fit in 100% of the area
  15. TEXTALIGN_FITTOWIDTH, //make the font larger or smaller to fit in 100% of the area
  16. TEXTALIGN_LEFT_ELLIPSIS, //align left, and truncate text to fit if too large
  17. TEXTALIGN_CENTER_CENTER, //if text is too wide, it will still center on the middle, choping off left and right sides
  18. TEXTALIGN_CENTER_LEFT, //will chop off right side if too big
  19. TEXTALIGN_CENTER_RIGHT, //will chop off left side if too big
  20. TEXTALIGN_SCROLL, //if text is too large, it will use default scrolling (see bellow)
  21. TEXTALIGN_SCROLL_BACKFORTH, //text will scroll back and forth if too large
  22. TEXTALIGN_SCROLL_TICKER, //text will scroll in one direction, and loop
  23. } TextAlign;
  24. #endif // TEXT_ALIGN_H