コード例 #1
0
 public void Justify(Slot start, Font font, double width, JustFlags flags, Slot first, Slot last)
 {
     IntPtr firstPtr = first != null ? first.SlotPtr : IntPtr.Zero;
     IntPtr lastPtr = last != null ? last.SlotPtr : IntPtr.Zero;
     Graphite2Api.SegJustify(_segment, start.SlotPtr, font.FontPtr, width, flags, firstPtr, lastPtr);
 }
コード例 #2
0
ファイル: Segment.cs プロジェクト: ratmice/graphite2-sys-rust
        public void Justify(Slot start, Font font, double width, JustFlags flags, Slot first, Slot last)
        {
            IntPtr firstPtr = first != null ? first.SlotPtr : IntPtr.Zero;
            IntPtr lastPtr  = last != null ? last.SlotPtr : IntPtr.Zero;

            Graphite2Api.SegJustify(_segment, start.SlotPtr, font.FontPtr, width, flags, firstPtr, lastPtr);
        }