GEOS SDK TechDocs
|
|
3 Positioning and Sizing Windows
|
3.2 Determining Initial Size
HINT_POSITION_WINDOW_AT_RATIO_OF_PARENT, HINT_POSITION_WINDOW_AT_MOUSE, HINT_STAGGER_WINDOW, HINT_CENTER_WINDOW, HINT_TILE_WINDOW, HINT_WINDOW_NO_CONSTRAINTS
GenClass
has a number of hints used by the window classes to determine where the window appears initially and how the window is allowed to move about the screen. Specific UIs can override these hints when necessary or when they conflict with the UI's specifications. These hints are listed below.
HINT_POSITION_WINDOW_AT_RATIO_OF_PARENT
SpecWinSizePair
structure. This structure consists of two fields, the X position and the Y position of the new window's origin. Predetermined fraction values are names PCT_
xx
, where
xx
is a multiple of five between zero and 100 inclusive. For example, to have the window object's origin start out in the center of its parent, specify the hint as follows:HINT_POSITION_WINDOW_AT_RATIO_OF_PARENT = {
SWSS_RATIO | PCT_25, SWSS_RATIO | PCT_60
};
HINT_POSITION_WINDOW_AT_MOUSE
HINT_STAGGER_WINDOW
HINT_CENTER_WINDOW
GEOS SDK TechDocs
|
|
3 Positioning and Sizing Windows
|
3.2 Determining Initial Size