63 bool isAttached ()
const {
return systemWindow !=
nullptr; }
73 tresult PLUGIN_API
attached (
void* parent, FIDString type) SMTG_OVERRIDE;
74 tresult PLUGIN_API
removed () SMTG_OVERRIDE;
76 tresult PLUGIN_API
onWheel (
float ) SMTG_OVERRIDE {
return kResultFalse; }
82 tresult PLUGIN_API
onKeyUp (char16 , int16 , int16 ) SMTG_OVERRIDE
89 tresult PLUGIN_API
onFocus (TBool ) SMTG_OVERRIDE {
return kResultFalse; }
96 tresult PLUGIN_API
canResize () SMTG_OVERRIDE {
return kResultFalse; }
111 void* systemWindow {
nullptr};
112 IPtr<IPlugFrame> plugFrame;
Plug-In view default implementation.
virtual void removedFromParent()
Calls when this view will be removed from its parent view.
tresult PLUGIN_API attached(void *parent, FIDString type) SMTG_OVERRIDE
The parent window of the view has been created, the (platform) representation of the view should now ...
tresult PLUGIN_API onWheel(float) SMTG_OVERRIDE
Handling of mouse wheel.
bool isAttached() const
Checks if this view is attached to its parent view.
tresult PLUGIN_API canResize() SMTG_OVERRIDE
Is view sizable by user.
tresult PLUGIN_API setFrame(IPlugFrame *frame) SMTG_OVERRIDE
Sets IPlugFrame object to allow the plug-in to inform the host about resizing.
const ViewRect & getRect() const
Returns its current frame rectangle.
tresult PLUGIN_API onKeyDown(char16, int16, int16) SMTG_OVERRIDE
Handling of keyboard events : Key Down.
tresult PLUGIN_API getSize(ViewRect *size) SMTG_OVERRIDE
Returns the size of the platform representation of the view.
virtual void attachedToParent()
Calls when this view will be attached to its parent view.
tresult PLUGIN_API onFocus(TBool) SMTG_OVERRIDE
Focus changed message.
tresult PLUGIN_API onKeyUp(char16, int16, int16) SMTG_OVERRIDE
Handling of keyboard events : Key Up.
tresult PLUGIN_API onSize(ViewRect *newSize) SMTG_OVERRIDE
Resizes the platform representation of the view to the given rect.
tresult PLUGIN_API checkSizeConstraint(ViewRect *) SMTG_OVERRIDE
On live resize this is called to check if the view can be resized to the given rect,...
tresult PLUGIN_API removed() SMTG_OVERRIDE
The parent window of the view is about to be destroyed.
void setRect(const ViewRect &r)
Sets a new frame rectangle.
tresult PLUGIN_API isPlatformTypeSupported(FIDString type) SMTG_OVERRIDE
Is Platform UI Type supported.
Implements FUnknown and IDependent.
Callback interface passed to IPlugView.
Plug-in definition of a view.
Basic Object implementing FUnknown.
#define DEFINE_INTERFACES
Start defining interfaces.
#define DEF_INTERFACE(InterfaceName)
Add a interfaces.
#define END_DEFINE_INTERFACES(BaseClass)
End defining interfaces.
#define REFCOUNT_METHODS(BaseClass)
Delegate refcount functions to BaseClass.
Graphical rectangle structure.