CMGDK r49-rc2
名字空间 | 宏定义 | 函数
K:/CMGDKv18/SDK/Source/GUI/Form.CPP文件参考
#include <hgl/hgl.h>
#include <hgl/gui/Form.H>
#include <hgl/gui/Common.H>
#include <hgl/object/Object.NULL.H>

名字空间

namespace  hgl
 

__MAKE_HGL__&&!__MAKE_PLUGIN__


namespace  hgl::gui

宏定义

#define PROCFUNC(proc, on)
#define PROCFUNC(proc_name, on_name, type)

函数

void hgl::gui::DrawRounded (Form *form)
void hgl::gui::DrawCaption (Form *form)
void hgl::gui::DrawRectangle (Form *form)
 hgl::gui::PROCFUNC (Proc_MouseLeftDoubleClick, OnMouseLeftDoubleClick)
 hgl::gui::PROCFUNC (Proc_MouseRightUp, OnMouseRightUp)
 hgl::gui::PROCFUNC (Proc_MouseRightDoubleClick, OnMouseRightDoubleClick)
 hgl::gui::PROCFUNC (Proc_MouseMidDown, OnMouseMidDown)
 hgl::gui::PROCFUNC (Proc_MouseMidUp, OnMouseMidUp)
 hgl::gui::PROCFUNC (Proc_MouseMidDoubleClick, OnMouseMidDoubleClick)
 hgl::gui::PROCFUNC (Proc_JoystickDown, OnJoystickDown, uint)
 hgl::gui::PROCFUNC (Proc_JoystickPress, OnJoystickPress, uint)
 hgl::gui::PROCFUNC (Proc_JoystickUp, OnJoystickUp, uint)
 hgl::gui::PROCFUNC (Proc_KeyDown, OnKeyDown, uint)
 hgl::gui::PROCFUNC (Proc_KeyPress, OnKeyPress, uint)
 hgl::gui::PROCFUNC (Proc_KeyUp, OnKeyUp, uint)
 hgl::gui::PROCFUNC (Proc_Char, OnChar, wchar_t)

宏定义文档

#define PROCFUNC (   proc,
  on 
)
值:
bool Form::proc(int x,int y,uint key)   \
                                    {    \
                                        if(!ObjectControl::proc(x,y,key))   \
                                        {   \
                                            if(MouseFocus)  \
                                            {   \
                                                if(on!=NULL)    \
                                                    CallEvent(on,(x-MenuX,y-MenuY,key));    \
                                            }   \
                                            else    \
                                            {   \
                                                if(CutEvent)    \
                                                {   \
                                                    SafeCallEvent(on,(x-MenuX,y-MenuY,key));    \
                                                    return(true);   \
                                                }   \
                                                else    \
                                                    return(false);  \
                                            }   \
                                        }   \
                                        \
                                        return(true);   \
                                    }
#define PROCFUNC (   proc_name,
  on_name,
  type 
)
值:
bool Form::proc_name(type key)  \
        {   \
            if(ObjectControl::proc_name(key))return(true);  \
        \
            SafeCallEvent(on_name,(key));   \
        \
            return(CutEvent);   \
        }
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义