CDragBar Class Reference
class CDragBar : public CButtonBase
|
CDragBar
Drag bar
peninputlayoutcontrol.lib
-
Since
-
S60 V4.0
Inherited Functions
|
|
CBase::CBase()
|
|
CBase::Delete(CBase *)
|
|
CBase::operator new(TUint)
|
|
CBase::operator new(TUint,TAny *)
|
|
CBase::operator new(TUint,TLeave)
|
|
CBase::operator new(TUint,TLeave,TUint)
|
|
CBase::operator new(TUint,TUint)
|
|
CBase::~CBase()
|
|
CButtonBase::BaseConstructL()
|
|
CButtonBase::Bitmap(TButtonBmpType,TBool)
|
|
CButtonBase::BmpStretchable()
|
|
CButtonBase::CButtonBase(const TRect &,CFepUiLayout *,TInt)
|
|
CButtonBase::Draw()
|
|
CButtonBase::HandlePointerEnter(const TPoint &)
|
|
CButtonBase::HandlePointerLeave(const TPoint &)
|
|
CButtonBase::Hide(TBool)
|
|
CButtonBase::IsDimmed()
|
|
CButtonBase::ResetBmpPool()
|
|
CButtonBase::SetActive(TBool)
|
|
CButtonBase::SetBackgroundBitmapL(CFbsBitmap *)
|
|
CButtonBase::SetBackgroundMaskBitmapL(CFbsBitmap *)
|
|
CButtonBase::SetBmpStretchable(TBool)
|
|
CButtonBase::SetCaptionColor(const TRgb &)
|
|
CButtonBase::SetCaptionL(const TDesC &)
|
|
CButtonBase::SetCaptionShadowColor(const TRgb &)
|
|
CButtonBase::SetDimmed(TBool)
|
|
CButtonBase::SetFont(const CFont *)
|
|
CButtonBase::SetFont(const TFontSpec &)
|
|
CButtonBase::~CButtonBase()
|
|
CFepUiBaseCtrl::AbleToDraw()
|
|
CFepUiBaseCtrl::AbsOrderPos()
|
|
CFepUiBaseCtrl::ActiveExtResponseArea()
|
|
CFepUiBaseCtrl::AddEventObserver(MEventObserver *)
|
|
CFepUiBaseCtrl::AllowOverlap()
|
|
CFepUiBaseCtrl::BackgroundBmp()
|
|
CFepUiBaseCtrl::BaseConstructL(CFepUiLayoutRootCtrl *)
|
|
CFepUiBaseCtrl::BitGc()
|
|
CFepUiBaseCtrl::BitmapDevice()
|
|
CFepUiBaseCtrl::BkColor()
|
|
CFepUiBaseCtrl::BkMaskBmp()
|
|
CFepUiBaseCtrl::BorderColor()
|
|
CFepUiBaseCtrl::BorderSize()
|
|
CFepUiBaseCtrl::BringToBack()
|
|
CFepUiBaseCtrl::BringToTop()
|
|
CFepUiBaseCtrl::CFepUiBaseCtrl(CCoeControl *,CFepUiLayout *,TBool)
|
|
CFepUiBaseCtrl::CFepUiBaseCtrl(const TRect &,CFepUiLayout *,TInt)
|
|
CFepUiBaseCtrl::CancelExtResponseArea()
|
|
CFepUiBaseCtrl::CapturePointer(TBool)
|
|
CFepUiBaseCtrl::Clear()
|
|
CFepUiBaseCtrl::ClearRect(const TRect &)
|
|
CFepUiBaseCtrl::CompareOrder(CFepUiBaseCtrl *)
|
|
CFepUiBaseCtrl::CompareOrderInSameGroup(CFepUiBaseCtrl *)
|
|
CFepUiBaseCtrl::ConstructFromResourceL()
|
|
CFepUiBaseCtrl::Contains(const TPoint &)
|
|
CFepUiBaseCtrl::ControlId()
|
|
CFepUiBaseCtrl::ControlType()
|
|
CFepUiBaseCtrl::CreateOwnDeviceL(CFbsBitmap *,CFbsBitmap *)
|
|
CFepUiBaseCtrl::DisableRegionUpdating()
|
|
CFepUiBaseCtrl::DrawBackground(TBool)
|
|
CFepUiBaseCtrl::DrawBackground(const TRect,TBool)
|
|
CFepUiBaseCtrl::DrawBackgroundToDevice(TRect,CFbsDevice *,CFbsBitmap *,const TRgb &,const TRgb &,TBool)
|
|
CFepUiBaseCtrl::DrawBitmap(const CFbsBitmap *,TBool)
|
|
CFepUiBaseCtrl::DrawBitmap(const TRect,const CFbsBitmap *,TBool)
|
|
CFepUiBaseCtrl::DrawMaskBackground(TBool)
|
|
CFepUiBaseCtrl::DrawOpaqueMaskBackground(TBool)
|
|
CFepUiBaseCtrl::DrawOpaqueMaskBackground(const TRect,TBool)
|
|
CFepUiBaseCtrl::DrawShadow()
|
|
CFepUiBaseCtrl::DrawTransparentMaskBackground(const TRect &,TBool)
|
|
CFepUiBaseCtrl::EnableExtResponseArea(TBool,const TRect &)
|
|
CFepUiBaseCtrl::EnableRegionUpdating()
|
|
CFepUiBaseCtrl::Extension_(TUint,TAny *&,TAny *)
|
|
CFepUiBaseCtrl::GraphicDeviceSizeChanged()
|
|
CFepUiBaseCtrl::HandlePositionChange(const TPoint &)
|
|
CFepUiBaseCtrl::HandleResourceChange(TInt)
|
|
CFepUiBaseCtrl::Hiden()
|
|
CFepUiBaseCtrl::IsActive()
|
|
CFepUiBaseCtrl::IsFepBaseControl()
|
|
CFepUiBaseCtrl::IsKindOfControl(TStockBaseCtrlType)
|
|
CFepUiBaseCtrl::IsOnTopOf(CFepUiBaseCtrl *)
|
|
CFepUiBaseCtrl::MaskBitmapDevice()
|
|
CFepUiBaseCtrl::MaskBkCol()
|
|
CFepUiBaseCtrl::MovingArea()
|
|
CFepUiBaseCtrl::NONSHARABLE_CLASS(CFepUiBaseCtrlExtension)
|
|
CFepUiBaseCtrl::OnActivate()
|
|
CFepUiBaseCtrl::OnLayoutDraggingEnd()
|
|
CFepUiBaseCtrl::OnLayoutDraggingStart()
|
|
CFepUiBaseCtrl::OrderPos()const
|
|
CFepUiBaseCtrl::Overlapped(CFepUiBaseCtrl *)
|
|
CFepUiBaseCtrl::ParentCtrl()
|
|
CFepUiBaseCtrl::PenColor()
|
|
CFepUiBaseCtrl::PenSize()
|
|
CFepUiBaseCtrl::PointerDown()
|
|
CFepUiBaseCtrl::ReDrawRect(const TRect &)
|
|
CFepUiBaseCtrl::Ready()
|
|
CFepUiBaseCtrl::Rect()
|
|
CFepUiBaseCtrl::Region()
|
|
CFepUiBaseCtrl::RemoveEventObserver(MEventObserver *)
|
|
CFepUiBaseCtrl::ReportEvent(TInt,const TDesC &)
|
|
CFepUiBaseCtrl::RequireRegionUpdateL(TBool)
|
|
CFepUiBaseCtrl::ResizeDeviceL()
|
|
CFepUiBaseCtrl::ResourceId()
|
|
CFepUiBaseCtrl::RootControl()
|
|
CFepUiBaseCtrl::SetAllowOverlap(TBool)
|
|
CFepUiBaseCtrl::SetBackgroundBmp(CFbsBitmap *)
|
|
CFepUiBaseCtrl::SetBackgroundMaskBmp(CFbsBitmap *)
|
|
CFepUiBaseCtrl::SetBkColor(const TRgb &)
|
|
CFepUiBaseCtrl::SetBorderColor(const TRgb &)
|
|
CFepUiBaseCtrl::SetBorderSize(const TSize &)
|
|
CFepUiBaseCtrl::SetControlType(TControlType)
|
|
CFepUiBaseCtrl::SetHidenFlag(TBool)
|
|
CFepUiBaseCtrl::SetMaskBkCol(const TRgb &)
|
|
CFepUiBaseCtrl::SetOrdinalPos(TInt)
|
|
CFepUiBaseCtrl::SetParent(CFepUiBaseCtrl *)
|
|
CFepUiBaseCtrl::SetPenColor(const TRgb &)
|
|
CFepUiBaseCtrl::SetPenSize(const TSize &)
|
|
CFepUiBaseCtrl::SetPointerDown(TBool)
|
|
CFepUiBaseCtrl::SetReady(TBool)
|
|
CFepUiBaseCtrl::SetRect(const TRect &)
|
|
CFepUiBaseCtrl::SetRegion(const RRegion &)
|
|
CFepUiBaseCtrl::SetResourceId(TInt32)
|
|
CFepUiBaseCtrl::SetShadowAreaRect(const TRect &,TShadowBitmapIndex)
|
|
CFepUiBaseCtrl::SetShadowBmp(CFbsBitmap *,CFbsBitmap *,TShadowBitmapIndex)
|
|
CFepUiBaseCtrl::SetShadowRect(const TRect &)
|
|
CFepUiBaseCtrl::SetTactileFeedbackType(TInt)
|
|
CFepUiBaseCtrl::ShadowAreaRect(TShadowBitmapIndex)
|
|
CFepUiBaseCtrl::ShadowRect()
|
|
CFepUiBaseCtrl::SimulateRawEvent(const TRawEvent &)
|
|
CFepUiBaseCtrl::TactileFeedbackType()const
|
|
CFepUiBaseCtrl::UiLayout()
|
|
CFepUiBaseCtrl::UpdateArea(const TRect &,TBool)
|
|
CFepUiBaseCtrl::UpdateAreaImmed(const TRect &,TBool)
|
|
CFepUiBaseCtrl::UpdateValidRegion(CFepUiBaseCtrl *,TBool)
|
|
CFepUiBaseCtrl::ValidClipRegion()
|
|
CFepUiBaseCtrl::WholeHiden()
|
|
CFepUiBaseCtrl::WndBasedControl()
|
|
CFepUiBaseCtrl::WndControl()
|
|
CFepUiBaseCtrl::~CFepUiBaseCtrl()
|
Constructor & Destructor Documentation
CDragBar(const TRect &, CFepUiLayout *, TInt)
Parameters
const
TRect
& aRect
|
The rectangle area for this control
|
CFepUiLayout
* aUiLayout
|
Ui layout who contains this control. Ownership not transferred
|
TInt
aControlId
|
control Id
|
~CDragBar()
IMPORT_C
|
~CDragBar
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddPositionObserver(MPositionObserver *)
Add position observer. When drag bar moved, the observer will get notified.
AddToDraggingCtrlList(CFepUiBaseCtrl *)
Add a control to the dragging list
AfterDragging()
void
|
AfterDragging
|
(
|
)
|
[private]
|
Restore states after dragging
CancelPointerDownL()
IMPORT_C void
|
CancelPointerDownL
|
(
|
)
|
[virtual]
|
Cancel pointer down event. This will be called when a control has pointer down but pointer up event happens in other ways. If overrided, this base implementation must be called in order to report the event.
ConstructL()
IMPORT_C void
|
ConstructL
|
(
|
)
|
[protected]
|
Second phrase constructor
DrawFrame(const TRect &, TBool)
TRect
|
DrawFrame
|
(
|
const
TRect
&
|
aFrameRect,
|
|
TBool
|
aDrawFlag = ETrue
|
|
)
|
[private]
|
Parameters
const
TRect
& aFrameRect
|
The rect to be drawn
|
TBool
aDrawFlag = ETrue
|
Draw or erase flag. ETrue if draw
|
EnableDragging(TBool)
void
|
EnableDragging
|
(
|
TBool
|
aFlag = ETrue
|
)
|
[inline]
|
Enable/disable dragging feature. Dragging is enabled by default when created.
Parameters
TBool
aFlag = ETrue
|
dragging flag. Default value is ETrue
|
HandleControlEvent(TInt, CFepUiBaseCtrl *, const TDesC &)
Parameters
TInt
aEventType
|
The event type
|
CFepUiBaseCtrl
* aCtrl
|
The control who sends the event
|
const
TDesC
& aEventData
|
The event data
|
HandlePointerDownEventL(const TPoint &)
Parameters
const
TPoint
& aPoint
|
The point position relative the layout
|
HandlePointerMoveEventL(const TPoint &)
Parameters
const
TPoint
& aPoint
|
The point position relative the layout
|
HandlePointerUpEventL(const TPoint &)
Parameters
const
TPoint
& aPoint
|
The point position relative the layout
|
HandleTimerOut(TInt)
IMPORT_C void
|
HandleTimerOut
|
(
|
TInt
|
aTimeType
|
)
|
|
Parameters
TInt
aTimeType
|
The timer type
|
IsDragging()
TBool
|
IsDragging
|
(
|
)
|
[inline]
|
IsDraggingComponent(CFepUiBaseCtrl *)
Check a control is the position observer of the dragbar
IsValidDestination(const TPoint &, TBool &, TBool &)
Test whether the moving destination is valid
Parameters
const
TPoint
& aPt
|
The destionation point
|
TBool
& aVInfo
|
The valid information in vertial dirtection
|
TBool
& aHInfo
|
The valid information in horizontal dirtection
|
Move(const TPoint &)
IMPORT_C void
|
Move
|
(
|
const
TPoint
&
|
aOffset
|
)
|
[virtual]
|
Parameters
const
TPoint
& aOffset
|
The offset to be moved
|
NewL(const TRect &, CFepUiLayout *, TInt)
Parameters
const
TRect
& aRect
|
The rectangle area for this control
|
CFepUiLayout
* aUiLayout
|
Ui layout who contains this control.Ownership not transferred
|
TInt
aControlId
|
control Id
|
OnDeActivate()
IMPORT_C void
|
OnDeActivate
|
(
|
)
|
[virtual]
|
From
CFepUiBaseCtrl
OnDeActivate. Called when the layout is going to be hidden
PrepareDragging()
void
|
PrepareDragging
|
(
|
)
|
[private]
|
Do preparation before dragging
ReCalculateDragArea()
void
|
ReCalculateDragArea
|
(
|
)
|
|
Recalculate moving area. It's called when it's observer changes size.
RemovePositionObserver(MPositionObserver *)
Remove position observer.
SetBitmapL(CFbsBitmap *, TButtonBmpType)
IMPORT_C void
|
SetBitmapL
|
(
|
CFbsBitmap
*
|
aBmp,
|
|
TButtonBmpType
|
aType
|
|
)
|
|
Set bitmap for given status .
Parameters
CFbsBitmap
* aBmp
|
The bitmap. Ownership transferred to dragbar
|
TButtonBmpType
aType
|
|
SetLongpressTimer(TTimeIntervalMicroSeconds32)
Set the long press time out.
SetMaskBitmapL(CFbsBitmap *, TButtonBmpType)
IMPORT_C void
|
SetMaskBitmapL
|
(
|
CFbsBitmap
*
|
aBmp,
|
|
TButtonBmpType
|
aType
|
|
)
|
|
Set mask bitmap for given status .
Parameters
CFbsBitmap
* aBmp
|
The bitmap. Ownership transferred to dragbar aType The type of bitmap
|
TButtonBmpType
aType
|
|
SetRedrawInterval(TTimeIntervalMicroSeconds32)
Set the moving draw interval.
ShowMovingIndicator(TBool)
void
|
ShowMovingIndicator
|
(
|
TBool
|
aDrawFlag = ETrue
|
)
|
[private]
|
Show or hide the moving indicator
Parameters
TBool
aDrawFlag = ETrue
|
ETrue if show the moving indicator. Default value ETrue
|
Member Data Documentation
TPoint
iCurrentPointerPos
TPoint
|
iCurrentPointerPos
|
[private]
|
Currnt pointer position. Need to kept since we use timely drawing.
TRect
iDragFrameRect
TRect
|
iDragFrameRect
|
[private]
|
The rect to be drawn when dragging. It's the rect of whole dragging area
RPointerArray< CFepUiBaseCtrl > iDraggingCtrlList
A list keeps all the control belongs to the dragging area
TBool
iDraggingEnabled
TBool
|
iDraggingEnabled
|
[private]
|
Draing enabler flag. Only this flag set can dragbar movable. Default value is ETrue
TPoint
iDraggingStartPt
TPoint
|
iDraggingStartPt
|
[private]
|
TTimeIntervalMicroSeconds32
iDrawInterval
Redraw timer interval. While moving, it's not drawn if another redraw event comes
TBool
iIsDragging
TBool
|
iIsDragging
|
[private]
|
TBool
iLayoutBeingDraged
TBool
|
iLayoutBeingDraged
|
[private]
|
Flag tells whether whole layout is being draged
CLayoutTimer * iLongPressTimer
CLayoutTimer *
|
iLongPressTimer
|
[private]
|
TBool
iLongPressed
TBool
|
iLongPressed
|
[private]
|
Flag tells whether long pressing happend
TTimeIntervalMicroSeconds32
iLongtimePressTimeout
Long time press timer interval
TPoint
iMoveOffset
Moving offset when drag bar is moving.
CLayoutTimer * iMoveTimer
CLayoutTimer *
|
iMoveTimer
|
[private]
|
Redraw timer for moving Own
TBool
iMoved
Moving flag, is it moving.
CFbsBitmap * iMovingIndicatorBmp
Moving indicator bitmap Own.
CFbsBitmap * iMovingIndicatorMaskBmp
Moving indicator mask bitmap Own
TPoint
iMovingIndicatorPos
TPoint
|
iMovingIndicatorPos
|
[private]
|
The position where moving indidator is displayed
TBool
iNeedLongtimePress
TBool
|
iNeedLongtimePress
|
[private]
|
Long time press event flag. When this is enabled, dragbar starts move only after long press time out
RPointerArray< MPositionObserver > iPosObserverList
Position change observer list
TInt
iReserved1
TInt
|
iReserved1
|
[private]
|
TInt
iReserved2
TInt
|
iReserved2
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.