ChaiLove API  0.28.0
Public Member Functions
love::window Class Reference

Provides an interface for modifying and retrieving information about the program's window. More...

Public Member Functions

std::string getTitle ()
 Gets the window title. More...
 
windowsetTitle (const std::string &title)
 Sets the window title. More...
 
windowshowMessageBox (const std::string &msg, int frames)
 Display a simple message for a certain amount of frames. More...
 

Detailed Description

Provides an interface for modifying and retrieving information about the program's window.

Member Function Documentation

◆ getTitle()

std::string love::window::getTitle ( )

Gets the window title.

Returns
The current window title.
See also
love.window.setTitle

◆ setTitle()

window& love::window::setTitle ( const std::string &  title)

Sets the window title.

Parameters
titleThe new window title.
Returns
The window system, for method chaining.
See also
love.window.getTitle

◆ showMessageBox()

window& love::window::showMessageBox ( const std::string &  msg,
int  frames 
)

Display a simple message for a certain amount of frames.

Parameters
msgThe message text to be displayed.
frames(2800) The amount of frames to display the message.
Returns
The window system, for method chaining.