Function createPopup [src]

Displays a popup window.

Prototype

pub fn createPopup( self: *const HiiPopup, style: PopupStyle, popup_type: PopupType, handle: hii.Handle, msg: u16, ) CreatePopupError!PopupSelection

Parameters

self: *const HiiPopupstyle: PopupStylepopup_type: PopupTypehandle: hii.Handlemsg: u16

Possible Errors

InvalidParameter
OutOfResources
Unexpected UnexpectedError

Source

pub fn createPopup( self: *const HiiPopup, style: PopupStyle, popup_type: PopupType, handle: hii.Handle, msg: u16, ) CreatePopupError!PopupSelection { var res: PopupSelection = undefined; switch (self._create_popup(self, style, popup_type, handle, msg, &res)) { .success => return res, .invalid_parameter => return Error.InvalidParameter, .out_of_resources => return Error.OutOfResources, else => |status| return uefi.unexpectedStatus(status), } }