mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
add draw_boardBegin
This commit is contained in:
parent
5afb7aadff
commit
ce64f79cdd
2 changed files with 10 additions and 1 deletions
|
@ -221,7 +221,14 @@ static XP_Bool
|
|||
and_draw_boardBegin( DrawCtx* dctx, const XP_Rect* rect,
|
||||
XP_U16 cellWidth, XP_U16 cellHeight, DrawFocusState dfs )
|
||||
{
|
||||
return XP_TRUE;
|
||||
DRAW_CBK_HEADER( "boardBegin", "(Landroid/graphics/Rect;III)Z" );
|
||||
|
||||
jobject jrect = makeJRect( draw, JCACHE_RECT0, rect );
|
||||
|
||||
jboolean result = (*env)->CallBooleanMethod( env, draw->jdraw, mid,
|
||||
jrect, cellWidth, cellHeight,
|
||||
(jint)dfs );
|
||||
return result;
|
||||
}
|
||||
|
||||
static XP_Bool
|
||||
|
|
|
@ -49,6 +49,8 @@ public interface DrawCtx {
|
|||
void drawRemText( Rect rInner, Rect rOuter, int nTilesLeft, boolean focussed );
|
||||
void score_drawPlayer( Rect rInner, Rect rOuter, DrawScoreInfo dsi );
|
||||
void drawTimer( Rect rect, int player, int secondsLeft );
|
||||
boolean boardBegin( Rect rect, int cellWidth, int cellHeight,
|
||||
int dfs );
|
||||
|
||||
boolean drawCell( Rect rect, String text, int tile,
|
||||
int owner, int bonus, int hintAtts, int flags );
|
||||
|
|
Loading…
Add table
Reference in a new issue