Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
Files
Commits
48075f6f
Commit
48075f6f
authored
Dec 16, 1999
by
Havoc Pennington
Browse files
IDL for desktop (this is an external API that apps can use)
parent
c7382d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
idl/gnome-desktop.idl
0 → 100644
View file @
48075f6f
//
module
Net
is
for
IDL
"standardized"
among
multiple
projects
module
Net
{
//
module
Desktop
contains
interfaces
for
the
desktop
environment
itself
-
not
//
desktop
applications
module
Desktop
{
//
This
is
a
simple
-
to
-
implement
least
-
common
-
denominator
that
//
we
might
expect
any
desktop
environment
to
implement
.
//
Specific
environments
may
provide
more
powerful
interfaces
.
interface
Desktop
{
enum
BackgroundType
{
ImageBackground
,
GradientBackground
,
SolidBackground
}
;
enum
ImageType
{
TiledImage
,
CenteredImage
,
ScaledAspectImage
,
ScaledImage
}
;
enum
GradientType
{
VerticalGradient
,
HorizontalGradient
}
;
union
BackgroundInfo
switch
(
BackgroundType
)
{
case
ImageBackground
:
string
filename
;
ImageType
imagetype
;
case
GradientBackground
:
GradientType
gradienttype
;
//
colors
are
24
-
bit
RGB
packed
into
an
int
int
northwest_color
; // top or left color
int
southeast_color
; // bottom or right color
case
SolidBackground
:
//
24
-
bit
RGB
packed
into
an
int
int
color
;
}
;
void
get_background_info
(
out
BackgroundInfo
info
)
;
void
set_background_info
(
in
BackgroundInfo
info
)
;
}
;
}
;
}
;
module
GNOME
{
module
Desktop
{
//
We
subclass
Net
::
Desktop
and
add
our
GNOME
-
specific
features
interface
Desktop
:
Net
::
Desktop
{
//
Add
an
icon
on
the
desktop
for
this
URI
//
The
URI
can
be
anything
gnome
-
vfs
understands
void
add_link
(
in
string
uri
)
;
}
;
}
;
}
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment