JNR
Main Page
Modules
Class List
File List
uiDesktop.h
1
/*
2
3
Jump'n'Run Engine
4
http://www.atanaslaskov.com/jnr/
5
6
BSD LICENSE
7
Copyright (c) 2007-2013, Atanas Laskov
8
All rights reserved.
9
10
Redistribution and use in source and binary forms, with or without
11
modification, are permitted provided that the following conditions are met:
12
1. Redistributions of source code must retain the above copyright notice,
13
this list of conditions and the following disclaimer.
14
2. Redistributions in binary form must reproduce the above copyright notice,
15
this list of conditions and the following disclaimer in the documentation
16
and/or other materials provided with the distribution.
17
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
DISCLAIMED. IN NO EVENT SHALL ATANAS LASKOV BE LIABLE FOR ANY
21
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28
*/
29
31
32
40
41
#ifndef UIDESKTOP_H
42
#define UIDESKTOP_H
43
44
class
uiDesktop
:
public
uiContainer
45
{
46
protected
:
47
48
//Skin object
49
uiSkin
m_uiSkin;
50
51
//Mouse pointer
52
uiPointer
m_uiPtr;
53
54
//Background ojbect
55
laSky
_cbSky;
56
57
public
:
58
//Constructor/destructor
59
uiDesktop
();
60
~
uiDesktop
();
61
62
//Create/destroy
63
void
create(
char
* strDesktopName);
64
void
kill
();
65
66
//Draw the desktop
67
//and all schild objects
68
void
drawBackground();
69
virtual
void
draw
();
70
71
//Reply to mouse command
72
virtual
void
reply
();
73
74
uiPointer
* getMousePointer() {
return
&m_uiPtr; }
75
uiSkin
* getSkin() {
return
&m_uiSkin; }
76
};
77
78
//extern uiDesktop* g_pDesktop;
79
80
#endif
81
uiContainer
GUI Container Window.
Definition:
uiContainer.h:42
uiDesktop::kill
void kill()
Discard window and all children.
Definition:
uiDesktop.cpp:86
uiSkin
GUI Skin.
Definition:
uiSkin.h:65
laSky
Sky Background Effect.
Definition:
laSky.h:48
uiDesktop
GUI Topmost Window.
Definition:
uiDesktop.h:44
uiDesktop::reply
virtual void reply()
Handle input message.
Definition:
uiDesktop.cpp:124
uiDesktop::draw
virtual void draw()
Display the window.
Definition:
uiDesktop.cpp:112
uiPointer
GUI Mouse Pointer.
Definition:
uiPointer.h:41
Source
GUI
uiDesktop.h
Generated by
1.8.9.1