// @(#)root/graf2d:$Id$ // Author: Timur Pocheptsov, 14/8/2011 /************************************************************************* * Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_IOSFillPatterns #define ROOT_IOSFillPatterns ////////////////////////////////////////////////////////////////////////// // // // FillPatterns // // // // Predefined fill styles (patterns). // // // ////////////////////////////////////////////////////////////////////////// #include namespace ROOT { namespace iOS { namespace GraphicUtils { // //Must be 25, now only 18. To be added. // //TODO: remaining patterns are required. enum { kPredefinedFillPatterns = 18 }; //Pattern generator function type. Parameter of type CGFloat * //is an rgb tuple. Attention! rgb pointer should be valid while //you are using pattern - it will be passed into pattern drawing callback //funciton. typedef CGPatternRef (*PatternGenerator_t)(CGFloat *); //Array of pointers to functions, generating patterns. extern PatternGenerator_t gPatternGenerators[kPredefinedFillPatterns]; extern const unsigned solidFillStyle; //1001 extern const unsigned stippleBase; //3000 }//GraphicUtils }//namespace iOS }//namespace ROOT #endif