summaryrefslogtreecommitdiff
path: root/src/f_op/f_op_view.cpp
blob: ab201081031e1b43ce610f1890b1bd914fe9a4bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
 * f_op_view.cpp
 * View Process Framework
 */

#include "f_op/f_op_view.h"
#include "f_pc/f_pc_manager.h"

/* 8001F1A8-8001F1D0 019AE8 0028+00 1/0 0/0 0/0 .text            fopVw_Draw__FP10view_class */
void fopVw_Draw(view_class* i_this) {
    fpcLf_DrawMethod(i_this->sub_method, i_this);
}

/* 8001F1D0-8001F1F8 019B10 0028+00 1/0 0/0 0/0 .text            fopVw_Execute__FP10view_class */
void fopVw_Execute(view_class* i_this) {
    fpcMtd_Execute(&i_this->sub_method->mBase, i_this);
}

/* 8001F1F8-8001F220 019B38 0028+00 1/0 0/0 0/0 .text            fopVw_IsDelete__FPv */
s32 fopVw_IsDelete(void* i_this) {
    view_class* _this = (view_class*)i_this;
    return fpcMtd_IsDelete(&_this->sub_method->mBase, _this);
}

/* 8001F220-8001F248 019B60 0028+00 1/0 0/0 0/0 .text            fopVw_Delete__FP10view_class */
s32 fopVw_Delete(view_class* i_this) {
    return fpcMtd_Delete(&i_this->sub_method->mBase, i_this);
}

/* 8001F248-8001F284 019B88 003C+00 1/0 0/0 0/0 .text            fopVw_Create__FPv */
s32 fopVw_Create(void* i_this) {
    view_class* _this = (view_class*)i_this;

    view_process_profile_definition* pProf =
        (view_process_profile_definition*)fpcM_GetProfile(_this);
    _this->sub_method = pProf->sub_method;
    _this->field_0xc4 = pProf->unk28;

    return fpcMtd_Create(&_this->sub_method->mBase, _this);
}

/* ############################################################################################## */
/* 803A3928-803A3940 -00001 0014+04 0/0 2/0 0/0 .data            g_fopVw_Method */
leafdraw_method_class g_fopVw_Method = {
    (process_method_func)fopVw_Create,  (process_method_func)fopVw_Delete,
    (process_method_func)fopVw_Execute, (process_method_func)fopVw_IsDelete,
    (process_method_func)fopVw_Draw,
};