core/vgui/vgui_poly_tableau.cxx File Reference

Class vgui_poly_tableau is a tableau which renders its children into sub-rectangles of its given viewport. More...

#include "vgui_poly_tableau.h"
#include <vcl_iostream.h>
#include <vcl_cassert.h>
#include <vgui/vgui_gl.h>
#include <vgui/vgui_macro.h>
#include <vgui/vgui_event.h>
#include <vgui/vgui_matrix_state.h>
#include <vgui/vgui_popup_params.h>

Go to the source code of this file.


Detailed Description

Class vgui_poly_tableau is a tableau which renders its children into sub-rectangles of its given viewport.

The subrectangles are given as relative coordinates on [0,1]x[0,1], with (0,0) being the lower left corner and (1,1) the upper right corner. vgui_poly_tableau has a concept of which child is 'current', meaning roughly which child is getting the mouse events.

Class vgui_poly_tableau is derived from vgui_poly_tableau and automatically switches current child, according to where the pointer is, in a sensible way.

This can be used to emulate two adaptors side by side.

Definition in file vgui_poly_tableau.cxx.