Reference

CL_EventChain_WindowResize(3)

Event sending interface for window resizes.

NAME

CL_EventChain_WindowResize - Event sending interface for window resizes.

DESCRIPTION

Event chains are used to route an event to an event listener. The toplevel event chain for window resizes, located in CL_Display, is called by ClanLib, but you can also send false events by calling on_window_resize() yourself. Note that CL_EventChain_WindowResize is inheriated from CL_EventWindowResize, so you can add a chain to the toplevel chain. This is useful, if you want to do more advanced routing of events.

Inherited from public CL_EventChain<CL_Event_WindowResize*>, public CL_Event_WindowResize

CLASS MEMBERS

virtual bool on_window_resize(
 CL_DisplayCard *card,
int new_width,
int new_height)

MEMBERS WITH DESCRIPTIONS

virtual bool on_window_resize(
 CL_DisplayCard *card,
int new_width,
int new_height)

Parameters:
card - Window/card that the event originates from.
new_width - The new width of the window.
new_height - The new height of the window.

Description:

Call this function to send a window resize event down through the event chain.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.