SkyGI::ProgressBar Class Reference

Inheritance diagram for SkyGI::ProgressBar:
[legend]
Collaboration diagram for SkyGI::ProgressBar:
[legend]
List of all members.

Public Member Functions

 ProgressBar (Window *pParent, const Rect rFrame, unsigned int nWindowLayoutFlags)
void Paint (const Rect &rDirty)
void SetMin (int iMin)
void SetMax (int iMax)
void Set (int iValue)
int Get ()
int GetMin ()
int GetMax ()
virtual void MouseDown (const InputEvent &nInputEvent)
virtual void MouseMove (const InputEvent &nInputEvent)
virtual void OnClicked (const InputEvent &nInputEvent, int iPos)

Public Attributes

signal2< const InputEvent &,
int > 
Clicked

Classes

class  Private

Detailed Description

Examples:

progressbar.cpp.


Constructor & Destructor Documentation

ProgressBar::ProgressBar ( Window pParent,
const Rect  rFrame,
unsigned int  nWindowLayoutFlags 
)


Member Function Documentation

void ProgressBar::Paint ( const Rect rDirty  )  [virtual]

Paint window content

Description:
This function gets called whenever an area of the window has to be redrawn. Usually you should only draw from inside the Paint function. If you need to redraw a window (when lets say some content must be updated), simply call Invalidate() which will then (asynchronly) call this paint function.

Usually you should draw the background using Window::DrawBackground(rDirty) and the border with DrawBorder(rRect). This way the user has full control over the appearance of your window, meaning he can change the background and border style.
The window content area itself is defined by the border margin and the window margin. Every window may define a margin. If you draw content into this window always make sure to not draw into the margin area. Additionally, the border has a margin too. As the user has full control to select any border for your window make sure to user the current borders margin when drawing window content. the dra Window::Paint() just redraws the background using DrawBackground. Overload this member function to add custom dawing code
Overload this member function to add custom dawing code
Parameters:
rDirty - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region.
See also:
DrawBorder, DrawBackground, Border, GetBorder, GetBorder::Margin, GetMargin

Reimplemented from SkyGI::Window.

void ProgressBar::SetMin ( int  iMin  ) 

void ProgressBar::SetMax ( int  iMax  ) 

void ProgressBar::Set ( int  iValue  ) 

int ProgressBar::Get (  ) 

int ProgressBar::GetMin (  ) 

int ProgressBar::GetMax (  ) 

void ProgressBar::MouseDown ( const InputEvent nInputEvent  )  [virtual]

Mouse pressed

Description:
This function gets called when a mouse press occured inside this window.
Overload this member function to react on mouse presses.
Parameters:
nButton - MouseButton which was pressed
nMouseButtonMask - Mask showing which mouse buttons were pressed when the mouse press occured
nInputEvent - INPUT_EVENT_MOUSE_PRESS for a single and INPUTE_EVENT_MOUSE_DOUBLECLICK for a doubleclick

Reimplemented from SkyGI::Window.

void ProgressBar::MouseMove ( const InputEvent nInputEvent  )  [virtual]

Mouse move

Description:
This function gets called when the mouse cursor was moved inside the window. Mouse move events are only generated after a call to EnableMouseMoveEvents(). Use DisableMouseMoveEvents() to disable further generation of mouse move events.
Overload this member function to react on mouse move events.
Parameters:
pNewPosition - Current mouse cursor position
pOldPosition - Old mouse cursor position
nMouseButtonMask - Mask showing which mouse buttons were pressed when the mouse move occured

Reimplemented from SkyGI::Window.

Examples:
progressbar.cpp.

void ProgressBar::OnClicked ( const InputEvent nInputEvent,
int  iPos 
) [virtual]


Member Data Documentation

signal2<const InputEvent&, int> SkyGI::ProgressBar::Clicked


Generated on Thu Dec 13 18:14:38 2007 for SkyGI by  doxygen 1.5.1-p1