MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ShowWidget

Function ShowWidget

src/LBackend_Android.c:557–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557static void ShowWidget(struct LWidget* w) {
558 switch (w->type) {
559 case LWIDGET_BUTTON:
560 LBackend_ButtonShow((struct LButton*)w);
561 LBackend_ButtonUpdate((struct LButton*)w);
562 break;
563 case LWIDGET_CHECKBOX:
564 LBackend_CheckboxShow((struct LCheckbox*)w);
565 break;
566 case LWIDGET_INPUT:
567 LBackend_InputShow((struct LInput*)w);
568 LBackend_InputUpdate((struct LInput*)w);
569 break;
570 case LWIDGET_LABEL:
571 LBackend_LabelShow((struct LLabel*)w);
572 LBackend_LabelUpdate((struct LLabel*)w);
573 break;
574 case LWIDGET_LINE:
575 LBackend_LineShow((struct LLine*)w);
576 break;
577 case LWIDGET_SLIDER:
578 LBackend_SliderShow((struct LSlider*)w);
579 break;
580 case LWIDGET_TABLE:
581 LBackend_TableShow((struct LTable*)w);
582 break;
583 }
584}
585
586void LBackend_SetScreen(struct LScreen* s) {
587 for (int i = 0; i < s->numWidgets; i++)

Callers 1

LBackend_SetScreenFunction · 0.85

Calls 10

LBackend_ButtonShowFunction · 0.85
LBackend_CheckboxShowFunction · 0.85
LBackend_InputShowFunction · 0.85
LBackend_LabelShowFunction · 0.85
LBackend_LineShowFunction · 0.85
LBackend_SliderShowFunction · 0.85
LBackend_TableShowFunction · 0.85
LBackend_ButtonUpdateFunction · 0.70
LBackend_InputUpdateFunction · 0.70
LBackend_LabelUpdateFunction · 0.70

Tested by

no test coverage detected