//***************************************************************************** // //! Draws a released Button. //! //! \param context is a pointer to the drawing context to use. //! \param button is a pointer to the structure containing the extents of the //! button. //! //! This function draws a button using the released parameters. //! //! \return None. // //***************************************************************************** void Graphics_drawReleasedButton(const Graphics_Context *context, const Graphics_Button *button) { uint32_t origFrgnd = g_sContext.foreground; Graphics_Font *origFont = (Graphics_Font *) g_sContext.font; Graphics_Rectangle innerRect = { button->xMin + button->borderWidth, button->yMin + button->borderWidth, button->xMax - button->borderWidth, button->yMax - button->borderWidth, }; Graphics_setForegroundColor(&g_sContext,button->fillColor); Graphics_fillRectangle(&g_sContext, &innerRect); Graphics_setFont(&g_sContext,button->font); Graphics_setForegroundColor(&g_sContext,button->textColor); Graphics_drawString(&g_sContext, button->text, AUTO_STRING_LENGTH, button->textXPos, button->textYPos, TRANSPARENT_TEXT); Graphics_setFont(&g_sContext,origFont); Graphics_setForegroundColor(&g_sContext,origFrgnd); }
fastiva_vm_Graphics__drawString( java_lang_String_p pString1, jint int2, jint int3, jint int4 ) { FASTIVA_DBREAK(); Graphics_drawString(0, self, pString1, int2, int3, int4); }
void drawString(std::string string, int32_t x, int32_t y, bool opaque) { Graphics_drawString(this, string.data(), string.length(), x, y, opaque); }