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
image_inherit_order(3) Arcan Lua API image_inherit_order(3)

image_inherit_order - Changes the specific object order value to be expressed as relative to its parent.

nil
image_inherit_order( vid, bool_state )

Normally, order is expressed as an independent property. For some applications e.g. user-interfaces, it might be more useful and intuitive to express it relative to a linked object to cut down on the amount of tracking and reordering calles needed to reorder an anchor point used for something like a window. By default, order inheritance is disabled, but can be explicitly enabled by calling this function.

1
For long hierarchies, this can be an expensive operation as changes to order implies a detach/attach operation and is implemented recursively.

function image_inherit_order0()
      a = fill_surface(32, 32, 255, 0, 0);
      b = fill_surface(16, 16, 0, 255, 0);
      order_image(a, 2);
      order_image(b, 1);
      image_inherit_order(b, true);
      link_image(b, a);
      show_image({a, b});
end

function image_inherit_order0()
      a = fill_surface(32, 32, 255, 0, 0);
      order_image(BADID);
end

function image_inherit_order1()
      a = fill_surface(32, 32, 255, 0, 0);
      order_image(a, "not a number");
end
June 2022 image

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.