Line 1137... |
Line 1137... |
1137 |
std::mutex mutex_text;
|
1137 |
std::mutex mutex_text;
|
1138 |
std::mutex mutex_bargraph;
|
1138 |
std::mutex mutex_bargraph;
|
1139 |
std::mutex mutex_sysdraw;
|
1139 |
std::mutex mutex_sysdraw;
|
1140 |
std::mutex mutex_bmCache;
|
1140 |
std::mutex mutex_bmCache;
|
1141 |
|
1141 |
|
1142 |
typedef struct _DRAW_BLOCK_t
|
- |
|
1143 |
{
|
- |
|
1144 |
int instance{0};
|
- |
|
1145 |
bool show{false};
|
- |
|
1146 |
}_DRAW_BLOCK_t;
|
- |
|
1147 |
|
- |
|
1148 |
std::string buttonTypeToString();
|
1142 |
std::string buttonTypeToString();
|
1149 |
POSITION_t calcImagePosition(int width, int height, CENTER_CODE cc, int number, int line = 0);
|
1143 |
POSITION_t calcImagePosition(int width, int height, CENTER_CODE cc, int number, int line = 0);
|
1150 |
IMAGE_SIZE_t calcImageSize(int imWidth, int imHeight, int instance, bool aspect=false);
|
1144 |
IMAGE_SIZE_t calcImageSize(int imWidth, int imHeight, int instance, bool aspect=false);
|
1151 |
int getBorderSize(const std::string& name);
|
1145 |
int getBorderSize(const std::string& name);
|
1152 |
void calcImageSizePercent(int imWidth, int imHeight, int btWidth, int btHeight, int btFrame, int *realX, int *realY);
|
1146 |
void calcImageSizePercent(int imWidth, int imHeight, int btWidth, int btHeight, int btFrame, int *realX, int *realY);
|
Line 1193... |
Line 1187... |
1193 |
void setReady(ulong handle);
|
1187 |
void setReady(ulong handle);
|
1194 |
void setInvalid(ulong handle);
|
1188 |
void setInvalid(ulong handle);
|
1195 |
void setBCBitmap(ulong handle, SkBitmap& bm);
|
1189 |
void setBCBitmap(ulong handle, SkBitmap& bm);
|
1196 |
void showBitmapCache();
|
1190 |
void showBitmapCache();
|
1197 |
uint32_t pixelMix(uint32_t s, uint32_t d, uint32_t a, PMIX mix);
|
1191 |
uint32_t pixelMix(uint32_t s, uint32_t d, uint32_t a, PMIX mix);
|
1198 |
void runDrawQueue();
|
- |
|
1199 |
bool isPassThrough();
|
1192 |
bool isPassThrough();
|
1200 |
|
1193 |
|
1201 |
BUTTONTYPE type;
|
1194 |
BUTTONTYPE type;
|
1202 |
int bi{0}; // button ID
|
1195 |
int bi{0}; // button ID
|
1203 |
std::string na; // name
|
1196 |
std::string na; // name
|
Line 1308... |
Line 1301... |
1308 |
ulong mAniRunTime{0}; // The time in milliseconds an animation should run. 0 = run forever.
|
1301 |
ulong mAniRunTime{0}; // The time in milliseconds an animation should run. 0 = run forever.
|
1309 |
BITMAP_CACHE mBCDummy; // A dummy retuned in case no cache exists or the element was not found.
|
1302 |
BITMAP_CACHE mBCDummy; // A dummy retuned in case no cache exists or the element was not found.
|
1310 |
bool mChanged{true}; // TRUE=Something changed --> button must be redrawn
|
1303 |
bool mChanged{true}; // TRUE=Something changed --> button must be redrawn
|
1311 |
int mBorderWidth{0}; // If there is a border this is set to the pixels the border is using
|
1304 |
int mBorderWidth{0}; // If there is a border this is set to the pixels the border is using
|
1312 |
std::vector<std::string> mListContent; // The content of a list, if this button is one
|
1305 |
std::vector<std::string> mListContent; // The content of a list, if this button is one
|
1313 |
bool mDrawBlock{false}; // TRUE = the method drawButton() is busy.
|
- |
|
1314 |
std::vector<_DRAW_BLOCK_t> mDrawQueue;
|
- |
|
1315 |
bool mDrawQueueBusy{false};
|
- |
|
1316 |
bool mSubViewPart{false}; // TRUE = The button is part of a subview item.
|
1306 |
bool mSubViewPart{false}; // TRUE = The button is part of a subview item.
|
1317 |
int mCursorPosition{0}; // The cursor position if this is of type TEXT_INPUT
|
1307 |
int mCursorPosition{0}; // The cursor position if this is of type TEXT_INPUT
|
1318 |
bool mHasFocus{false}; // If this is of type TEXT_INPUT this holds the focus state
|
1308 |
bool mHasFocus{false}; // If this is of type TEXT_INPUT this holds the focus state
|
1319 |
};
|
1309 |
};
|
1320 |
|
1310 |
|