zoukankan      html  css  js  c++  java
  • cegui looknfeel文件

    Looknfeel文件  定义控件外观

    元素Area由Dim组成

    <Area>
    <Dim type="LeftEdge">
    <AbsoluteDim value="0"/>
    </Dim>
    <Dim type="TopEdge">
    <AbsoluteDim value="0"/>
    </Dim>
    <Dim type="Width">
    <UnifiedDim scale="1" type="Width"/>
    </Dim>
    <Dim type="Height">
    <UnifiedDim scale="1" type="Height"/>
    </Dim>
    </Area>

    Dim类型有

    AbsoluteDim 这个很简单 value是多少 Dim type所指的那条边就在那里
    UnifiedDim 统一坐标系 用相对于父窗体的 type的scale来表示 比如上例 Dim宽等于父窗体的宽
    FontDim 
    <Dim type="RightEdge">
    <UnifiedDim scale="1.0" type="RightEdge">
    <DimOperator op="Subtract">
    <ImageDim imageset="feitan_main" image="xitongshezhi_yinliangjiaN" dimension="Width"/>
    </DimOperator>
    </UnifiedDim>
    </Dim>
    ImageDim  如上例 就是用一个image的width or height的数值 在此使用
    (补充说下DimOperator很简单就是 定义了两个Dim之间的运算)
    PropertyDim 
    WidgetDim 此Dim可以和UnifiedDim比较来看  它不是相对于父窗体的  而是相对于某个自定义的窗体(用名字获取)
               或者相对于自身的某部分



  • 相关阅读:
    mouseenter和mouseleave,mouseover和mouseout
    哈哈哈
    instanceof与typeof
    js事件传参
    浮动与清除问题
    简易富文本编辑
    js之prototype
    json序列化
    我对Defer and Promise的实现
    Ajax 完整教程
  • 原文地址:https://www.cnblogs.com/minggoddess/p/2243350.html
Copyright © 2011-2022 走看看