SGMiscInfo Struct Reference

#include <sgtree.h>

List of all members.

Public Attributes

INT32 MaxWidth
INT32 WindowHeight
INT32 DisplayMode
INT32 PixelSize


Detailed Description

Comment: MonoOn typedef struct { INT32 MaxWidth; INT32 WindowHeight INT32 DisplayMode; INT32 PixelSize; } SGMiscInfo; MonoOff

This structure is passed into SGDisplayNode class HandleEvent method. It is ALWAYS passed in, and is always valid.

MaxWidth gives the width of the window display in millipoints. If items are small enough this width may allow several items to format next to each other along a single line.

WindowHeight gives the height of the window display in millipoints. This is mainly only needed for calculating scrollbar information.

DisplayMode indicates which display mode (e.g. Large/Small icons, Full info) the items should be displaying themselves in.

PixelSize holds the size in millipoints of a display pixel in our virtual rendering coordinates. We must grid-lock all our rendering to multiples of this size to ensure that nasty aliasing effects (items jumping further apart as we scroll the list, etc) do not occur. It also means we can specify gaps and line widths, etc, in terms of "a pixel" we so desire.

A structure is used for easy addition of other information at a later date

See also:
SuperGallery; SGDisplayNode::HandleEvent

Definition at line 189 of file sgtree.h.


Member Data Documentation

INT32 SGMiscInfo::DisplayMode
 

Definition at line 193 of file sgtree.h.

INT32 SGMiscInfo::MaxWidth
 

Definition at line 191 of file sgtree.h.

INT32 SGMiscInfo::PixelSize
 

Definition at line 194 of file sgtree.h.

INT32 SGMiscInfo::WindowHeight
 

Definition at line 192 of file sgtree.h.


The documentation for this struct was generated from the following file:
Generated on Sat Nov 10 04:01:09 2007 for Camelot by  doxygen 1.4.4