LGI  1.0
Lliurex Graphic Interface
Public Member Functions | Public Attributes | List of all members
net::lliurex::lgi::Layer Class Reference

#include <layer.hpp>

Public Member Functions

 Layer (std::string name, float x, float y, int depth)
 
 Layer (std::string name)
 
virtual ~Layer ()
 
virtual void SetDepth (int depth)
 
virtual void Add (Widget *widget)
 
virtual void Draw (cairo_t *cairo)
 
virtual void OnExpose (ExposeEvent *event)
 
virtual void OnResize (ResizeEvent *event)
 
virtual void OnKeyPress (KeyPressEvent *event)
 
virtual void OnKeyUp (KeyUpEvent *event)
 
virtual void OnKeyDown (KeyDownEvent *event)
 
virtual void OnCharacter (CharacterEvent *event)
 
virtual void OnMouseDown (Widget *widget, MouseDownEvent *event)
 
virtual void OnMouseUp (Widget *widget, MouseUpEvent *event)
 
virtual void OnMouseMove (Widget *widget, MouseMoveEvent *event)
 
virtual void OnMouseEnter (Widget *widget, MouseEnterEvent *event)
 
virtual void OnMouseExit (Widget *widget, MouseExitEvent *event)
 
virtual void OnMouseClick (Widget *widget, MouseClickEvent *event)
 
virtual void OnMouseDoubleClick (Widget *widget, MouseDoubleClickEvent *event)
 
virtual void OnDrag (Widget *widget, DragEvent *event)
 
virtual void OnDrop (Widget *widget, DropEvent *event)
 
virtual void OnDestroy (DestroyEvent *event)
 
virtual void OnMessage (Widget *widget, MessageEvent *event)
 
virtual void OnAdd (LayerAddEvent *event)
 
virtual void OnRemove (LayerRemoveEvent *event)
 
virtual void OnShow (LayerShowEvent *event)
 
virtual void OnHide (LayerHideEvent *event)
 
virtual void OnDndEnter (DndEnterEvent *event)
 
virtual void OnDndLeave (DndLeaveEvent *event)
 
virtual void OnDndDrop (DndDropEvent *event)
 
virtual void OnDndMove (DndMoveEvent *event)
 
virtual void OnGotFocus (Widget *widget, GotFocusEvent *event)
 
virtual void OnLostFocus (Widget *widget, LostFocusEvent *event)
 

Public Attributes

std::vector< Widget * > widgets
 
std::string name
 
float x
 
float y
 
int depth
 
bool visible
 
Widgetfocus
 

Constructor & Destructor Documentation

net::lliurex::lgi::Layer::Layer ( std::string  name,
float  x,
float  y,
int  depth 
)

Layer constructor

Parameters
namelayer name
xscreen x offset
yscreen y offset
depthdetermines z sorting in the layer stack
net::lliurex::lgi::Layer::Layer ( std::string  name)
virtual net::lliurex::lgi::Layer::~Layer ( )
virtual

Member Function Documentation

virtual void net::lliurex::lgi::Layer::Add ( Widget widget)
virtual
virtual void net::lliurex::lgi::Layer::Draw ( cairo_t *  cairo)
virtual
virtual void net::lliurex::lgi::Layer::OnAdd ( LayerAddEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnCharacter ( CharacterEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDestroy ( DestroyEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDndDrop ( DndDropEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDndEnter ( DndEnterEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDndLeave ( DndLeaveEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDndMove ( DndMoveEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnDrag ( Widget widget,
DragEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnDrop ( Widget widget,
DropEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnExpose ( ExposeEvent event)
virtual

Event hooks

virtual void net::lliurex::lgi::Layer::OnGotFocus ( Widget widget,
GotFocusEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnHide ( LayerHideEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnKeyDown ( KeyDownEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnKeyPress ( KeyPressEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnKeyUp ( KeyUpEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnLostFocus ( Widget widget,
LostFocusEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMessage ( Widget widget,
MessageEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseClick ( Widget widget,
MouseClickEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseDoubleClick ( Widget widget,
MouseDoubleClickEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseDown ( Widget widget,
MouseDownEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseEnter ( Widget widget,
MouseEnterEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseExit ( Widget widget,
MouseExitEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseMove ( Widget widget,
MouseMoveEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnMouseUp ( Widget widget,
MouseUpEvent event 
)
virtual
virtual void net::lliurex::lgi::Layer::OnRemove ( LayerRemoveEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnResize ( ResizeEvent event)
virtual
virtual void net::lliurex::lgi::Layer::OnShow ( LayerShowEvent event)
virtual
virtual void net::lliurex::lgi::Layer::SetDepth ( int  depth)
virtual

Member Data Documentation

int net::lliurex::lgi::Layer::depth
Widget* net::lliurex::lgi::Layer::focus
std::string net::lliurex::lgi::Layer::name
bool net::lliurex::lgi::Layer::visible
std::vector<Widget *> net::lliurex::lgi::Layer::widgets
float net::lliurex::lgi::Layer::x
float net::lliurex::lgi::Layer::y

The documentation for this class was generated from the following file: