SYNOPSIS
|
DESCRIPTION
![]() |
INHERITANCE HIERARCHY
AG_Object(3)-> AG_Widget(3)-> AG_Fixed. |
INITIALIZATION
The AG_FixedNew() function allocates, initializes, and attaches a new AG_Fixed widget. Accepted flags options include:
AG_FixedSetStyle() selects an alternate background and border style:
Visible background styles use the style attributes "background-color", "low-color" and "high-color". AG_FixedSizeHint() requests an initial size of w by h pixels. |
CHILD WIDGETS
The AG_FixedPut() function attaches the widget child and positions it at the given coordinates. AG_FixedDel() detaches the given widget. Alternatively, you can avoid AG_FixedPut() and AG_FixedDel() altogether and instead use AG_ObjectAttach(3) and AG_ObjectDetach(3) followed by calls to AG_FixedSize() and AG_FixedMove(). Functions AG_FixedSize() and AG_FixedMove() set the size and location of a given widget in pixels. |
EVENTS
The AG_Fixed widget does not generate any event. |
STRUCTURE DATA
For the
AG_Fixed object:
|
EXAMPLES
See tests/fixedres.c in the Agar source distribution. |
SEE ALSO
AG_Box(3), AG_Intro(3), AG_MPane(3), AG_Pane(3), AG_Widget(3), AG_Window(3) |
HISTORY
The AG_Fixed widget first appeared in Agar 1.0. In Agar 1.6.0 the former AG_FIXED_BOX, AG_FIXED_INVBOX, AG_FIXED_FRAME and AG_FIXED_FILLBG flags were replaced by the AG_FixedSetStyle() and the style parameter. AG_FixedSizeHint() appeared in Agar 1.6.0. |