… | |
… | |
803 | set_width (CFClient::Layout self, int max_width = -1) |
803 | set_width (CFClient::Layout self, int max_width = -1) |
804 | CODE: |
804 | CODE: |
805 | pango_layout_set_width (self->pl, max_width < 0 ? max_width : max_width * PANGO_SCALE); |
805 | pango_layout_set_width (self->pl, max_width < 0 ? max_width : max_width * PANGO_SCALE); |
806 | |
806 | |
807 | void |
807 | void |
|
|
808 | set_indent (CFClient::Layout self, int indent) |
|
|
809 | CODE: |
|
|
810 | pango_layout_set_indent (self->pl, indent * PANGO_SCALE); |
|
|
811 | |
|
|
812 | void |
|
|
813 | set_spacing (CFClient::Layout self, int spacing) |
|
|
814 | CODE: |
|
|
815 | pango_layout_set_spacing (self->pl, spacing * PANGO_SCALE); |
|
|
816 | |
|
|
817 | void |
|
|
818 | set_ellipsise (CFClient::Layout self, int ellipsise) |
|
|
819 | CODE: |
|
|
820 | pango_layout_set_ellipsize (self->pl, |
|
|
821 | ellipsise == 1 ? PANGO_ELLIPSIZE_START |
|
|
822 | : ellipsise == 2 ? PANGO_ELLIPSIZE_MIDDLE |
|
|
823 | : ellipsise == 3 ? PANGO_ELLIPSIZE_END |
|
|
824 | : PANGO_ELLIPSIZE_NONE |
|
|
825 | ); |
|
|
826 | |
|
|
827 | void |
|
|
828 | set_single_paragraph_mode (CFClient::Layout self, int spm) |
|
|
829 | CODE: |
|
|
830 | pango_layout_set_single_paragraph_mode (self->pl, !!spm); |
|
|
831 | |
|
|
832 | void |
808 | size (CFClient::Layout self) |
833 | size (CFClient::Layout self) |
809 | PPCODE: |
834 | PPCODE: |
810 | { |
835 | { |
811 | int w, h; |
836 | int w, h; |
812 | |
837 | |