mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
e0730bc118
Use a GtkFixed to position and rotate the labels. This is necessary because the GtkLabel::angle property was removed.
129 lines
4.7 KiB
XML
129 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<object class="GtkWindow">
|
|
<property name="type">popup</property>
|
|
<child>
|
|
<object class="GtkFixed">
|
|
<property name="width-request">200</property>
|
|
<property name="height-request">200</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(50, 50) rotate(0) translate(-49,-49)</property>
|
|
</layout>
|
|
<attributes>
|
|
<attribute name="foreground" value="#ffff00000000"></attribute>
|
|
</attributes>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(50, 50) rotate(0) translate(-50,-50)</property>
|
|
</layout>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(150, 50) rotate(90) translate(-49,-49)</property>
|
|
</layout>
|
|
<attributes>
|
|
<attribute name="foreground" value="#ffff00000000"></attribute>
|
|
</attributes>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(150, 50) rotate(90) translate(-50,-50)</property>
|
|
</layout>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(150, 150) rotate(180) translate(-49,-49)</property>
|
|
</layout>
|
|
<attributes>
|
|
<attribute name="foreground" value="#ffff00000000"></attribute>
|
|
</attributes>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(150, 150) rotate(180) translate(-50,-50)</property>
|
|
</layout>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(50, 150) rotate(180) translate(-49,-49)</property>
|
|
</layout>
|
|
<attributes>
|
|
<attribute name="foreground" value="#ffff00000000"></attribute>
|
|
</attributes>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="width-request">100</property>
|
|
<property name="height-request">100</property>
|
|
<property name="label" translatable="yes">ABC</property>
|
|
<layout>
|
|
<property name="position">translate(50, 150) rotate(180) translate(-50,-50)</property>
|
|
</layout>
|
|
<style>
|
|
<class name="no-shadow"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|