protected override void DrawListMarker(string image, string baseURL, list_style_type marker_type, ref web_color color, ref position pos) { Context.SetFillColor(color.ToCGColor()); switch (marker_type) { case list_style_type.list_style_type_square: Context.FillRect(pos.ToRect()); break; case list_style_type.list_style_type_circle: default: Context.FillEllipseInRect(pos.ToRect()); break; } }
protected override void DrawListMarker(string image, string baseURL, list_style_type marker_type, ref web_color color, ref position pos) { DrawRect(pos.x, pos.y, pos.width, pos.height, color.GetBrush()); }
protected abstract void DrawListMarker(string image, string baseURL, list_style_type marker_type, ref web_color color, ref position pos);
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); }