CL_EventChain_WindowResize3
Event sending interface for window resizes.
Overview
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.