48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
|
/* This file was generated by Maki Compiler, do not edit manually */
|
||
|
|
||
|
#ifndef __HOOK_LAYOUT_H
|
||
|
#define __HOOK_LAYOUT_H
|
||
|
|
||
|
#include "h_group.h"
|
||
|
|
||
|
#define H_LAYOUT_PARENT H_Group
|
||
|
|
||
|
class H_Layout : public H_LAYOUT_PARENT {
|
||
|
|
||
|
public:
|
||
|
|
||
|
H_Layout(ScriptObject *o);
|
||
|
H_Layout();
|
||
|
virtual ~H_Layout();
|
||
|
virtual void H_hook(ScriptObject *o);
|
||
|
ScriptObject *getHookedObject();
|
||
|
|
||
|
virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
|
||
|
virtual void hook_onDock() { }
|
||
|
virtual void hook_onUndock() { }
|
||
|
virtual void hook_onScale(double newscalevalue) { }
|
||
|
virtual void hook_onMove() { }
|
||
|
virtual void hook_onEndMove() { }
|
||
|
virtual void hook_onUserResize(int x, int y, int w, int h) { }
|
||
|
virtual void hook_onMouseEnterLayout() { }
|
||
|
virtual void hook_onMouseLeaveLayout() { }
|
||
|
virtual void hook_onSnapAdjustChanged() { }
|
||
|
|
||
|
private:
|
||
|
|
||
|
ScriptObject *obj;
|
||
|
int inited;
|
||
|
static int loaded;
|
||
|
static int ondock_id;
|
||
|
static int onundock_id;
|
||
|
static int onscale_id;
|
||
|
static int onmove_id;
|
||
|
static int onendmove_id;
|
||
|
static int onuserresize_id;
|
||
|
static int onmouseenterlayout_id;
|
||
|
static int onmouseleavelayout_id;
|
||
|
static int onsnapadjustchanged_id;
|
||
|
};
|
||
|
|
||
|
#endif
|