pflow.h 940 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. *
  3. * © 2016 and later: Unicode, Inc. and others.
  4. * License & terms of use: http://www.unicode.org/copyright.html#License
  5. *
  6. * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
  7. *
  8. */
  9. #ifndef __PFLOW_H
  10. #define __PFLOW_H
  11. #include "unicode/utypes.h"
  12. #include "layout/LETypes.h"
  13. #include "layout/plruns.h"
  14. #include "layout/playout.h"
  15. #include "gsupport.h"
  16. #include "rsurface.h"
  17. typedef void pf_flow;
  18. pf_flow *pf_create(const LEUnicode chars[], le_int32 charCount, const pl_fontRuns *fontRuns, LEErrorCode *status);
  19. void pf_close(pf_flow *flow);
  20. le_int32 pf_getAscent(pf_flow *flow);
  21. le_int32 pf_getLineHeight(pf_flow *flow);
  22. le_int32 pf_getLineCount(pf_flow *flow);
  23. void pf_breakLines(pf_flow *flow, le_int32 width, le_int32 height);
  24. void pf_draw(pf_flow *flow, rs_surface *surface, le_int32 firstLine, le_int32 lastLine);
  25. pf_flow *pf_factory(const char *fileName, const le_font *font, gs_guiSupport *guiSupport);
  26. #endif