The Möbius Operating System: OS::Button class Reference
HOME DOWNLOAD DOCUMENTATION SCREENSHOTS  

OS::Button Class Reference

Button control. More...

#include <Button.h>

Inheritance diagram for OS::Button:

OS::Control OS::WindowImpl OS::Window OS::MessageHandler List of all members.

Protected Member Functions

void OnPaint ()
 Handler for MSG_PAINT messages.

void OnMouseDown (point_t pt)
 Handler for MSG_MOUSEDOWN messages.

void OnMouseMove (point_t pt)
 Handler for MSG_MOUSEMOVE messages.

void OnMouseUp (point_t pt)
 Handler for MSG_MOUSEUP messages.


Protected Attributes

bool m_is_down
bool m_is_mouse_down

Detailed Description

Button control.


Member Function Documentation

void Button::OnMouseDown point_t  pt  )  [protected, virtual]
 

Handler for MSG_MOUSEDOWN messages.

Parameters:
\pt Position of the mouse pointer when the button was pressed

Reimplemented from OS::WindowImpl.

void Button::OnMouseMove point_t  pt  )  [protected, virtual]
 

Handler for MSG_MOUSEMOVE messages.

Parameters:
pt Position of the mouse pointer after it was moved

Reimplemented from OS::WindowImpl.

void Button::OnMouseUp point_t  pt  )  [protected, virtual]
 

Handler for MSG_MOUSEUP messages.

Parameters:
\pt Position of the mouse pointer when the button was released

Reimplemented from OS::WindowImpl.

void Button::OnPaint  )  [protected, virtual]
 

Handler for MSG_PAINT messages.

You should declare a Painter object in your OnPaint handler, or call BeginPaint.

Reimplemented from OS::WindowImpl.


The documentation for this class was generated from the following files:
  • /include/gui/Button.h
  • /coreos/libgui/Button.cpp
Post a comment

From: