summaryrefslogtreecommitdiff
path: root/src/Gtk/Internal.icl
diff options
context:
space:
mode:
authorCamil Staps2019-10-20 13:37:33 +0200
committerCamil Staps2019-10-20 13:37:33 +0200
commit182eac71699784d3e2a44437452546a4b0c2d995 (patch)
treea0c82a0eea2dd0e023e458ea3f56fcdc4ac43804 /src/Gtk/Internal.icl
parentMake GtkTextView not editable (diff)
Move position of GtkFrame label; add framed helper combinator
Diffstat (limited to 'src/Gtk/Internal.icl')
-rw-r--r--src/Gtk/Internal.icl16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Gtk/Internal.icl b/src/Gtk/Internal.icl
index 3321bf2..5b49160 100644
--- a/src/Gtk/Internal.icl
+++ b/src/Gtk/Internal.icl
@@ -69,6 +69,22 @@ where
ccall gtk_frame_new "s:p:A"
}
+// TODO: convert double to float properly
+gtk_frame_set_label_align :: !Pointer !Real !Real !.a -> .a
+gtk_frame_set_label_align frame xalign yalign env = code {
+ | cvtsd2ss %xmm0,%xmm0
+ instruction 242
+ instruction 15
+ instruction 90
+ instruction 192
+ | cvtsd2ss %xmm1,%xmm1
+ instruction 242
+ instruction 15
+ instruction 90
+ instruction 201
+ ccall gtk_frame_set_label_align "pRR:V:A"
+}
+
gtk_init :: !.a -> .a
gtk_init env = init 0 0 env
where