VGUI Image: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (→‎top: clean up)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--<br clear=all>
{{stub}}
<div class="boilerplate metadata" id="stub" align=left>&nbsp; &nbsp;''This article is a [[Help:Stubs|stub]]. You can help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} adding to it].'' </div>


<br clear=all>-->
An Image is a vgui2 element defined in the vgui_controls library, in the file Image.cpp. Images are available in all source games. Image is a pure virutal class, which means that it cannot be instantiated as an object and is used simply as a base class for other classes.
<div style="text-align: center; background: #B8C6FF; font-weight: bold; margin: 0.1em 10%; padding: 0.1em 0.1em; border: #E5E5E5 2px solid;">
 
''This article is a [[Help:Stubs|stub]]. You can help by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} adding to it].''
 
</div>
* The only class that derives from Image is [[VGUI TextImage]].
* Image is derived from [[VGUI IImage]].


An Image is a vgui2 element defined in the vgui_controls library, in the file Image.cpp. Images are available in all source games. Image is a pure virutal class, which means that it cannot be instantiated as an object and is used simply as a base class for other classes.


Looking for something you can instantiate? See [[VGUI ImagePanel]].
Looking for an image you can instantiate? See [[VGUI ImagePanel]].


[[Category:VGUI_Controls|P]]
[[Category:VGUI Controls|I]]
[[Category:Stubs]]

Latest revision as of 05:50, 5 January 2024

Stub

This article or section is a stub. You can help by expanding it.

An Image is a vgui2 element defined in the vgui_controls library, in the file Image.cpp. Images are available in all source games. Image is a pure virutal class, which means that it cannot be instantiated as an object and is used simply as a base class for other classes.



Looking for an image you can instantiate? See VGUI ImagePanel.