Subversion Repositories tpanel

Rev

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

Rev 306 Rev 307
Line 23... Line 23...
23
class SkBitmap;
23
class SkBitmap;
24
class SkRect;
24
class SkRect;
25
 
25
 
26
namespace Border
26
namespace Border
27
{
27
{
-
 
28
    typedef enum ERASE_PART_t
-
 
29
    {
-
 
30
        ERASE_NONE,
-
 
31
        ERASE_LEFT_RIGHT,
-
 
32
        ERASE_RIGHT_LEFT,
-
 
33
        ERASE_TOP_DOWN,
-
 
34
        ERASE_BOTTOM_UP,
-
 
35
        ERASE_OUTSIDE
-
 
36
    }ERASE_PART_t;
28
 
37
 
29
    typedef struct SYSBORDER_t
38
    typedef struct SYSBORDER_t
30
    {
39
    {
31
        int id{0};                  // Internal unique ID number
40
        int id{0};                  // Internal unique ID number
32
        char *name{nullptr};        // Name of the border
41
        char *name{nullptr};        // Name of the border
Line 46... Line 55...
46
            int getBorderWidth(const std::string& bname, bool force=false);
55
            int getBorderWidth(const std::string& bname, bool force=false);
47
            bool borderExist(const std::string& name);
56
            bool borderExist(const std::string& name);
48
            std::string getCorrectName(const std::string& name);
57
            std::string getCorrectName(const std::string& name);
49
            bool isForcedBorder(const std::string& name);
58
            bool isForcedBorder(const std::string& name);
50
 
59
 
-
 
60
            void erasePart(SkBitmap *bm, const SkBitmap& mask, ERASE_PART_t ep);
-
 
61
 
51
        private:
62
        private:
52
            SkRect calcRect(int width, int height, int pen);
63
            SkRect calcRect(int width, int height, int pen);
-
 
64
            bool setPixel(uint32_t *wpix, uint32_t color, bool bar);
53
    };
65
    };
54
}
66
}
55
 
67
 
56
#endif // TINTBORDER_H
68
#endif // TINTBORDER_H