#include <address_field_button.h>
Public Member Functions | |
AddressFieldButton (const os::Rect &cFrame, os::String label, os::Image *bitmap, os::Message *msg, uint32 nResizeMask=os::CF_FOLLOW_LEFT|os::CF_FOLLOW_TOP, uint32 nFlags=os::WID_WILL_DRAW|os::WID_CLEAR_BACKGROUND|os::WID_FULL_UPDATE_ON_RESIZE) | |
AddressFieldButton Constructor. This initializes all of the internal variables and calculates the height of the font. | |
~AddressFieldButton () | |
Default Deconstructor. Deletes the _Private object allocated for drawing. | |
void | MouseMove (const os::Point &cNewPos, int nCode, uint32 nButtons, os::Message *pcData) |
MouseMove Handler. This handles whether or not the mouse is over the button and when to start displaying the mouse over view of the button. | |
virtual void | Paint (const os::Rect &cUpdate) |
Draw the Button. This draws the rounded button with its image and label. | |
virtual os::Point | GetPreferredSize (bool bLargest) const |
Return the preferred size of the button. | |
virtual void | AllDetached () |
AllDetached Overloaded Function. When everything is detached, set the mouse over for the _Private object to false. | |
Private Attributes | |
_Private * | m |
Classes | |
class | _Private |
Private class used only by AddressFieldButton. More... |
AddressFieldButton::AddressFieldButton | ( | const os::Rect & | cFrame, | |
os::String | label, | |||
os::Image * | bitmap, | |||
os::Message * | msg, | |||
uint32 | nResizeMask = os::CF_FOLLOW_LEFT | os::CF_FOLLOW_TOP , |
|||
uint32 | nFlags = os::WID_WILL_DRAW | os::WID_CLEAR_BACKGROUND | os::WID_FULL_UPDATE_ON_RESIZE | |||
) |
AddressFieldButton Constructor. This initializes all of the internal variables and calculates the height of the font.
cFrame | Rectangular dimensions of the object. This is passed directly to os::Button. | |
label | Label for the address field button. | |
bitmap | Image associated with the button. | |
msg | Message to send to the object. This is passed directly to os::Button. | |
nResizeMask | Resize mask for the object. See os::Button definition for more information. | |
nFlags | Flags for the button. See os::Button definition for more information. |
void AddressFieldButton::MouseMove | ( | const os::Point & | cNewPos, | |
int | nCode, | |||
uint32 | nButtons, | |||
os::Message * | pcData | |||
) |
MouseMove Handler. This handles whether or not the mouse is over the button and when to start displaying the mouse over view of the button.
void AddressFieldButton::Paint | ( | const os::Rect & | cUpdate | ) | [virtual] |
Draw the Button. This draws the rounded button with its image and label.
cUpdate | The region of the window to update. |
_Private* AddressFieldButton::m [private] |
Private class used only by AddressFieldButton. Pointer to our private class used by AddressFieldButton.