/***********************************************************************
filename: CEGUIWindow.cpp
created: 21/2/2004
author: Paul D Turner
purpose: Implements the Window base class
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#include "CEGUIWindow.h"
#include "CEGUIExceptions.h"
#include "CEGUIWindowManager.h"
#include "CEGUISystem.h"
#include "CEGUIWindowController.h"
#include "CEGUIFontManager.h"
#include "CEGUIImagesetManager.h"
#include "CEGUIImageset.h"
#include "CEGUIMouseCursor.h"
#include "CEGUICoordConverter.h"
#include "CEGUIWindowRendererManager.h"
#include "elements/CEGUITooltip.h"
#include "falagard/CEGUIFalWidgetLookManager.h"
#include "falagard/CEGUIFalWidgetLookFeel.h"
#include "falagard/CEGUIFalWidgetComponent.h"
#include <algorithm>
#include <cmath>
#include <stdio.h>
// Start of CEGUI namespace section
namespace CEGUI
{
const String Window::EventNamespace("Window");
/*************************************************************************
Definitions for Window base class Properties
*************************************************************************/
WindowProperties::Alpha Window::d_alphaProperty;
WindowProperties::AlwaysOnTop Window::d_alwaysOnTopProperty;
WindowProperties::ClippedByParent Window::d_clippedByParentProperty;
WindowProperties::DestroyedByParent Window::d_destroyedByParentProperty;
WindowProperties::Disabled Window::d_disabledProperty;
WindowProperties::Font Window::d_fontProperty;
WindowProperties::ID Window::d_IDProperty;
WindowProperties::InheritsAlpha Window::d_inheritsAlphaProperty;
WindowProperties::MouseCursorImage Window::d_mouseCursorProperty;
WindowProperties::RestoreOldCapture Window::d_restoreOldCaptureProperty;
WindowProperties::Text Window::d_textProperty;
WindowProperties::Visible Window::d_visibleProperty;
WindowProperties::ZOrderChangeEnabled Window::d_zOrderChangeProperty;
WindowProperties::WantsMultiClickEvents Window::d_wantsMultiClicksProperty;
WindowProperties::MouseButtonDownAutoRepeat Window::d_autoRepeatProperty;
WindowProperties::AutoRepeatDelay Window::d_autoRepeatDelayProperty;
WindowProperties::AutoRepeatRate Window::d_autoRepeatRateProperty;
WindowProperties::DistributeCapturedInputs Window::d_distInputsProperty;
WindowProperties::CustomTooltipType Window::d_tooltipTypeProperty;
WindowProperties::Tooltip Window::d_tooltipProperty;
WindowProperties::InheritsTooltipText Window::d_inheritsTooltipProperty;
WindowProperties::RiseOnClick Window::d_riseOnClickProperty;
WindowProperties::VerticalAlignment Window::d_vertAlignProperty;
WindowProperties::HorizontalAlignment Window::d_horzAlignProperty;
WindowProperties::UnifiedAreaRect Window::d_unifiedAreaRectProperty;
WindowProperties::UnifiedPosition Window::d_unifiedPositionProperty;
WindowProperties::UnifiedXPosition Window::d_unifiedXPositionProperty;
WindowProperties::UnifiedYPosition Window::d_unifiedYPositionProperty;
WindowProperties::UnifiedSize Window::d_unifiedSizeProperty;
WindowProperties::UnifiedWidth Window::d_unifiedWidthProperty;
WindowProperties::UnifiedHeight Window::d_unifiedHeightProperty;
WindowProperties::UnifiedMinSize Window::d_unifiedMinSizeProperty;
WindowProperties::UnifiedMaxSize Window::d_unifiedMaxSizeProperty;
WindowProperties::MousePassThroughEnabled Window::d_mousePassThroughEnabledProperty;
WindowProperties::WindowRenderer Window::d_windowRendererProperty;
WindowProperties::LookNFeel Window::d_lookNFeelProperty;
WindowProperties::DragDropTarget Window::d_dragDropTargetProperty;
/*************************************************************************
static data definitions
*************************************************************************/
Window* Window::d_captureWindow = 0;
/*************************************************************************
Event name constants
*************************************************************************/
const String Window::EventWindowUpdated ( "WindowUpdate" );
const String Window::EventParentSized( "ParentSized" );
const String Window::EventSized( "Sized" );
const String Window::EventMoved( "Moved" );
const String Window::EventTextChanged( "TextChanged" );
const String Window::EventFontChanged( "FontChanged" );
const String Window::EventAlphaChanged( "AlphaChanged" );
const String Window::EventIDChanged( "IDChanged" );
const String Window::EventActivated( "Activated" );
const String Window::EventDeactivated( "Deactivated" );
const String Window::EventShown( "Shown" );
const String Window::EventHidden( "Hidden" );
const String Window::EventEnabled( "Enabled" );
const String Window::EventDisabled( "Disabled" );
const String Window::EventClippedByParentChanged( "ClippingChanged" );
const String Window::EventDestroyedByParentChanged( "DestroyedByParentChanged" );
const String Window::EventInheritsAlphaChanged( "InheritAlphaChanged" );
const String Window::EventAlwaysOnTopChanged( "AlwaysOnTopChanged" );
const String Window::EventInputCaptureGained( "CaptureGained" );
const String Window::EventInputCaptureLost( "CaptureLost" );
const String Window::EventRenderingStarted( "StartRender" );
const String Window::EventRenderingEnded( "EndRender" );
const String Window::EventChildAdded( "AddedChild" );
const String Window::EventChildRemoved( "RemovedChild" );
const String Window::EventDestructionStarted( "DestructStart" );
const String Window::EventZOrderChanged( "ZChanged" );
const String Window::EventDragDropItemEnters("DragDropItemEnters");
const String Window::EventDragDropItemLeaves("DragDropItemLeaves");
const String Window::EventDragDropItemDropped("DragDropItemDropped");
const String Window::EventVerticalAlignmentChanged("VerticalAlignmentChanged");
const String Window::EventHorizontalAlignmentChanged("HorizontalAlignmentChanged");
const String Window::EventWindowRendererAttached("WindowRendererAttached");
const String Window::EventWindowRendererDetached("WindowRendererDetached");
const String Window::EventMouseEnters( "MouseEnter" );
const String Window::EventMouseLeaves( "MouseLeave" );
const String Window::EventMouseMove( "MouseMove" );
const String Window::EventMouseWheel( "MouseWheel" );
const String Window::EventMouseButtonDown( "MouseButtonDown" );
const String Window::EventMouseButtonUp( "MouseButtonUp" );
const String Window::EventMouseClick( "MouseClick" );
const String Window::EventMouseDoubleClick( "MouseDoubleClick" );
const String Window::EventMouseTripleClick( "MouseTripleClick" );
const String Window::EventKeyDown( "KeyDown" );
const String Window::EventKeyUp( "KeyUp" );
const String Window::EventCharacterKey( "CharacterKey" );
/************
没有合适的资源?快使用搜索试试~ 我知道了~
CEGUI Source Code
共413个文件
h:208个
cpp:188个
in:9个
需积分: 9 61 下载量 92 浏览量
2009-08-27
15:21:42
上传
评论
收藏 957KB RAR 举报
温馨提示
CEGUI source code! CEGUI source code! CEGUI source code!
资源推荐
资源详情
资源评论
收起资源包目录
CEGUI Source Code (413个子文件)
Makefile.am 8KB
Makefile.am 3KB
Makefile.am 3KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1019B
Makefile.am 22B
Makefile.am 19B
CEGUIWindow.cpp 97KB
CEGUIMultiColumnList.cpp 74KB
CEGUIFalagard_xmlHandler.cpp 52KB
CEGUITree.cpp 47KB
CEGUIMultiLineEditbox.cpp 43KB
CEGUICombobox.cpp 35KB
CEGUIListHeader.cpp 33KB
CEGUIListbox.cpp 33KB
CEGUITabControl.cpp 29KB
CEGUISystem.cpp 29KB
CEGUIFrameWindow.cpp 29KB
CEGUIEditbox.cpp 29KB
CEGUIScheme.cpp 28KB
CEGUIWindowController.cpp 26KB
CEGUIFalDimensions.cpp 25KB
CEGUIFalFrameComponent.cpp 23KB
CEGUIFont.cpp 23KB
CEGUIItemListBase.cpp 21KB
CEGUIListHeaderSegment.cpp 20KB
CEGUIScrollablePane.cpp 19KB
CEGUIFreeTypeFont.cpp 19KB
FalStaticText.cpp 18KB
CEGUIGUILayout_xmlHandler.cpp 17KB
CEGUIWindowProperties.cpp 16KB
CEGUIScrollbar.cpp 16KB
CEGUIWindowFactoryManager.cpp 16KB
CEGUIWindowManager.cpp 15KB
FalMultiLineEditbox.cpp 14KB
CEGUIDragContainer.cpp 14KB
CEGUIFalXMLEnumHelper.cpp 13KB
CEGUISpinner.cpp 13KB
CEGUIItemListbox.cpp 13KB
CEGUIMenuItem.cpp 13KB
CEGUIScrolledItemListBase.cpp 13KB
CEGUITooltip.cpp 13KB
CEGUIImageset.cpp 12KB
CEGUIFalWidgetLookFeel.cpp 12KB
CEGUIScheme_xmlHandler.cpp 12KB
CEGUIFalImagerySection.cpp 12KB
CEGUITreeItem.cpp 11KB
CEGUISlider.cpp 11KB
CEGUIPopupMenu.cpp 11KB
CEGUIString.cpp 10KB
CEGUIMultiColumnListProperties.cpp 10KB
CEGUIFontManager.cpp 10KB
CEGUIMouseCursor.cpp 10KB
CEGUIFalImageryComponent.cpp 10KB
CEGUIThumb.cpp 9KB
CEGUIPropertyHelper.cpp 9KB
FalEditbox.cpp 9KB
CEGUIFalSectionSpecification.cpp 9KB
CEGUIFontProperties.cpp 8KB
CEGUIImagesetManager.cpp 8KB
CEGUIEventSet.cpp 8KB
CEGUIFalTextComponent.cpp 8KB
CEGUIScrolledContainer.cpp 8KB
FalSlider.cpp 8KB
CEGUIImageset_xmlHandler.cpp 8KB
CEGUITitlebar.cpp 8KB
CEGUICoordConverter.cpp 8KB
CEGUIComboDropList.cpp 8KB
CEGUIFalWidgetComponent.cpp 7KB
CEGUIRadioButton.cpp 7KB
CEGUIFalWidgetLookManager.cpp 7KB
CEGUIColourRect.cpp 7KB
CEGUIScrollablePaneProperties.cpp 7KB
macPlugins.cpp 7KB
CEGUIFrameWindowProperties.cpp 6KB
FalMultiColumnList.cpp 6KB
FalStaticTextProperties.cpp 6KB
CEGUIFalComponentBase.cpp 6KB
CEGUIPixmapFont.cpp 6KB
CEGUIDefaultLogger.cpp 6KB
CEGUIImage.cpp 6KB
CEGUIPropertySet.cpp 6KB
CEGUIXMLSerializer.cpp 6KB
CEGUITextUtils.cpp 6KB
CEGUIButtonBase.cpp 6KB
CEGUIItemEntry.cpp 6KB
CEGUIListboxTextItem.cpp 6KB
FalScrollbar.cpp 6KB
CEGUISchemeManager.cpp 6KB
FalListbox.cpp 6KB
CEGUIMenuBase.cpp 6KB
CEGUIRect.cpp 6KB
CEGUIComboboxProperties.cpp 5KB
CEGUIWindowRendererManager.cpp 5KB
CEGUIRenderCache.cpp 5KB
CEGUIXMLAttributes.cpp 5KB
CEGUIcolour.cpp 5KB
FalModule.cpp 5KB
CEGUIMultiLineEditboxProperties.cpp 5KB
共 413 条
- 1
- 2
- 3
- 4
- 5
资源评论
pathbreaker_gogo
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功