]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: expose view_apply_natural_geometry()
authorJens Peters <jp7677@gmail.com>
Sat, 21 Sep 2024 13:51:37 +0000 (15:51 +0200)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Wed, 25 Sep 2024 08:59:10 +0000 (17:59 +0900)
Co-authored-by: tokyo4j <hrak1529@gmail.com>
include/view.h
src/view.c

index 9ab4a11598738bb8c4ac77314c1e5fa14d3cccc9..296b4845f0ef2f87b992c080bee18ae145785f67 100644 (file)
@@ -462,6 +462,12 @@ bool view_compute_centered_position(struct view *view,
 void view_set_fallback_natural_geometry(struct view *view);
 void view_store_natural_geometry(struct view *view);
 
+/**
+ * view_apply_natural_geometry - adjust view->natural_geometry if it doesn't
+ * intersect with view->output and then apply it
+ */
+void view_apply_natural_geometry(struct view *view);
+
 /**
  * view_effective_height - effective height of view, with respect to shaded state
  * @view: view for which effective height is desired
index aeb8e7fefd9f22d4a82d20591b38dc16c57eec51..973b079ff70c17152d01d28d51729591d2612e5e 100644 (file)
@@ -1036,7 +1036,7 @@ view_constrain_size_to_that_of_usable_area(struct view *view)
        view_move_resize(view, box);
 }
 
-static void
+void
 view_apply_natural_geometry(struct view *view)
 {
        assert(view);