tb_skin_util.h 826 B

12345678910111213141516171819202122
  1. // ================================================================================
  2. // == This file is a part of Turbo Badger. (C) 2011-2014, Emil Segerås ==
  3. // == See tb_core.h for more information. ==
  4. // ================================================================================
  5. #ifndef TB_SKIN_UTIL_H
  6. #define TB_SKIN_UTIL_H
  7. #include "tb_skin.h"
  8. namespace tb {
  9. /** Draw fade out skin elements at the edges of dst_rect if needed.
  10. It indicates to the user that there is hidden content.
  11. left, top, right, bottom specifies the (positive) distance scrolled
  12. from the limit. */
  13. void DrawEdgeFadeout(const TBRect &dst_rect, TBID skin_x, TBID skin_y,
  14. int left, int top, int right, int bottom);
  15. }; // namespace tb
  16. #endif // TB_SKIN_UTIL_H