23 #include "environment.h" 32 #include "pedigree/native/graphics/Graphics.h" 34 #include <cairo/cairo.h> 43 char *pName,
size_t nWidth,
size_t nHeight,
size_t offsetLeft,
44 size_t offsetTop,
rgb_t *pBackground, cairo_t *pCairo,
45 class Widget *pWidget,
class Tui *pTui,
class Font *pNormalFont,
46 class Font *pBoldFont);
82 void setHasPendingRequest(
bool b,
size_t sz)
84 m_bHasPendingRequest = b;
85 m_PendingRequestSz = sz;
88 bool hasPendingRequest()
90 return m_bHasPendingRequest;
92 size_t getPendingRequestSz()
94 return m_PendingRequestSz;
101 return m_pXterm->getRows();
105 return m_pXterm->getCols();
134 m_pXterm->showCursor(rect);
139 m_pXterm->hideCursor(rect);
142 void setCursorStyle(
bool bFilled =
true)
144 m_pXterm->setCursorStyle(bFilled);
150 if (m_WriteInProgress)
156 void setCairo(cairo_t *pCairo, cairo_surface_t *pSurface)
158 m_pXterm->setCairo(pCairo, pSurface);
161 void setFonts(
Font *pNormalFont,
Font *pBoldFont)
163 m_pXterm->setFonts(pNormalFont, pBoldFont);
170 void addToQueue(
char c,
bool bFlush =
false);
186 char m_pWriteBuffer[4];
187 size_t m_WriteBufferLen;
189 bool m_bHasPendingRequest;
190 size_t m_PendingRequestSz;
196 size_t m_OffsetLeft, m_OffsetTop;
198 volatile char m_Cancel;
199 volatile bool m_WriteInProgress;
void processKey(uint64_t key)
void write(const char *pStr, DirtyRectangle &rect)
void renderAll(DirtyRectangle &rect)
void renewBuffer(size_t nWidth, size_t nHeight)
void redraw(size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL, bool bChild=false)