add getters

This commit is contained in:
ehouse 2008-11-10 16:01:46 +00:00
parent e2cd0b5807
commit d4bc42b0a1
2 changed files with 16 additions and 2 deletions

View file

@ -1233,7 +1233,7 @@ trayOnTop( const BoardCtxt* board )
} /* trayOnTop */
XW_TrayVisState
board_getTrayVisState( BoardCtxt* board )
board_getTrayVisState( const BoardCtxt* board )
{
return board->trayVisState;
} /* board_getTrayVisible */
@ -1327,6 +1327,12 @@ invalReflection( BoardCtxt* board )
}
} /* invalReflection */
XP_Bool
board_get_flipped( const BoardCtxt* board )
{
return board->isFlipped;
}
XP_Bool
board_flip( BoardCtxt* board )
{
@ -1353,6 +1359,12 @@ board_flip( BoardCtxt* board )
return board->needsDrawing;
} /* board_flip */
XP_Bool
board_get_showValues( const BoardCtxt* board )
{
return board->showCellValues;
}
XP_Bool
board_toggle_showValues( BoardCtxt* board )
{

View file

@ -89,7 +89,9 @@ void board_invalRect( BoardCtxt* board, XP_Rect* rect );
XP_Bool board_draw( BoardCtxt* board );
XP_Bool board_get_flipped( const BoardCtxt* board );
XP_Bool board_flip( BoardCtxt* board );
XP_Bool board_get_showValues( const BoardCtxt* board );
XP_Bool board_toggle_showValues( BoardCtxt* board );
XP_Bool board_getShowColors( BoardCtxt* board );
XP_Bool board_setShowColors( BoardCtxt* board, XP_Bool showColors );
@ -147,7 +149,7 @@ void board_setTrayLoc( BoardCtxt* board, XP_U16 trayLeft, XP_U16 trayTop,
XP_U16 minDividerWidth );
XP_Bool board_hideTray( BoardCtxt* board );
XP_Bool board_showTray( BoardCtxt* board );
XW_TrayVisState board_getTrayVisState( BoardCtxt* board );
XW_TrayVisState board_getTrayVisState( const BoardCtxt* board );
void board_invalTrayTiles( BoardCtxt* board, TileBit what );
XP_Bool board_juggleTray( BoardCtxt* board );