00001 00005 /* 00006 Copyright (C) 2002-2010 UFO: Alien Invasion. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #ifndef CLIENT_UI_UI_NODE_TEXT_H 00026 #define CLIENT_UI_UI_NODE_TEXT_H 00027 00028 #include "ui_node_abstractscrollable.h" 00029 00030 struct uiBehaviour_s; 00031 struct uiAction_s; 00032 00033 void UI_TextScrollEnd(const char* nodePath); 00034 void UI_TextNodeSelectLine(struct uiNode_s *node, int num); 00035 00036 void UI_RegisterTextNode(struct uiBehaviour_s *behaviour); 00037 00038 typedef struct { 00039 abstractScrollableExtraData_t super; 00040 00041 int dataID; 00042 int versionId; 00044 int textLineSelected; 00045 int lineUnderMouse; 00046 int lineHeight; 00047 int tabWidth; 00048 int longlines; 00049 qboolean mousefx; 00050 00051 } textExtraData_t; 00052 00057 CASSERT(offsetof(textExtraData_t, super) == 0); 00058 00059 #endif