Closed Phreak87 closed 5 years ago
Combine with other issues: (config functions used + constructor)
https://github.com/Phreak87/LeptonicaSharp/issues/6 (optionals) https://github.com/Phreak87/LeptonicaSharp/issues/5 (tests)
Plan: class contains the functions with! optional parameters (ordering changed). All_functions contains the original ordered function without optionals. optional checks in the class function
For test cases and forum codes the original order is used via _allfunctions For writing new code the optional functions are used to keep your code clean.
because i need help to define the functions in each class!
New: Each _AllFunctions-function contains the parameter order of the original c-source without optional parameters. class extensions contains optional parameters and the own class as parameter.
Example (From Class): PIX32.pixConvertToPdf(L_ENCODE.L_FLATE_ENCODE, "Test.pdf", Nothing, L_T_IMAGE.L_FIRST_IMAGE)
Example (From _AllFunctions): LeptonicaSharp._AllFunctions.pixConvertToPdf(PIX32, L_ENCODE.L_JPEG_ENCODE, 0, "TestMax.pdf", 0, 0, 0, "Title", C0, L_T_IMAGE.L_FIRST_IMAGE)
Warning! This change causes that the most functions via _allfunctions now contains a wrong order! if you change you can do this via the class (without the class as parameter) or rewrite the function with all optional parameters.
Publish the most used functions in the class instead of using _allfunctions always.