Lines Matching refs:strokes
71 PRC_GetEntryStrokes(PRCStrokes *strokes,
129 static inline void PRC_InitStrokes(PRCStrokes *strokes, PRCPoint *points, u32 size) in PRC_InitStrokes() argument
131 SDK_ASSERT(strokes && points); in PRC_InitStrokes()
132 strokes->points = points; in PRC_InitStrokes()
133 strokes->capacity = size; in PRC_InitStrokes()
134 strokes->size = 0; in PRC_InitStrokes()
147 static inline void PRC_AppendPoint(PRCStrokes *strokes, int x, int y) in PRC_AppendPoint() argument
149 SDK_ASSERT(strokes); in PRC_AppendPoint()
150 SDK_ASSERT(strokes->size < strokes->capacity); in PRC_AppendPoint()
151 strokes->points[strokes->size].x = (s16)x; in PRC_AppendPoint()
152 strokes->points[strokes->size].y = (s16)y; in PRC_AppendPoint()
153 (strokes->size)++; in PRC_AppendPoint()
165 static inline void PRC_AppendPenUpMarker(PRCStrokes *strokes) in PRC_AppendPenUpMarker() argument
167 PRC_AppendPoint(strokes, PRC_PEN_UP_MARKER_X, PRC_PEN_UP_MARKER_Y); in PRC_AppendPenUpMarker()
179 static inline void PRC_Clear(PRCStrokes *strokes) in PRC_Clear() argument
181 SDK_ASSERT(strokes); in PRC_Clear()
182 strokes->size = 0; in PRC_Clear()
194 static inline BOOL PRC_IsFull(const PRCStrokes *strokes) in PRC_IsFull() argument
196 SDK_ASSERT(strokes); in PRC_IsFull()
197 return strokes->size >= strokes->capacity; in PRC_IsFull()
209 static inline BOOL PRC_IsEmpty(const PRCStrokes *strokes) in PRC_IsEmpty() argument
211 SDK_ASSERT(strokes); in PRC_IsEmpty()
212 return strokes->size == 0; in PRC_IsEmpty()