Line 218... |
Line 218... |
218 |
int tx{0}; // Text X position
|
218 |
int tx{0}; // Text X position
|
219 |
int ty{0}; // Text Y position
|
219 |
int ty{0}; // Text Y position
|
220 |
int ww{0}; // line break when 1
|
220 |
int ww{0}; // line break when 1
|
221 |
int et{0}; // Text effect (^TEF)
|
221 |
int et{0}; // Text effect (^TEF)
|
222 |
int oo{-1}; // Over all opacity
|
222 |
int oo{-1}; // Over all opacity
|
- |
|
223 |
int md{0}; // Marquee type: 1 = scroll left, 2 = scroll right, 3 = ping pong, 4 = scroll up, 5 = scroll down
|
- |
|
224 |
int mr{0}; // Marquee enabled: 1 = enabled, 0 = disabled
|
223 |
} SR_T;
|
225 |
} SR_T;
|
224 |
|
226 |
|
225 |
typedef struct EXTBUTTON_t
|
227 |
typedef struct EXTBUTTON_t
|
226 |
{
|
228 |
{
|
227 |
BUTTONTYPE type;
|
229 |
BUTTONTYPE type;
|
Line 823... |
Line 825... |
823 |
/**
|
825 |
/**
|
824 |
* Register a callback function to display a ready image. This
|
826 |
* Register a callback function to display a ready image. This
|
825 |
* function is used for nearly every kind of button or bargraph.
|
827 |
* function is used for nearly every kind of button or bargraph.
|
826 |
* It is up to the surface to bring the buttons to screen.
|
828 |
* It is up to the surface to bring the buttons to screen.
|
827 |
*/
|
829 |
*/
|
828 |
void registerCallback(std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough)> displayButton)
|
830 |
void registerCallback(std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough, int marqtype, int marq)> displayButton)
|
829 |
{
|
831 |
{
|
830 |
_displayButton = displayButton;
|
832 |
_displayButton = displayButton;
|
831 |
}
|
833 |
}
|
832 |
/**
|
834 |
/**
|
833 |
* Register a callback function to display a video on a special
|
835 |
* Register a callback function to display a video on a special
|
Line 1190... |
Line 1192... |
1190 |
void funcBattery(int level, int state);
|
1192 |
void funcBattery(int level, int state);
|
1191 |
#endif
|
1193 |
#endif
|
1192 |
void funcNetworkState(int level);
|
1194 |
void funcNetworkState(int level);
|
1193 |
|
1195 |
|
1194 |
private:
|
1196 |
private:
|
1195 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough)> _displayButton{nullptr};
|
1197 |
std::function<void (ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough, int marqtype, int marq)> _displayButton{nullptr};
|
1196 |
std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, const std::string& url, const std::string& user, const std::string& pw)> _playVideo{nullptr};
|
1198 |
std::function<void (ulong handle, ulong parent, int left, int top, int width, int height, const std::string& url, const std::string& user, const std::string& pw)> _playVideo{nullptr};
|
1197 |
std::function<std::vector<std::string>(ulong handle, int ap, int ta, int ti, int rows, int columns)> _getListContent{nullptr};
|
1199 |
std::function<std::vector<std::string>(ulong handle, int ap, int ta, int ti, int rows, int columns)> _getListContent{nullptr};
|
1198 |
std::function<std::string(int ti, int row)> _getListRow{nullptr};
|
1200 |
std::function<std::string(int ti, int row)> _getListRow{nullptr};
|
1199 |
std::function<void (TButton *button)> _getGlobalSettings{nullptr};
|
1201 |
std::function<void (TButton *button)> _getGlobalSettings{nullptr};
|
1200 |
std::function<void (int channel, uint handle, bool pressed)> _buttonPress{nullptr};
|
1202 |
std::function<void (int channel, uint handle, bool pressed)> _buttonPress{nullptr};
|