Skip to content

Commit

Permalink
feat: more scrolled window functions
Browse files Browse the repository at this point in the history
  • Loading branch information
apss-pohl committed Mar 17, 2023
1 parent 23f4e29 commit 485b96e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Gtk/GtkScrolledWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,28 @@ void GtkScrolledWindow_::set_shadow_type(Php::Parameters &parameters)

gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(instance), type);

}

void GtkScrolledWindow_::set_propagate_natural_height(Php::Parameters& parameters)
{
gboolean natural_height = (gboolean)parameters[0];

gtk_scrolled_window_set_propagate_natural_height(GTK_SCROLLED_WINDOW(instance), natural_height);

}


void GtkScrolledWindow_::set_max_content_height(Php::Parameters& parameters)
{
int height = (int)parameters[0];

gtk_scrolled_window_set_max_content_height(GTK_SCROLLED_WINDOW(instance), height);
}


void GtkScrolledWindow_::set_min_content_height(Php::Parameters& parameters)
{
int height = (int)parameters[0];

gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(instance), height);
}
6 changes: 6 additions & 0 deletions src/Gtk/GtkScrolledWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
void set_policy(Php::Parameters &parameters);

void set_shadow_type(Php::Parameters &parameters);

void set_propagate_natural_height(Php::Parameters& parameters);

void set_max_content_height(Php::Parameters& parameters);

void set_min_content_height(Php::Parameters& parameters);
};

#endif

0 comments on commit 485b96e

Please sign in to comment.