From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eivind Fonn Newsgroups: gmane.emacs.devel Subject: Re: Drawing to cairo context from within emacs module? Date: Thu, 5 Dec 2019 14:42:58 +0100 Message-ID: References: <87eexlb1d4.fsf@randomsample> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269254"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 05 14:45:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icrRs-0017we-MF for ged-emacs-devel@m.gmane.org; Thu, 05 Dec 2019 14:45:40 +0100 Original-Received: from localhost ([::1]:54306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icrRq-00061Z-I6 for ged-emacs-devel@m.gmane.org; Thu, 05 Dec 2019 08:45:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icrPV-0003Pb-1H for emacs-devel@gnu.org; Thu, 05 Dec 2019 08:43:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icrPT-00060b-Sg for emacs-devel@gnu.org; Thu, 05 Dec 2019 08:43:12 -0500 Original-Received: from mail-vk1-xa36.google.com ([2607:f8b0:4864:20::a36]:41188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icrPT-0005pu-NL for emacs-devel@gnu.org; Thu, 05 Dec 2019 08:43:11 -0500 Original-Received: by mail-vk1-xa36.google.com with SMTP id p191so1108546vkf.8 for ; Thu, 05 Dec 2019 05:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=eECIp6W5W5a4BGXUwnEH1F5iCC2rlj9yA7nCgB3Q62s=; b=FVm3+g0jHhpEHWRqwuvEcvpxa86a83E0SgTTAvDIKFn75f7Z3MjJOsYbOnDMN1rcCF zXrCx0gGMxnYOsIG5E/Z8umaKewBPgH1jv1UBRuL/d85KZdNq0Q+lxVdb2PmifCSG6Ur cdQq9VVblXWVErCsLUfblBa83cCDIKuNVb67A9yjFd8hbQUHL0isekn/qx1uptAQj3oy ejr1b6FPzVe0OnI6Ft3wtkbOqkI4D++vA/32cgdqnZ9WumQoKGy1BR5F/fvBpeYWasb7 3zhIq5tBab9GA+Rg2KPlkoT6Lmck9+3DzA7HTCuuI98kjcUfTK/3prx2h7OLh6fYcdy3 4NuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=eECIp6W5W5a4BGXUwnEH1F5iCC2rlj9yA7nCgB3Q62s=; b=qeETdIbrtoLZyrzJIKjJyPifovqZpWm2R5AfbcKCaXqJyYhsCtR86BVS0o6gDrjZlA EbRsB+++QlCcSxB28oAo+sugHK67O1fo5CHqVt6cF7nAXwRNdnaKWkjGIGH3MTz51jQ6 kSSiiksQJvED2MzsJNlRbsRaBk32PhtIGTxeEdMGF1OB4fPSpvJg0Cw965Xql7bQqv9S +C9MCjcK5ofvPM0QSOsjfwXvypePis9vjaq0PShQQDY1QuIrDvU/1jxcWLWei/Pb1Tjf ubCJTRSJOdNE9rzxjMlbViXObAtWv32OJE4v422Cs8685nF1B8vkfMPs3IH2myTfWtL0 LAjg== X-Gm-Message-State: APjAAAVav6u99SoAkZHttnk4u5FyEot9IFy1UpqkMKE2LIpcEh1N1qrt N06s8OxUM78I6lXwMrV67/YOWoYf3+tKogIrnicMZdx3UIt5 X-Google-Smtp-Source: APXvYqxbH5y0dI4D50+Gg9zCmc/YhLSiCTmiNanBhYdVGxt+F5ZPzm4T73ILyiPJGEMI9/zVtnN+n0aWzH/Pbj7H2uU= X-Received: by 2002:ac5:cdcd:: with SMTP id u13mr6651922vkn.0.1575553389206; Thu, 05 Dec 2019 05:43:09 -0800 (PST) In-Reply-To: <87eexlb1d4.fsf@randomsample> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::a36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243150 Archived-At: A related but different question. Would it be possible to get access to the raw buffer data from dynamic modules? (That is, pointer to the start, length and gap information.) I'm only interested in read-only access, and I'd be happy to patch it in myself if it's deemed generally acceptable. Eivind On Tue, Dec 3, 2019 at 10:27 PM David Engster wrote: > > There's probably a million things I'm missing here, but would it be > possible to access the cairo context from within an emacs module, so > that one could simply draw stuff using the Cairo API (on Cairo-enabled > Emacsen only, of course)? I'm sure this won't play well at all with > redisplay, but it'd be fun playing around with it... > > -David >