Class encapsulates shape's handle. The class shouldn't be used separately; see wxSFShapeBase class for more detailed information about functions used for managing of shape handles and handling their events.
More...
#include <ShapeHandle.h>
|
enum | HANDLETYPE {
hndLEFTTOP
, hndTOP
, hndRIGHTTOP
, hndRIGHT
,
hndRIGHTBOTTOM
, hndBOTTOM
, hndLEFTBOTTOM
, hndLEFT
,
hndLINECTRL
, hndLINESTART
, hndLINEEND
, hndUNDEF
} |
| Handle type. More...
|
|
|
void | _OnMouseMove (const wxPoint &pos) |
| Event handler called when the mouse pointer is moving above shape canvas. More...
|
|
void | _OnBeginDrag (const wxPoint &pos) |
| Event handler called when the handle is started to be dragged. More...
|
|
void | _OnDragging (const wxPoint &pos) |
| Event handler called when the handle is dragged. More...
|
|
void | _OnEndDrag (const wxPoint &pos) |
| Event handler called when the handle is released. More...
|
|
Class encapsulates shape's handle. The class shouldn't be used separately; see wxSFShapeBase class for more detailed information about functions used for managing of shape handles and handling their events.
◆ HANDLETYPE
Handle type.
Enumerator |
---|
hndLEFTTOP | |
hndTOP | |
hndRIGHTTOP | |
hndRIGHT | |
hndRIGHTBOTTOM | |
hndBOTTOM | |
hndLEFTBOTTOM | |
hndLEFT | |
hndLINECTRL | |
hndLINESTART | |
hndLINEEND | |
hndUNDEF | |
◆ wxSFShapeHandle() [1/3]
wxSFShapeHandle::wxSFShapeHandle |
( |
void |
| ) |
|
◆ wxSFShapeHandle() [2/3]
User constructor.
- Parameters
-
parent | Parent shape |
type | Handle type |
id | Handle ID (usefull only for line controls handles) |
◆ wxSFShapeHandle() [3/3]
Copy constructor.
- Parameters
-
◆ ~wxSFShapeHandle()
virtual wxSFShapeHandle::~wxSFShapeHandle |
( |
void |
| ) |
|
|
virtual |
◆ _OnBeginDrag()
void wxSFShapeHandle::_OnBeginDrag |
( |
const wxPoint & |
pos | ) |
|
|
private |
Event handler called when the handle is started to be dragged.
- Parameters
-
pos | Current mouse position |
◆ _OnDragging()
void wxSFShapeHandle::_OnDragging |
( |
const wxPoint & |
pos | ) |
|
|
private |
Event handler called when the handle is dragged.
- Parameters
-
pos | Current mouse position |
◆ _OnEndDrag()
void wxSFShapeHandle::_OnEndDrag |
( |
const wxPoint & |
pos | ) |
|
|
private |
Event handler called when the handle is released.
- Parameters
-
pos | Current mouse position |
◆ _OnMouseMove()
void wxSFShapeHandle::_OnMouseMove |
( |
const wxPoint & |
pos | ) |
|
|
private |
Event handler called when the mouse pointer is moving above shape canvas.
- Parameters
-
pos | Current mouse position |
◆ Contains()
bool wxSFShapeHandle::Contains |
( |
const wxPoint & |
pos | ) |
|
Find out whether given point is inside the handle.
- Parameters
-
- Returns
- TRUE if the point is inside the handle, otherwise FALSE
◆ DECLARE_DYNAMIC_CLASS()
◆ Draw()
void wxSFShapeHandle::Draw |
( |
wxDC & |
dc | ) |
|
|
protected |
Draw handle.
- Parameters
-
dc | Device context where the handle will be drawn |
◆ DrawHover()
void wxSFShapeHandle::DrawHover |
( |
wxDC & |
dc | ) |
|
|
protected |
Draw handle in the "hover" way (the mouse pointer is above the handle area).
- Parameters
-
dc | Device context where the handle will be drawn |
◆ DrawNormal()
void wxSFShapeHandle::DrawNormal |
( |
wxDC & |
dc | ) |
|
|
protected |
Draw handle in the normal way.
- Parameters
-
dc | Device context where the handle will be drawn |
◆ GetDelta()
wxPoint wxSFShapeHandle::GetDelta |
( |
| ) |
const |
|
inline |
Get current handle delta (difference between current and previous position).
- Returns
- Handle delta
◆ GetHandleRect()
wxRect wxSFShapeHandle::GetHandleRect |
( |
| ) |
const |
|
protected |
Get handle rectangle.
- Returns
- Handle rectangle
◆ GetId()
long wxSFShapeHandle::GetId |
( |
| ) |
|
|
inline |
Get handle's ID.
- Returns
- id Handle's ID
◆ GetParentShape()
Get parent shape.
- Returns
- Pointer to parent shape
◆ GetPosition()
wxPoint wxSFShapeHandle::GetPosition |
( |
| ) |
const |
|
inline |
Get current handle position.
- Returns
- Handle position
◆ GetTotalDelta()
wxPoint wxSFShapeHandle::GetTotalDelta |
( |
| ) |
const |
|
inline |
Get current total handle delta (difference between current and starting position stored at the begining of the dragging process).
- Returns
- Total handle delta
◆ GetType()
Get handle type.
- Returns
- Handle type
- See also
- HANDLETYPE
◆ IsVisible()
bool wxSFShapeHandle::IsVisible |
( |
| ) |
|
|
inline |
Function returns TRUE if the handle is visible, otherwise FALSE.
◆ Refresh()
void wxSFShapeHandle::Refresh |
( |
| ) |
|
Refresh (repaint) the handle.
◆ SetId()
void wxSFShapeHandle::SetId |
( |
long |
id | ) |
|
|
inline |
Set handle's ID.
- Parameters
-
◆ SetParentShape()
Set parent shape.
- Parameters
-
parent | Pointer to parent shape |
◆ SetType()
◆ Show()
void wxSFShapeHandle::Show |
( |
bool |
show | ) |
|
|
inline |
Show/hide handle.
- Parameters
-
show | TRUE if the handle should be visible (active), otherwise FALSE |
◆ wxSFShapeBase
◆ wxSFShapeCanvas
◆ m_fMouseOver
bool wxSFShapeHandle::m_fMouseOver |
|
protected |
◆ m_fVisible
bool wxSFShapeHandle::m_fVisible |
|
protected |
◆ m_nCurrPos
wxPoint wxSFShapeHandle::m_nCurrPos |
|
private |
◆ m_nId
long wxSFShapeHandle::m_nId |
|
private |
◆ m_nPrevPos
wxPoint wxSFShapeHandle::m_nPrevPos |
|
private |
◆ m_nStartPos
wxPoint wxSFShapeHandle::m_nStartPos |
|
private |
◆ m_nType
◆ m_pParentShape
The documentation for this class was generated from the following file: