Repository navigation
[asimage] move TVirtualX and X11 specific methods to extra library #23732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
542cfb4
[asimage] introduce protected FromGradient method
linev 66baa96
[asimage] keep batch and bormal ASVisual separately
linev 9ea7c2f
[asimage] introduce TASUtils class
linev eb4b54c
[gui] use new TASUtils methods
linev d6dbd70
[canvas] move TPadPainter to separate ROOTPadPainter library
linev 58ed39e
[roottest] adjust several ref files after new libs reorganisation
linev f83e544
[image] remove X11-specific methods from API
linev 86d1ceb
[asutils] provide FromPixmap method
linev 1e5879b
[gui] use TASUtils::FromPixmap in gui classes
linev abaee8a
[image] mark SetImage(pixmap, mask) as deprecated
linev a2b15d2
[asutils] provide PaintImage method
linev 062ada7
[padpainter] use new TASUtils::PaintImage
linev a5d76b0
[speedo] Use TASUtils::PaintImage
linev 9586919
[ghtml] fix image painting
linev 2c502d3
[ghtml] use ASUtils to paint image on X11 drawable
linev 2215ecf
[eve] use ASUtils for X11 PaintImage
linev f51dd02
[image] deprecate TImage::PaintImage method
linev b9a5166
[glpainter] provide direct DrawImage implementation
linev 7f50be9
[padpainter] deprecate DrawPixels which no longer used
linev 4d7e472
[image] fix TASImage::Crop()
linev dfbc33e
[asutils] move methods from TGWindow
linev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| void P020_TPadPainter() | ||
| { | ||
| gPluginMgr->AddHandler("TVirtualPadPainter", "native", "TPadPainter", | ||
| "ROOTPadPainter", "TPadPainter()"); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /* @(#)root/asimage:$Id$ */ | ||
|
|
||
| /************************************************************************* | ||
| * Copyright (C) 1995-2026, Rene Brun and Fons Rademakers. * | ||
| * All rights reserved. * | ||
| * * | ||
| * For the licensing terms seeg $ROOTSYS/LICENSE. * | ||
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | ||
| *************************************************************************/ | ||
|
|
||
| #ifdef __CLING__ | ||
|
|
||
| #pragma link off all globals; | ||
| #pragma link off all classes; | ||
| #pragma link off all functions; | ||
|
|
||
| #pragma link C++ class TASUtils; | ||
|
|
||
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // @(#)root/asimage:$Id$ | ||
| // Author: Sergey Linev 16/10/2026 | ||
|
|
||
| /************************************************************************* | ||
| * Copyright (C) 1995-2026, Rene Brun and Fons Rademakers * | ||
| * All rights reserved. * | ||
| * * | ||
| * For the licensing terms see $ROOTSYS/LICENSE. * | ||
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | ||
| *************************************************************************/ | ||
|
|
||
| #ifndef ROOT_TASUtils | ||
| #define ROOT_TASUtils | ||
|
|
||
| ////////////////////////////////////////////////////////////////////////// | ||
| // // | ||
| // TASUtils // | ||
| // // | ||
| // Extra functions for TASImage requiring gVirtualX and X11 usage // | ||
| // // | ||
| ////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| #include "Rtypes.h" | ||
| #include "GuiTypes.h" | ||
| #include <memory> | ||
|
|
||
| class TImage; | ||
|
|
||
| class TASUtils { | ||
| public: | ||
| static Pixmap_t GetPixmap(TImage *timg); | ||
| static Pixmap_t GetMask(TImage *timg); | ||
|
|
||
| static Bool_t PaintImage(TImage *timg, Drawable_t wid, Int_t x, Int_t y, Bool_t opaque = kFALSE); | ||
| static Bool_t FillImageFromWindow(TImage *img, Window_t wid, Int_t width, Int_t height); | ||
|
|
||
| static std::unique_ptr<TImage> FromWindow(Window_t wid); | ||
| static std::unique_ptr<TImage> FromPixmap(Pixmap_t pxm, Pixmap_t mask); | ||
| }; | ||
|
|
||
| #endif | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.