The Pedigree Project  0.1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Xterm::Window Class Reference
+ Collaboration diagram for Xterm::Window:

Classes

class  TermChar
 

Public Member Functions

 Window (size_t nRows, size_t nCols, PedigreeGraphics::Framebuffer *pFb, size_t nMaxScrollback, size_t offsetLeft, size_t offsetTop, size_t fbWidth, Xterm *parent)
 
void showCursor (DirtyRectangle &rect)
 
void hideCursor (DirtyRectangle &rect)
 
void resize (size_t nRows, size_t nCols, bool bActive)
 
void setScrollRegion (int start, int end)
 
void setForeColour (uint8_t fgColour)
 
void setBackColour (uint8_t bgColour)
 
void setFlags (uint8_t flags)
 
uint8_t getFlags ()
 
void setMargins (size_t left, size_t right)
 
void setChar (uint32_t utf32, size_t x, size_t y)
 
TermChar getChar (size_t x=~0UL, size_t y=~0UL)
 
void fillChar (uint32_t utf32, DirtyRectangle &rect)
 
void addChar (uint32_t utf32, DirtyRectangle &rect)
 
void setCursorRelOrigin (size_t x, size_t y, DirtyRectangle &rect)
 
void setCursor (size_t x, size_t y, DirtyRectangle &rect)
 
void setCursorX (size_t x, DirtyRectangle &rect)
 
void setCursorY (size_t y, DirtyRectangle &rect)
 
ssize_t getCursorX () const
 
ssize_t getCursorY () const
 
ssize_t getCursorXRelOrigin () const
 
ssize_t getCursorYRelOrigin () const
 
void setCursorStyle (bool bFilled)
 
void cursorToOrigin ()
 
void cursorLeft (DirtyRectangle &rect)
 
void cursorLeftNum (size_t n, DirtyRectangle &rect)
 
void cursorLeftToMargin (DirtyRectangle &rect)
 
void cursorDown (size_t n, DirtyRectangle &)
 
void cursorUp (size_t n, DirtyRectangle &)
 
void backspace (DirtyRectangle &rect)
 
void cursorUpWithinMargin (size_t n, DirtyRectangle &)
 
void cursorLeftWithinMargin (size_t n, DirtyRectangle &)
 
void cursorRightWithinMargin (size_t n, DirtyRectangle &)
 
void cursorDownWithinMargin (size_t n, DirtyRectangle &)
 
void cursorDownAndLeftToMargin (DirtyRectangle &rect)
 
void cursorDownAndLeft (DirtyRectangle &rect)
 
void cursorTab (DirtyRectangle &rect)
 
void cursorTabBack (DirtyRectangle &rect)
 
void renderAll (DirtyRectangle &rect, Window *pPrevious)
 
void render (DirtyRectangle &rect, size_t flags=0, size_t x=~0UL, size_t y=~0UL)
 
void renderArea (DirtyRectangle &rect, size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL)
 
void scrollRegionUp (size_t n, DirtyRectangle &rect)
 
void scrollRegionDown (size_t n, DirtyRectangle &rect)
 
void scrollUp (size_t n, DirtyRectangle &rect)
 
void scrollDown (size_t n, DirtyRectangle &rect)
 
void eraseEOL (DirtyRectangle &rect)
 
void eraseSOL (DirtyRectangle &rect)
 
void eraseLine (DirtyRectangle &rect)
 
void eraseChars (size_t n, DirtyRectangle &rect)
 
void eraseUp (DirtyRectangle &rect)
 
void eraseDown (DirtyRectangle &rect)
 
void eraseScreen (DirtyRectangle &rect)
 
void deleteCharacters (size_t n, DirtyRectangle &rect)
 
void insertCharacters (size_t n, DirtyRectangle &rect)
 
void insertLines (size_t n, DirtyRectangle &rect)
 
void deleteLines (size_t n, DirtyRectangle &rect)
 
void setTabStop ()
 
void clearTabStop ()
 
void clearAllTabStops ()
 
void checkWrap (DirtyRectangle &rect)
 
void checkScroll (DirtyRectangle &rect)
 
void invert (DirtyRectangle &rect)
 
void setLineRenderMode (bool b)
 
bool getLineRenderMode ()
 
void lineRender (uint32_t utf32, DirtyRectangle &rect)
 

Private Member Functions

 Window (const Window &)
 
Windowoperator= (const Window &)
 

Private Attributes

TermCharm_pBuffer
 
size_t m_BufferLength
 
PedigreeGraphics::Framebufferm_pFramebuffer
 
size_t m_FbWidth
 
size_t m_Width
 
size_t m_Height
 
size_t m_Stride
 
size_t m_OffsetLeft
 
size_t m_OffsetTop
 
size_t m_nMaxScrollback
 
ssize_t m_CursorX
 
ssize_t m_CursorY
 
ssize_t m_ScrollStart
 
ssize_t m_ScrollEnd
 
ssize_t m_LeftMargin
 
ssize_t m_RightMargin
 
TermCharm_pInsert
 
TermCharm_pView
 
uint8_t m_Fg
 
uint8_t m_Bg
 
uint8_t m_Flags
 
bool m_bCursorFilled
 
bool m_bLineRender
 
Xtermm_pParentXterm
 

Friends

class Xterm
 

Detailed Description

Definition at line 115 of file Xterm.h.

Member Function Documentation

void Xterm::Window::checkScroll ( DirtyRectangle rect)

Checks for scrolling and scrolls if needed.

Definition at line 3266 of file Xterm.cc.

void Xterm::Window::checkWrap ( DirtyRectangle rect)

Checks for wrapping and wraps if needed.

Definition at line 3246 of file Xterm.cc.

void Xterm::Window::clearAllTabStops ( )

Clears all tab stops

Definition at line 3329 of file Xterm.cc.

void Xterm::Window::clearTabStop ( )

Clears a tab stop at the current X position

Definition at line 3320 of file Xterm.cc.

void Xterm::Window::deleteCharacters ( size_t  n,
DirtyRectangle rect 
)

Deletes n characters

Definition at line 2800 of file Xterm.cc.

void Xterm::Window::deleteLines ( size_t  n,
DirtyRectangle rect 
)

Deletes n lines

Definition at line 2950 of file Xterm.cc.

void Xterm::Window::eraseChars ( size_t  n,
DirtyRectangle rect 
)

Erase n characters.

Definition at line 2635 of file Xterm.cc.

void Xterm::Window::eraseDown ( DirtyRectangle rect)

Erase from the current line down.

Definition at line 2743 of file Xterm.cc.

void Xterm::Window::eraseEOL ( DirtyRectangle rect)

Erase to end of line.

Definition at line 2490 of file Xterm.cc.

void Xterm::Window::eraseLine ( DirtyRectangle rect)

Erase entire line.

Definition at line 2590 of file Xterm.cc.

void Xterm::Window::eraseScreen ( DirtyRectangle rect)

Erase the entire screen.

Definition at line 2442 of file Xterm.cc.

void Xterm::Window::eraseSOL ( DirtyRectangle rect)

Erase to start of line.

Definition at line 2543 of file Xterm.cc.

void Xterm::Window::eraseUp ( DirtyRectangle rect)

Erase from the current line up.

Definition at line 2691 of file Xterm.cc.

ssize_t Xterm::Window::getCursorXRelOrigin ( ) const

The RelOrigin versions retrieve relative when inside the page area, and the normal x/y if not.

Definition at line 2258 of file Xterm.cc.

void Xterm::Window::insertCharacters ( size_t  n,
DirtyRectangle rect 
)

Inserts n blank characters

Definition at line 2866 of file Xterm.cc.

void Xterm::Window::insertLines ( size_t  n,
DirtyRectangle rect 
)

Inserts n blank lines

Definition at line 2935 of file Xterm.cc.

void Xterm::Window::setTabStop ( )

Sets a tab stop at the current X position

Definition at line 3311 of file Xterm.cc.


The documentation for this class was generated from the following files: