OsmAnd
Classes | Functions | Variables
jni/osmand/textdraw.cpp File Reference
#include <vector>
#include <set>
#include <algorithm>
#include <hash_map>
#include <time.h>
#include <jni.h>
#include "SkTypes.h"
#include "SkTypeface.h"
#include "SkCanvas.h"
#include "SkPaint.h"
#include "SkPath.h"
#include "common.h"
#include "renderRules.h"

Classes

class  quad_tree< T >
struct  quad_tree< T >::node

Functions

void fillTextProperties (TextDrawInfo *info, RenderingRuleSearchRequest *render, float cx, float cy)
bool isLetterOrDigit (char c)
void drawTextOnCanvas (SkCanvas *cv, std::string text, float centerX, float centerY, SkPaint &paintText, float textShadow)
void drawWrappedText (RenderingContext *rc, SkCanvas *cv, TextDrawInfo *text, float textSize, SkPaint &paintText)
bool calculatePathToRotate (RenderingContext *rc, TextDrawInfo *p)
void drawTestBox (SkCanvas *cv, SkRect *r, float rot, SkPaint *paintIcon, std::string text, SkPaint *paintText)
float sqr (float a)
bool intersects (SkRect tRect, float tRot, TextDrawInfo *s)
bool intersects (TextDrawInfo *t, TextDrawInfo *s)
bool findTextIntersection (SkCanvas *cv, RenderingContext *rc, quad_tree< TextDrawInfo * > &boundIntersections, TextDrawInfo *text, SkPaint *paintText, SkPaint *paintIcon)
bool textOrder (TextDrawInfo *text1, TextDrawInfo *text2)
void drawTextOverCanvas (RenderingContext *rc, SkCanvas *cv)

Variables

const char REF_CHAR = ((char)0x0019)
const char DELIM_CHAR = ((char)0x0018)
std::vector< TextDrawInfo * > search
SkTypeface * serif = SkTypeface::CreateFromName("Droid Serif", SkTypeface::kNormal)

Function Documentation

void drawTestBox ( SkCanvas *  cv,
SkRect *  r,
float  rot,
SkPaint *  paintIcon,
std::string  text,
SkPaint *  paintText 
)
void drawTextOnCanvas ( SkCanvas *  cv,
std::string  text,
float  centerX,
float  centerY,
SkPaint &  paintText,
float  textShadow 
)
void drawTextOverCanvas ( RenderingContext rc,
SkCanvas *  cv 
)
void drawWrappedText ( RenderingContext rc,
SkCanvas *  cv,
TextDrawInfo text,
float  textSize,
SkPaint &  paintText 
)
void fillTextProperties ( TextDrawInfo info,
RenderingRuleSearchRequest render,
float  cx,
float  cy 
)
bool findTextIntersection ( SkCanvas *  cv,
RenderingContext rc,
quad_tree< TextDrawInfo * > &  boundIntersections,
TextDrawInfo text,
SkPaint *  paintText,
SkPaint *  paintIcon 
)
bool intersects ( SkRect  tRect,
float  tRot,
TextDrawInfo s 
)
bool intersects ( TextDrawInfo t,
TextDrawInfo s 
)
bool isLetterOrDigit ( char  c)
float sqr ( float  a)
bool textOrder ( TextDrawInfo text1,
TextDrawInfo text2 
)

Variable Documentation

const char DELIM_CHAR = ((char)0x0018)
const char REF_CHAR = ((char)0x0019)
std::vector<TextDrawInfo*> search
SkTypeface* serif = SkTypeface::CreateFromName("Droid Serif", SkTypeface::kNormal)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines