Subversion Repositories tpanel

Rev

Rev 332 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 332 Rev 336
Line 44... Line 44...
44
        int width{0};               // The width of the border
44
        int width{0};               // The width of the border
45
        int radius{0};              // Radius for rounded corners
45
        int radius{0};              // Radius for rounded corners
46
        bool calc{false};           // TRUE = Calculated inside, FALSE = Read from images
46
        bool calc{false};           // TRUE = Calculated inside, FALSE = Read from images
47
    }SYSBORDER_t;
47
    }SYSBORDER_t;
48
 
48
 
-
 
49
    typedef struct TP4BORDERS_t
-
 
50
    {
-
 
51
        int id{0};
-
 
52
        std::string name;
-
 
53
        int prgNum[4];
-
 
54
    }TP4BORDERS_t;
-
 
55
 
49
    class TIntBorder
56
    class TIntBorder
50
    {
57
    {
51
        public:
58
        public:
52
            TIntBorder();
59
            TIntBorder();
53
 
60
 
Line 56... Line 63...
56
            bool borderExist(const std::string& name);
63
            bool borderExist(const std::string& name);
57
            bool borderExist(int index);
64
            bool borderExist(int index);
58
            std::string getBorderName(int index);
65
            std::string getBorderName(int index);
59
            std::string getCorrectName(const std::string& name);
66
            std::string getCorrectName(const std::string& name);
60
            bool isForcedBorder(const std::string& name);
67
            bool isForcedBorder(const std::string& name);
-
 
68
            bool isTP4BorderValid(const std::string& name);
-
 
69
            std::string getTP4BorderName(int id);
61
 
70
 
62
            void erasePart(SkBitmap *bm, const SkBitmap& mask, ERASE_PART_t ep);
71
            void erasePart(SkBitmap *bm, const SkBitmap& mask, ERASE_PART_t ep);
63
 
72
 
64
        private:
73
        private:
65
            SkRect calcRect(int width, int height, int pen);
74
            SkRect calcRect(int width, int height, int pen);