This is a UEFI gui demo app i wrote for my job project.

I have implemented some basic UI components,edit box, combox, label, dialog, text edit, button, radio box, and window system.  It was written in c++. Now I know how to write ui system



  1. Hi Shaun ,

    I saw your topic of UEFI GUI App , this is awesome , i try to write a GUI program on UEFI Shell ,
    but stop at dont know how to put image and mouse ,
    could you give me some suggestion for how to start.

    thanks a lot

    • 1,read image bmp file into memory buffer,

      2, locate gEfiGraphicsOutputProtocolGuid
      EFI_GUID gEfiGraphicsOutputProtocolGuid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
      Status = gBS->LocateProtocol(
      (VOID **)&m_GraphicsOutput);

      3, call blt function
      Status = m_GraphicsOutput->Blt(m_GraphicsOutput, (EFI_GRAPHICS_OUTPUT_BLT_PIXEL*)bitmap, EfiBltBufferToVideo, StartX, StartY, DestinationX, DestinationY, Width, Height, m_frame_width*4);

Leave a Reply

Your email address will not be published. Required fields are marked *