Classes:Tile

From XfireWiki

Jump to: navigation, search

This is the most basic class for components. The majority of components are based on this class.


Contents

Code Example

<Component Name="MainTitleBar"

Class="Tile"
Default="Activate"
MinHeight="51"
>
<Triggers>
<Trigger Type="OnLeftButtonDown">AppDragWindow</Trigger>
..... (See Triggers)
</Triggers>
<Images state="Normal" Color="MainCG">
<Image Type="topleft">MAINLEFT</Image>
..... (See Images)
</Images>

</Component>


Attribute definitions

Default: The specifies the default Component state, either "Activate" or "Deactivate". Activation/Deactivation occurs when the Xfire window focus changes. Focus changes cause a Trigger to be fired. Only used when a Component with a class of Tile has disabled images
MinHeight: The minimum height the Component will take up. Only used when the component height needs to be greater than the height of the images.
MinWidth: The minimum width the Component will take up. Only used when the component height needs to be greater than the height of the images.
Cursor: The type of cursor to be displayed when the mouse is over the Component. Can be ResizeNS, ResizeWE or Hand (North-South, West-East resize cursor or a Hand usually shown for links). If the attribute is left out, the default pointer cursor is used.
Stretch: Defines how the tile will be stretched if it has ResizeX or ResizeY attributes set in its tile. Can be either ToContent, which repeats the middle image until all available space is used, or ToFit, which stretches the middle image until all available space is used. The default is ToContent (used if none is specified)
Events: Only used if triggers should be passed to tiles that are physically below it. If used the only option is transparent. If it is not specified triggers will not be passed to lower tiles.


Images

A Component with a class of Tile can have more than one set of images. Each set of images should specify a different state. A tile supports all states except Down, eg. a Component can have images for Normal, Hover, Disabled and Overlay.

Triggers

A Component with a class of Tile can have any Trigger (See Triggers).

Personal tools