From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: Drawing UI elements behind text Date: Sun, 24 Nov 2024 18:37:35 -0500 Message-ID: <8C55E590-E586-440A-89C5-0E5153518790@gmail.com> References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 25 00:38:37 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tFMBY-0002JQ-Li for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Nov 2024 00:38:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFMAr-0003zL-1T; Sun, 24 Nov 2024 18:37:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFMAo-0003z9-W3 for emacs-devel@gnu.org; Sun, 24 Nov 2024 18:37:51 -0500 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFMAn-0005vr-KC for emacs-devel@gnu.org; Sun, 24 Nov 2024 18:37:50 -0500 Original-Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-4668283eaf7so8626821cf.1 for ; Sun, 24 Nov 2024 15:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732491468; x=1733096268; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7MQyBxSi/BkEmeCw7BBHI2QZM0HCrtNNqXG86ff2CKM=; b=NqqGFp3wCWigYYnwuwaPN1YQtYxxF57ymQ+943OC+E3IhwYyOQCaBS5yOXZayERp18 bpRQ7dbJSaViGSI04H0Csf7rmNwKkwMdx5pA7dJawfiTdhXrMZs8GJrBb6chgvOGKugT MuGH6FH1q7cWJ2egUR1QZSUXRG++KSyNEHN01xAxKVoGzaKnXoDxHOjS2FOFZqhlnAl7 5NcnVlAORi8DEpBLugd2HbEEbjv1GsWquDWqJNdStZusxQdB3C33fSxqSXPmVVxtbR5G +xjckO4fWUBIbPrT07aMu094+bSfcDK3p2cREtIsLmYhiG4PXlVthoAJf9sWZAGfILwg 4G2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732491468; x=1733096268; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7MQyBxSi/BkEmeCw7BBHI2QZM0HCrtNNqXG86ff2CKM=; b=QLg/qk08CK09eHuFjxVL929ZFYxnjYW4MZFtY0+UsuBk76frjovTh6V+ibcrHUt/fl uCPUB2lZXIG02v4ouLMiQYJOzezG3HdsYWQoSYNWZaZqGyJxA+j/EtlS4TPQ347yY7r1 smuF12YcRxKpOxcyFWyGpuMb4gBwznh7tL0H/I3OWlxpOdfgo2UOj8OGt3irKjChKq66 3mHwTitXI/QsMaEXqDeNDRmS+wYUKPKQUhrxdN7FmdxSVKdfwYU3+8+qLULNYqoWtUS/ v69mxfDh5uTAEodrLPfKBLAD192YDhBF8gyWcVbRZsJ0mLHEVWvlCDn7fSzrVQk2hATI 3PAw== X-Gm-Message-State: AOJu0YxuuxmE1wYy/KKdtcdz58BI8aByfx3PapdE66AW/4fdjtL6xC90 eNLBKstAjQZ/fqexQQ/uwsGEguhj5h89sRhV/RgQH/UjRW6SNYYc455e3w== X-Gm-Gg: ASbGncuyd2ViHqzZXs9z6+x1BTJaAw2YqzByCTCXxfy3PyevzDblu32MCZzC+VyXWOq nqpXNbJ5hZ3UfEMtcY2VdQc1T7NbjjPU30zpYzmyvC9onkiFgyBW++LCel/CGl+d/Ing8CTylS5 17C0s+u6c0t5bTRPVmLAErX8jMtkKwNdmjTOoa+Bvxh0Ale50dIyPAt8v2lLO8A+SyOX45HFBEn uqVjMfVHebOwe1Zv6V5bd7xnCXgeolHOYGqERhaOWi+svxF631sOJ5qkIHNtO5XwR87uPaDLmFf q7dCqVOSyYA4SCP9PdQknGYEe/YcdoYXXc/PZQ== X-Google-Smtp-Source: AGHT+IGY5lejJ5H+EhLov7Wq5vNOfD/crOTsBalQK3/4OJSCJr7a3ZnaQ4BNoFofjEnTy1/tIUfEfw== X-Received: by 2002:a05:622a:314:b0:461:6613:18ac with SMTP id d75a77b69052e-4652f475cb3mr279870041cf.17.1732491468140; Sun, 24 Nov 2024 15:37:48 -0800 (PST) Original-Received: from smtpclient.apple (d-204-195-179-171.mdde.cpe.atlanticbb.net. [204.195.179.171]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4653c47d0b3sm39644411cf.64.2024.11.24.15.37.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Nov 2024 15:37:47 -0800 (PST) In-Reply-To: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=jdtsmith@gmail.com; helo=mail-qt1-x82d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325678 Archived-At: > On Nov 10, 2024, at 11:39=E2=80=AFAM, Cecilio Pardo = wrote: >=20 > Hello, >=20 > I am working on a mechanism to draw things on the background, behind > the text of a buffer. >=20 > This would allow to draw UI elements (such as indent lines or a fill > column indicator) and eye candy like background images or colored > windows. I support this idea. For indent-bars, I use display :stipple as a = "separate band" of graphical information that can lie atop text in a = buffer, but remain independent of it. Stipples are flexible and very = performant, but have a few issues: - There is inconsistent stipple support across emacs versions. - Stipple patterns begin at the frame origin, so up-to-date = window-specific remapping is required to prevent unwanted pattern = aliasing. =20 - Aligning stipples vertically requires fixed space content. More commonly, modes also make use of :box styling, e.g. for producing = boxed "labels", as in org-modern. An API for drawing simple styled lines, rounded corners, boxes etc. =E2=80= =94 either in absolute window coordinates, or associated with, but = "behind" text in the buffer =E2=80=94 would represent a real step = forward.=20=