Inheritance diagram for os::ScrollBar:
Public Member Functions | |
ScrollBar (const Rect &cFrame, const String &cName, Message *pcMsg, float vMin=0, float vMax=FLT_MAX, int nOrientation=VERTICAL, uint32 nResizeMask=0) | |
libSyllable os::ScrollBar | |
~ScrollBar () | |
libSyllable os::ScrollBar | |
void | SetScrollTarget (View *pcTarget) |
Sets the target that the ScrollBar sends messages to. | |
View * | GetScrollTarget (void) |
Gets the target that the ScrollBar sends messages to. | |
virtual void | PostValueChange (const Variant &cNewValue) |
virtual void | LabelChanged (const String &cNewLabel) |
virtual void | EnableStatusChanged (bool bIsEnabled) |
virtual bool | Invoked (Message *pcMessage) |
Intercept outgoing messages. | |
virtual void | FrameSized (const Point &cDelta) |
Virtual hook called by the system when the view is resized. | |
virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
Hook called by the system when the mouse is moved. | |
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
Hook called by the system when a mouse button is pressed. | |
virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
Hook called by the system when a mouse button is release. | |
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
Hook called by the system when a key is pressed while the view has focus. | |
virtual void | WheelMoved (const Point &cDelta) |
Hook called by the system when the scroll-wheel is rotated. | |
virtual void | Activated (bool bIsActive) |
Hook called when the view gain or loose focus. | |
virtual void | Paint (const Rect &cUpdateRect) |
Called by the system update "damaged" areas of the view. | |
virtual Point | GetPreferredSize (bool bLargest) const |
virtual void | TimerTick (int nID) |
Timer dispatch member. | |
void | SetSteps (float vSmall, float vBig) |
Sets the steps. | |
void | GetSteps (float *pvSmall, float *pvBig) const |
Gets the steps. | |
void | SetMinMax (float vMin, float vMax) |
Sets the minimum/maximum step. | |
void | SetProportion (float vProp) |
Sets the propotion. | |
float | GetProportion () const |
Gets the propotion. | |
Classes | |
class | Private |
internal More... |
ScrollBar::ScrollBar | ( | const Rect & | cFrame, | |
const String & | cName, | |||
Message * | pcMsg, | |||
float | vMin = 0 , |
|||
float | vMax = FLT_MAX , |
|||
int | nOrientation = VERTICAL , |
|||
uint32 | nResizeMask = 0 | |||
) |
cFrame | - The size and position of the ScrollBar | |
cName | - The name of the ScrollBar. | |
pcMsg | - The message for the ScrollBar. Used to pass messages to your element | |
vMin | - The minimum tick for the ScrollBar | |
vMax | - The maximum tick for the ScrollBar | |
nOrientation | - The position of the ScrollBar(use os::VERTICAL or os::HORIZONTAL) | |
nResizeMask | - Determines what way the ScrollBar will follow the rest of the window. Default is CF_FOLLOW_LEFT|CF_FOLLOW_TOP. |
ScrollBar::~ScrollBar | ( | ) |
void ScrollBar::SetScrollTarget | ( | View * | pcTarget | ) |
View * ScrollBar::GetScrollTarget | ( | void | ) |
void ScrollBar::PostValueChange | ( | const Variant & | cNewValue | ) | [virtual] |
Reimplemented from os::Control.
void ScrollBar::LabelChanged | ( | const String & | cNewLabel | ) | [virtual] |
Reimplemented from os::Control.
void ScrollBar::EnableStatusChanged | ( | bool | bIsEnabled | ) | [virtual] |
Implements os::Control.
bool ScrollBar::Invoked | ( | Message * | pcMessage | ) | [virtual] |
pcMessage | Pointer to the message that is about to be sendt. You can do any modification you like to this message (but never delete it). |
Reimplemented from os::Control.
void ScrollBar::FrameSized | ( | const Point & | cDelta | ) | [virtual] |
cDelta
calue from the current size. cDelta | The distance the bottom/right corner was moved relative to the upper/left corner. |
Reimplemented from os::View.
void ScrollBar::MouseMove | ( | const Point & | cNewPos, | |
int | nCode, | |||
uint32 | nButtons, | |||
Message * | pcData | |||
) | [virtual] |
cNewPos | New mouse position given in the views coordinate system. | |
nCode | Enter/exit code. This is MOUSE_ENTERED when the mouse first enter the view, MOUSE_EXITED when the mouse leaves the view, MOUSE_INSIDE whenever the mouse move withing the boundary of the view and MOUSE_OUTSIDE when the mouse move outside the view (will only happen if the view has focus). | |
nButtons | Bitmask telling which buttons that are currently pressed. Bit 0 is button 1 (left), bit 1 is button 2 (right), and bit 2 is button 3 (middle), and so on. | |
pcData | Pointer to a Message object containing the dragged data if the user is in the middle of a drag and drop operation. Otherwise this pointer is NULL. Look at BeginDrag() for a more detailed description of the drag and drop system. |
Reimplemented from os::View.
void ScrollBar::MouseDown | ( | const Point & | cPosition, | |
uint32 | nButtons | |||
) | [virtual] |
cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. |
Reimplemented from os::View.
pcData
member will point to a Message containing the dragged data. Look at BeginDrag() for a more detailed description of the drag and drop system. cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. | |
pcData | Pointer to a Message object containing the dragged data if this mouse-up was the end of a drag and drop operation. If no data was dragged it will be NULL. |
Reimplemented from os::View.
void ScrollBar::KeyDown | ( | const char * | pzString, | |
const char * | pzRawString, | |||
uint32 | nQualifiers | |||
) | [virtual] |
pzString | String containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed. | |
pzRawString | Same as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'. | |
nQualifiers | Bitmask describing which qualifiers that was active when the key was pressed. |
Reimplemented from os::View.
void ScrollBar::WheelMoved | ( | const Point & | cDelta | ) | [virtual] |
cDelta | Delta movement. Normally only the y value is used but it is possible for the mouse driver to also support horizontal scroll wheel functionality. The delta value is normally +/- 1.0 for each "click" on the wheel. |
Reimplemented from os::View.
void ScrollBar::Activated | ( | bool | bIsActive | ) | [virtual] |
bIsActive | - true if the view gain and false if it loose focus. |
Reimplemented from os::View.
void ScrollBar::Paint | ( | const Rect & | cUpdateRect | ) | [virtual] |
cUpdateRect | A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible. |
Reimplemented from os::View.
void ScrollBar::TimerTick | ( | int | nID | ) | [virtual] |
nID
parameter. \return |
Reimplemented from os::Handler.
void ScrollBar::SetSteps | ( | float | vSmall, | |
float | vBig | |||
) |
..
vSmall | - the new smallest step | |
vBig | - the new largest step |
void ScrollBar::GetSteps | ( | float * | pvSmall, | |
float * | pvBig | |||
) | const |
..
pvSmall | - pointer to the smallest step | |
pvBig | - pointer to the bigest step |
void ScrollBar::SetMinMax | ( | float | vMin, | |
float | vMax | |||
) |
..
vMin | - the minimum step | |
vMax | - the maximum step |
void ScrollBar::SetProportion | ( | float | vProp | ) |
..
vProp | - the new proportion |
float ScrollBar::GetProportion | ( | ) | const |
..