Fovia's C++ Client/Server API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
virtual signed int | DecRef ()=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | MouseClicked (signed int x, signed int y)=0 |
virtual signed int | MouseDragged (signed int x, signed int y)=0 |
virtual signed int | MouseEntered (signed int x, signed int y)=0 |
virtual signed int | MouseExited (signed int x, signed int y)=0 |
virtual signed int | MouseManuallyMoved (signed int offsetX, signed int offsetY)=0 |
virtual signed int | MouseMoved (signed int x, signed int y)=0 |
virtual signed int | MousePressed (signed int x, signed int y)=0 |
virtual signed int | MouseReleased (signed int x, signed int y)=0 |
virtual signed int | SetRenderParamsReciever (IRenderParamsReceiver *pReceiver)=0 |
![]() | |
template<class T > | |
signed int | AskInterface (T **pp) |
Base class for mouse interaction adaptors. You should not create this object directly. Instead, you should create one of the various adaptors that descend from this object.
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
Call this function when the mouse is clicked on a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse is dragged on a rendered image (mouse button is down and the mouse has moved).
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse has entered the active area of a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse has exited the active area of a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Sometimes you might want to move the mouse manually. Perhaps you don't want the mouse to hit the edge of the screen so you wrap it around to the other side of the image. This function is intended to allow this adjsutment without causing the adaptor to jump positions suddenly because it didn't know the cursor was manually moved. Essentially, this adds the offset to the last mouse position to keep things smooth.
offsetX | The x component of the vector subtraction of the new point minus the old point. |
offsetY | The y component of the vector subtraction of the new point minus the old point. |
|
pure virtual |
Call this function when the mouse is moved on a rendered image (mouse button is up and the mouse has moved).
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse is first pressed on a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse is first released on a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
In order for a mouse adaptor to function properly, it must be attached to an IRenderParamsReceiver. At the time of this writing, IRenderEngineContext and IRenderQueue are the two implementers of this interface.
pReceiver | The IRenderParamsReceiver to attach to this adaptor. |