GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_FIXED(3) FreeBSD Library Functions Manual AG_FIXED(3)

AG_Fixedagar fixed-position container widget

#include <agar/core.h>
#include <agar/gui.h>

The AG_Fixed container widget positions and sizes its children at constant positions specified in pixels.

AG_Object(3) -> AG_Widget(3) -> AG_Fixed.

AG_Fixed *
(AG_Widget *parent, Uint flags);


void
(AG_Fixed *fixed, enum ag_fixed_style style);


void
(AG_Fixed *fixed, int w, int h);

The () function allocates, initializes, and attaches a new AG_Fixed widget. Accepted flags options include:

AG_FIXED_NO_UPDATE
Don't automatically call AG_WidgetUpdate(3) whenever widgets are repositioned. This allows the caller to, as an optimization use AG_WidgetUpdate(3) only once after all widgets have been positioned.
AG_FIXED_HFILL
Expand horizontally in parent container.
AG_FIXED_VFILL
Expand vertically in parent container.
AG_FIXED_EXPAND
Shorthand for AG_FIXED_HFILL | .

() selects an alternate background and border style:

No background.
Raised box & border.
3D well & border (the default).
Filled rectangle.

Visible background styles use the style attributes "background-color", "low-color" and "high-color".

() requests an initial size of w by h pixels.

void
AG_FixedPut(AG_Fixed *fixed, AG_Widget *child, int x, int y);


void
(AG_Fixed *fixed, AG_Widget *child);


void
(AG_Fixed *fixed, AG_Widget *child, int width, int height);


void
(AG_Fixed *fixed, AG_Widget *child, int new_x, int new_y);

The () function attaches the widget child and positions it at the given coordinates. AG_FixedDel() detaches the given widget.

Alternatively, you can avoid () and AG_FixedDel() altogether and instead use AG_ObjectAttach(3) and AG_ObjectDetach(3) followed by calls to AG_FixedSize() and AG_FixedMove().

Functions () and AG_FixedMove() set the size and location of a given widget in pixels.

The AG_Fixed widget does not generate any event.

For the AG_Fixed object:

enum ag_fixed_style style
Background style (see AG_FixedSetStyle()).

See tests/fixedres.c in the Agar source distribution.

AG_Box(3), AG_Intro(3), AG_MPane(3), AG_Pane(3), AG_Widget(3), AG_Window(3)

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.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.