Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UPane Class Reference

Pane gadget (for making Viewports, Cardboxes, Transparent layers). More...

#include <upane.hpp>

Inheritance diagram for UPane:

UBox UGroup UScrollpane List of all members.

Public Member Functions

 UPane (const UArgs &a=UArgs::none)
 constructor: see shortcut creator upane() and UGroup::~UGroup()
virtual ~UPane ()
virtual const UStylegetStyle (UContext *) const
 returns the contextual UStyle of this object
float getXScroll ()
float getYScroll ()
 returns the current scroll values (float values between 0 and 100).
void setXScroll (float _xscroll)
void setYScroll (float _yscroll)
void setScroll (float xscroll, float yscroll)
 scrolls the pane (and the associated scrollbars when applicable) float values are between 0 and 100.
void scrollImpl (float new_xscroll, float new_yscroll, bool upd_x, bool upd_y, bool update_pane)
 [impl] does not update the associated scrollbars.
UBoxgetViewport ()
 returns the current Viewport (if any; null otherwise).
UViewgetViewportView (UView *pane_view)
 returns the corresponding Viewport View.
UScrollbargetVScrollbar ()
UScrollbargetHScrollbar ()
 return the Vertical and Horizontal Scrollbars (if any; null otherwise)

Static Public Member Functions

static const UStylemakeStyle ()
 creates the Style of this object.

Static Public Attributes

static UStylestyle = null
 corresponding Ubit UStyle

Friends

UPaneupane (const UArgs &a=UArgs::none)
 shortcut creator: creates a new UPane

Detailed Description

Pane gadget (for making Viewports, Cardboxes, Transparent layers).

There are 5 ways of using UPanes:


Constructor & Destructor Documentation

UPane::~UPane  )  [virtual]
 

!Att: scrollbar pas forcement enfnats du Pane !


Member Function Documentation

virtual const UStyle& UPane::getStyle UContext *   )  const [virtual]
 

returns the contextual UStyle of this object

This virtual function calls the makeStyle() static function that was redefined for this specific class

Reimplemented from UBox.

UBox * UPane::getViewport  ) 
 

returns the current Viewport (if any; null otherwise).

The viewport is the scrolled box in the center area.

UView * UPane::getViewportView UView pane_view  ) 
 

returns the corresponding Viewport View.

Returns the UView of the current Viewport that is contained in Pen view that is given as an argument

const UStyle & UPane::makeStyle  )  [static]
 

creates the Style of this object.

This static function is redefined by each class that derives from UGroup. It is called by the virtual function UGroup::getStyle()

Reimplemented from UBox.


The documentation for this class was generated from the following files:
Generated on Thu May 19 11:39:25 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2