GlistEngine
Loading...
Searching...
No Matches
gGUIControl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Nitra Games Ltd.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef UI_GGUICONTROL_H_
18#define UI_GGUICONTROL_H_
19
20#include "gBaseGUIObject.h"
21
30public:
31
33 virtual ~gGUIControl();
34
35 virtual void set(gBaseApp* root, gBaseGUIObject* topParentGUIObject, gBaseGUIObject* parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h);
36
37 virtual int getCursor(int x, int y);
38
39 virtual void update();
40 virtual void draw();
41
42 virtual int calculateContentHeight() {
43 return height;
44 }
45
46 virtual bool countAsSpace();
47 void setCountAsSpace(bool isSpace);
48
49protected:
52};
53
54#endif /* UI_GGUICONTROL_H_ */
Definition gBaseApp.h:16
Definition gBaseGUIObject.h:18
gBaseApp * root
Definition gBaseGUIObject.h:147
int height
Definition gBaseGUIObject.h:120
Definition gGUIControl.h:29
virtual bool countAsSpace()
bool countasspace
Definition gGUIControl.h:50
void setCountAsSpace(bool isSpace)
virtual void update()
virtual void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h)
virtual ~gGUIControl()
int oldwidth
Definition gGUIControl.h:51
int oldheight
Definition gGUIControl.h:51
virtual void draw()
virtual int getCursor(int x, int y)
virtual int calculateContentHeight()
Definition gGUIControl.h:42