VirtualBox

Changeset 105864 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Aug 26, 2024 6:45:15 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164584
Message:

Main: Added API for querying graphics features (2D Video / 3D Acceleration) of a specific graphics controller for a given platform and revamped the graphics controller attributes for 2D / 3D setters/getters to also use the new graphics features enumeration. Also, the system properties also now contain a dedicated API to query for graphics features (very basic for now, needs to be stuffed out). See SDK changelog for details. Added validation code when setting a specific graphics feature (which we never did before). bugref:10749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r105576 r105864  
    58135813  <interface
    58145814    name="IGraphicsAdapter" extends="$unknown"
    5815     uuid="f692806f-febe-4049-b476-1292a8e45b09"
     5815    uuid="13ee6eb4-06fe-406b-ad69-f6e08b0587a3"
    58165816    wsmap="managed"
    58175817    rest="managed"
     
    58295829    <attribute name="VRAMSize" type="unsigned long">
    58305830      <desc>Video memory size in megabytes.</desc>
    5831     </attribute>
    5832 
    5833     <attribute name="accelerate3DEnabled" type="boolean" default="false">
    5834       <desc>
    5835         This setting determines whether VirtualBox allows this machine to make
    5836         use of the 3D graphics support available on the host.</desc>
    5837     </attribute>
    5838 
    5839     <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
    5840       <desc>
    5841         This setting determines whether VirtualBox allows this machine to make
    5842         use of the 2D video acceleration support available on the host.</desc>
    58435831    </attribute>
    58445832
     
    58525840      </desc>
    58535841    </attribute>
     5842
     5843    <method name="setFeature">
     5844      <desc>Sets a graphics controller feature.</desc>
     5845      <param name="feature" type="GraphicsFeature" dir="in">
     5846        <desc>
     5847          Graphics controller feature to set.
     5848        </desc>
     5849      </param>
     5850      <param name="enabled" type="boolean" dir="in">
     5851        <desc>
     5852          Whether to enable or disable the feature.
     5853        </desc>
     5854      </param>
     5855    </method>
     5856
     5857    <method name="isFeatureEnabled" const="yes">
     5858      <desc>Returns whether a particular feature is enabled for this adapter or not.</desc>
     5859      <param name="feature" type="GraphicsFeature" dir="in">
     5860        <desc>Feature to check for.</desc>
     5861      </param>
     5862      <param name="enabled" type="boolean" dir="return">
     5863        <desc>@c true if the feature is enabled, @c false if not.</desc>
     5864      </param>
     5865    </method>
    58545866
    58555867  </interface>
     
    68256837    <const name="QemuRamFB" value="4">
    68266838      <desc>QEMU RAM based framebuffer based device.</desc>
     6839    </const>
     6840  </enum>
     6841
     6842  <enum
     6843    name="GraphicsFeature"
     6844    uuid="5cd900a5-ec77-4a08-8f8d-c0a36f462a7c"
     6845    >
     6846    <desc>Graphics features.</desc>
     6847    <const name="None"          value="0">
     6848      <desc>No feature specified, invalid.</desc>
     6849    </const>
     6850    <const name="Acceleration2DVideo" value="1">
     6851      <desc>2D video acceleration.</desc>
     6852    </const>
     6853    <const name="Acceleration3D" value="2">
     6854      <desc>3D acceleration.</desc>
    68276855    </const>
    68286856  </enum>
     
    1288112909    name="IPlatformProperties"
    1288212910    extends="$unknown"
    12883     uuid="a23502e4-cc54-490f-a344-c8ca8813f906"
     12911    uuid="5bae19d0-ca40-4ca2-a485-c8065190bbe5"
    1288412912    wsmap="managed"
    1288512913    rest="managed"
     
    1296012988    </attribute>
    1296112989
    12962     <attribute name="supportedGraphicsControllerTypes" type="GraphicsControllerType" safearray="yes" readonly="yes">
     12990    <attribute name="supportedGfxControllerTypes" type="GraphicsControllerType" safearray="yes" readonly="yes">
    1296312991      <desc>
    1296412992        Returns an array of officially supported values for enum <link to="GraphicsControllerType"/>,
     
    1316913197    </method>
    1317013198
     13199    <method name="getSupportedGfxFeaturesForType">
     13200      <desc>
     13201        Returns the supported features of a given graphics controller.
     13202      </desc>
     13203
     13204      <param name="graphicsControllerType" type="GraphicsControllerType" dir="in">
     13205        <desc>Graphics controller type to return features for.</desc>
     13206      </param>
     13207
     13208      <param name="supportedControllerFeatures" type="GraphicsFeature" safearray="yes" dir="return">
     13209        <desc>The graphics controller features which are valid.</desc>
     13210      </param>
     13211    </method>
     13212
    1317113213    <method name="getDeviceTypesForStorageBus">
    1317213214      <desc>Returns list of all the supported device types
     
    1326513307    name="ISystemProperties"
    1326613308    extends="$unknown"
    13267     uuid="c61e666e-34ab-403a-8160-78bd4512ca86"
     13309    uuid="925084b0-625f-422f-a67d-0ede1880a56c"
    1326813310    wsmap="managed"
    1326913311    rest="managed"
     
    1363013672      <desc>
    1363113673        Returns an array of officially supported values for enum <link to="ExportOptions"/>,
     13674        in the sense of what is e.g. worth offering in the VirtualBox GUI.
     13675      </desc>
     13676    </attribute>
     13677
     13678    <attribute name="supportedGraphicsFeatures" type="GraphicsFeature" safearray="yes" readonly="yes">
     13679      <desc>
     13680        Returns an array of officially supported values for enum <link to="GraphicsFeature"/>,
    1363213681        in the sense of what is e.g. worth offering in the VirtualBox GUI.
    1363313682      </desc>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette