Exemplo n.º 1
0
 protected override void GetClientRect(ref position client)
 {
     client.width  = (int)Size.Width;
     client.height = (int)Size.Height;
 }
Exemplo n.º 2
0
 private void DrawListMarkerCallback(Utf8Str image, Utf8Str baseURL, list_style_type marker_type, ref web_color color, ref position pos)
 {
     DrawListMarker(Utf8Util.Utf8PtrToString(image), Utf8Util.Utf8PtrToString(baseURL), marker_type, ref color, ref pos);
 }
Exemplo n.º 3
0
 protected abstract void DrawListMarker(string image, string baseURL, list_style_type marker_type, ref web_color color, ref position pos);
Exemplo n.º 4
0
 protected abstract void DrawText(string text, UIntPtr font, ref web_color color, ref position pos);
Exemplo n.º 5
0
 protected abstract void GetClientRect(ref position client);
Exemplo n.º 6
0
        // -----

        private void DrawTextScaled(Utf8Str text, UIntPtr font, ref web_color color, ref position pos)
        {
            pos.Scale(ScaleFactor);
            DrawText(Utf8Util.Utf8PtrToString(text), font, ref color, ref pos);
        }
Exemplo n.º 7
0
 protected abstract void DrawBorders(UIntPtr hdc, ref borders borders, ref position draw_pos, bool root);
Exemplo n.º 8
0
        // -----

        private void DrawBordersScaled(UIntPtr hdc, ref borders borders, ref position draw_pos, bool root)
        {
            borders.Scale(ScaleFactor);
            draw_pos.Scale(ScaleFactor);
            DrawBorders(hdc, ref borders, ref draw_pos, root);
        }
Exemplo n.º 9
0
 protected abstract void DrawBackground(UIntPtr hdc, string image, background_repeat repeat, ref web_color color, ref position pos, ref border_radiuses borderRadiuses, ref position borderBox, bool isRoot);
Exemplo n.º 10
0
        // -----

        private void DrawBackgroundScaled(UIntPtr hdc, Utf8Str image, background_repeat repeat, ref web_color color, ref position pos, ref border_radiuses borderRadiuses, ref position borderBox, bool isRoot)
        {
            pos.Scale(ScaleFactor);
            borderRadiuses.Scale(ScaleFactor);
            borderBox.Scale(ScaleFactor);
            DrawBackground(hdc, Utf8Util.Utf8PtrToString(image), repeat, ref color, ref pos, ref borderRadiuses, ref borderBox, isRoot);
        }