From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Drawing UI elements behind text Date: Wed, 27 Nov 2024 16:36:18 +0200 Message-ID: <86plmgg2vx.fsf@gnu.org> References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> <8C55E590-E586-440A-89C5-0E5153518790@gmail.com> <78d3a7e7-f5a7-476b-8a9d-27beca44a94a@imayhem.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14015"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jdtsmith@gmail.com, emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 27 15:37:06 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 1tGJA8-0003RC-Lo for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Nov 2024 15:37:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGJ9S-0001fn-9Q; Wed, 27 Nov 2024 09:36:22 -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 1tGJ9R-0001fb-4b for emacs-devel@gnu.org; Wed, 27 Nov 2024 09:36:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGJ9Q-0005Jy-A3; Wed, 27 Nov 2024 09:36:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wbrD0K1+Rp7Drl1O1YvmWfEErk9a03dMd+jiOTyUc0E=; b=BmK4DMN4uuZb 3OTVf0TJihRxK5JwNVh9sOxH17rhuXGwDfBLFsuW3mgQorcMFLj9SBHpHTQIC/1TdUmh+xtASbf+F aJFX3NxamT78OhSnMpV18hYLKPp7w6VAP53y8hf+Bb0kJGF2I3YrSwdAhxjLRHfjG5zPzlaA0hslm eklG5JJlN45DsPaHKppa/LNU0m5k6jbeNJfGItkwigA5q7P62DhcTNp+TjuKx+TQaaBVPrzDXa12U pHsfhW85V05gxvdy+WACCCzzeWHT0u3iVC6pxrWIPbCM/6f9pPLz/PpYWaDMPuozTVNXyQzF1caDD r/9B5iIbEIQzD169fRTmug==; In-Reply-To: <78d3a7e7-f5a7-476b-8a9d-27beca44a94a@imayhem.com> (message from Cecilio Pardo on Wed, 27 Nov 2024 00:19:43 +0100) 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:325770 Archived-At: > Date: Wed, 27 Nov 2024 00:19:43 +0100 > Cc: emacs-devel > From: Cecilio Pardo > > I haven't found a way to draw behind the text that is not too > complicated or affects redisplay too much. So now the idea is drawing > over the text. For the applications I have in mind this works equally well. > > The starting drawing elements are going to be vertical and horizontal > segments, with color (maybe with alpha), width and different patterns. > They can be placed on pixel positions or character positions when using > fixed size fonts, using floating point numbers so you can put, for > example, indent lines in the middle of characters. > > They are associated with a buffer, and have a 'source' marker so the > facility can be shared by several programs. How/whether are these drawing elements connected to the glyph matrices? If they are completely disconnected, how does this work when the window is scrolled several lines?