mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 11:10:52 +00:00
addressed the conflicts, and changed target branch to 2.7-MiscFixes-Week1
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include "OLEDDisplay.h"
|
||||
#include "OLEDDisplayUi.h"
|
||||
#include "graphics/emotes.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace graphics
|
||||
{
|
||||
@@ -14,5 +16,27 @@ void drawStringWithEmotes(OLEDDisplay *display, int x, int y, const std::string
|
||||
/// Draws the text message frame for displaying received messages
|
||||
void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y);
|
||||
|
||||
// Function to generate lines with word wrapping
|
||||
std::vector<std::string> generateLines(OLEDDisplay *display,
|
||||
const char *headerStr,
|
||||
const char *messageBuf, int textWidth);
|
||||
|
||||
// Function to calculate heights for each line
|
||||
std::vector<int> calculateLineHeights(OLEDDisplay *display,
|
||||
const std::vector<std::string> &lines,
|
||||
const Emote *emotes, int emoteCount);
|
||||
|
||||
// Function to render the message content
|
||||
void renderMessageContent(OLEDDisplay *display,
|
||||
const std::vector<std::string> &lines,
|
||||
const std::vector<int> &rowHeights,
|
||||
int x,
|
||||
int yOffset,
|
||||
int scrollBottom,
|
||||
const Emote *emotes,
|
||||
int numEmotes,
|
||||
bool isInverted,
|
||||
bool isBold);
|
||||
|
||||
} // namespace MessageRenderer
|
||||
} // namespace graphics
|
||||
|
||||
Reference in New Issue
Block a user