Mercurial > hg > ristipolku
comparison game/IDMWidget.java @ 175:55ea5821c802
Implement "real" widget modality.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Mar 2017 10:42:54 +0200 |
parents | 5070e57ebbfc |
children | 9f04e8ab180a |
comparison
equal
deleted
inserted
replaced
174:92df534806c4 | 175:55ea5821c802 |
---|---|
11 public class IDMWidget | 11 public class IDMWidget |
12 { | 12 { |
13 IDMWidget parent; | 13 IDMWidget parent; |
14 IDMPoint pos, size, scale; | 14 IDMPoint pos, size, scale; |
15 int keyCode; | 15 int keyCode; |
16 boolean modalWidget; | |
16 | 17 |
17 IDMPoint textCurrPos, textCurrOffs; | 18 IDMPoint textCurrPos, textCurrOffs; |
18 Paint textPaint; | 19 Paint textPaint; |
19 Font textFont; | 20 Font textFont; |
20 FontMetrics textMetrics; | 21 FontMetrics textMetrics; |
252 } | 253 } |
253 } | 254 } |
254 | 255 |
255 g.setPaint(savePaint); | 256 g.setPaint(savePaint); |
256 } | 257 } |
258 | |
259 public boolean isModal() | |
260 { | |
261 return modalWidget; | |
262 } | |
263 | |
264 public void setModal(boolean m) | |
265 { | |
266 modalWidget = m; | |
267 } | |
257 } | 268 } |