Numworks Epsilon  1.4.1
Graphing Calculator Operating System
KDContext Class Referenceabstract

#include <context.h>

Inheritance diagram for KDContext:
KDFrameBufferContext KDIonContext

Public Member Functions

void setOrigin (KDPoint origin)
 
void setClippingRect (KDRect clippingRect)
 
void setPixel (KDPoint p, KDColor c)
 
KDColor getPixel (KDPoint p)
 
KDPoint drawString (const char *text, KDPoint p, KDText::FontSize size=KDText::FontSize::Large, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite, int maxLength=-1)
 
KDPoint blendString (const char *text, KDPoint p, KDText::FontSize size, KDColor textColor=KDColorBlack)
 
void drawLine (KDPoint p1, KDPoint p2, KDColor c)
 
void fillRect (KDRect rect, KDColor color)
 
void fillRectWithPixels (KDRect rect, const KDColor *pixels, KDColor *workingBuffer)
 
void blendRectWithMask (KDRect rect, KDColor color, const uint8_t *mask, KDColor *workingBuffer)
 
void strokeRect (KDRect rect, KDColor color)
 

Protected Member Functions

 KDContext (KDPoint origin, KDRect clippingRect)
 
virtual void pushRect (KDRect, const KDColor *pixels)=0
 
virtual void pushRectUniform (KDRect rect, KDColor color)=0
 
virtual void pullRect (KDRect rect, KDColor *pixels)=0
 

Detailed Description

Definition at line 8 of file context.h.

Constructor & Destructor Documentation

◆ KDContext()

KDContext::KDContext ( KDPoint  origin,
KDRect  clippingRect 
)
protected

Definition at line 4 of file context.cpp.

Member Function Documentation

◆ blendRectWithMask()

void KDContext::blendRectWithMask ( KDRect  rect,
KDColor  color,
const uint8_t mask,
KDColor workingBuffer 
)

Definition at line 65 of file context_rect.cpp.

◆ blendString()

KDPoint KDContext::blendString ( const char *  text,
KDPoint  p,
KDText::FontSize  size,
KDColor  textColor = KDColorBlack 
)

Definition at line 13 of file context_text.cpp.

◆ drawLine()

void KDContext::drawLine ( KDPoint  p1,
KDPoint  p2,
KDColor  c 
)

Definition at line 4 of file context_line.cpp.

◆ drawString()

KDPoint KDContext::drawString ( const char *  text,
KDPoint  p,
KDText::FontSize  size = KDText::FontSize::Large,
KDColor  textColor = KDColorBlack,
KDColor  backgroundColor = KDColorWhite,
int  maxLength = -1 
)

Definition at line 9 of file context_text.cpp.

◆ fillRect()

void KDContext::fillRect ( KDRect  rect,
KDColor  color 
)

Definition at line 8 of file context_rect.cpp.

◆ fillRectWithPixels()

void KDContext::fillRectWithPixels ( KDRect  rect,
const KDColor pixels,
KDColor workingBuffer 
)

Definition at line 17 of file context_rect.cpp.

◆ getPixel()

KDColor KDContext::getPixel ( KDPoint  p)

Definition at line 10 of file context_pixel.cpp.

◆ pullRect()

virtual void KDContext::pullRect ( KDRect  rect,
KDColor pixels 
)
protectedpure virtual

Implemented in KDFrameBufferContext.

◆ pushRect()

virtual void KDContext::pushRect ( KDRect  ,
const KDColor pixels 
)
protectedpure virtual

Implemented in KDFrameBufferContext.

◆ pushRectUniform()

virtual void KDContext::pushRectUniform ( KDRect  rect,
KDColor  color 
)
protectedpure virtual

Implemented in KDFrameBufferContext.

◆ setClippingRect()

void KDContext::setClippingRect ( KDRect  clippingRect)

Definition at line 14 of file context.cpp.

◆ setOrigin()

void KDContext::setOrigin ( KDPoint  origin)

Definition at line 10 of file context.cpp.

◆ setPixel()

void KDContext::setPixel ( KDPoint  p,
KDColor  c 
)

Definition at line 3 of file context_pixel.cpp.

◆ strokeRect()

void KDContext::strokeRect ( KDRect  rect,
KDColor  color 
)

Definition at line 89 of file context_rect.cpp.


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