< GeeXLab Reference Guide />

> Back to Reference Guide Index


gh_window library

Description

gh_window is the module that manages the current window.


Number of functions: 5

  1. gh_window.getsize (Lua - Python)
  2. gh_window.set_alpha (Lua - Python)
  3. gh_window.timer_get_milliseconds (Lua - Python)
  4. gh_window.timer_get_seconds (Lua - Python)
  5. gh_window.timer_reset (Lua - Python)



getsize

Description

Returns the size of the window.


Syntax

width, height = gh_window.getsize(
 win_id
)

Languages

Lua - Python


Parameters


Return Values


Code sample

    
width, height = gh_window.getsize(0)
            


set_alpha

Description

Sets the alpha value of the window. Currently this function works only on Windows.


Syntax

gh_window.set_alpha(
 win_id,
 alpha
)

Languages

Lua - Python


Parameters


Return Values

This function has no return value(s).


Code sample

    
gh_window.set_alpha(0, 0.8)
            


timer_get_milliseconds

Description

Returns the number of milliseconds since the last reset.


Syntax

elapsed_time = gh_window.timer_get_milliseconds(
 win_id
)

Languages

Lua - Python


Parameters


Return Values


Code sample

    
elapsed_time = gh_window.timer_get_milliseconds(0)
            


timer_get_seconds

Description

Returns the number of seconds since the last reset.


Syntax

elapsed_time = gh_window.timer_get_seconds(
 win_id
)

Languages

Lua - Python


Parameters


Return Values


Code sample

    
elapsed_time = gh_window.timer_get_seconds(0)
            


timer_reset

Description

Resets the timer of the window.


Syntax

gh_window.timer_reset(
 win_id
)

Languages

Lua - Python


Parameters


Return Values

This function has no return value(s).


Code sample

    
gh_window.timer_reset(0)
            






GeeXLab Rootard Guide | Downloads | Contact | Newsletter