Dana Jansens
230abdc5a0
draw the bevel stuff in the pixel data buffer so parent-relative stuff can use it.
2003-07-24 05:33:41 +00:00
Dana Jansens
159ef95805
space
2003-07-24 05:25:33 +00:00
Dana Jansens
9352747a3c
init the parent shit in the surface when making a copy
2003-07-23 23:09:11 +00:00
Dana Jansens
ea6258ce0f
add a menuOverlap property to themes, and use it in the submenu placement
2003-07-22 16:14:42 +00:00
Dana Jansens
5fce782499
useless code move
2003-07-12 15:31:56 +00:00
Dana Jansens
70a38951b3
removed the RrEndian so using LSBFirst always now. hopefully this works!
2003-07-11 16:07:43 +00:00
Dana Jansens
6fdf481b27
same default offsets for all endian machines
2003-07-11 03:19:51 +00:00
Dana Jansens
81af5a8b0c
add disabled buttons, instead of now showing buttons at all when they wont do anything, now show a disabled button instead. this severely breaks compatibility with blackbox themes since there is no good way to automiatically create a disabled button that i can think of, so if they dont exist in the theme you get black and white for the button.
...
when a window cant be resized, its handle is not removed but its grips are.
change allowing the user to disable individual decorations as that is overkill,
instead allow a toggle through the client.decorate boolean.
2003-07-10 23:27:02 +00:00
Dana Jansens
58be655de3
remove rependancy on geom.h from the kernel, provide what is used in its own geom.h
2003-07-10 04:31:34 +00:00
Dana Jansens
2abbf01125
update the build system, using a single Makefile.am for a sexyass non-recursive make. booyah!
2003-07-10 04:31:05 +00:00
Dana Jansens
7f44ed5362
include stdlib for exit()
2003-07-07 20:26:32 +00:00
Dana Jansens
ce940eee0f
try some better default offsets for big endian machines.
...
print what the conversion is so i can see what it should be if im wrong though
2003-07-05 17:01:30 +00:00
Dana Jansens
41d72ee51f
used RrColorShift when RrColorOffset was what we wanted
2003-07-05 16:51:29 +00:00
Dana Jansens
2f9efb384d
prepare for alpha1 release.
...
make 'make dist' work.
2003-06-29 08:47:24 +00:00
Dana Jansens
9d896233ec
missed setting 'current' at the end of the pyramid gradient
2003-06-29 08:33:19 +00:00
Dana Jansens
121afb76eb
remove debug print
2003-06-28 19:06:03 +00:00
Dana Jansens
1bb7a5f883
don't destroy font patterns, i think this is a double free
2003-06-28 17:29:23 +00:00
Dana Jansens
527af7664a
add the themes path to the struct. make the name never include a path
2003-06-28 16:52:17 +00:00
Dana Jansens
c109dcd66a
hardcode the button names for themes
2003-06-28 16:48:25 +00:00
Dana Jansens
0a459f7a57
rename the button_dir var to data_dir.. pointless :>
2003-06-28 15:53:37 +00:00
Dana Jansens
15c7707181
dont destroy the match pattern, it seems that Xft holds onto the pointer
2003-06-26 17:51:52 +00:00
Dana Jansens
bf2f0c58ca
add comment
2003-06-26 01:35:41 +00:00
Dana Jansens
a12e73cf37
read fonts and titlebar layout from theme files
2003-06-26 01:29:45 +00:00
Dana Jansens
c791cbfda0
set teh X so it gets used right
2003-06-25 21:18:16 +00:00
Dana Jansens
0901ddf891
keep a small space on the sides of windows between the edge and the text
2003-06-25 21:17:15 +00:00
Dana Jansens
5cd0ed57ac
do horz grads without any multipliaction
2003-06-24 18:56:47 +00:00
Dana Jansens
1e882b6271
made all the gradients work with integer math. removed the pipecross and rectangle gradietns tho cuz they are ugly and i dont want to code that bullshit cuz they are ugly.
2003-06-24 18:54:18 +00:00
Dana Jansens
dc60657acf
integer math for gradients. horz vert and diags and pipecross work so far.
2003-06-24 18:16:23 +00:00
Dana Jansens
0a8fa636cd
always create the bg pixmap, X seems to not like it if i dont?
2003-06-21 17:13:45 +00:00
Dana Jansens
dc92dbfc56
don't exit in the render lib, rather return a NULL font/theme on failure
2003-06-21 05:35:05 +00:00
Dana Jansens
5929a63f95
more namespacing with Rr*
2003-06-21 02:39:56 +00:00
Dana Jansens
bb6b616b9c
more namespacing with Rr*
2003-06-21 02:39:55 +00:00
Dana Jansens
16066ed282
use the pseudo shit in the instance now
2003-06-21 02:38:47 +00:00
Dana Jansens
768c3cd4a9
more namespacing with Rr*
2003-06-21 02:30:15 +00:00
Dana Jansens
33ec08ea22
more namespacing with Rr*
2003-06-21 02:30:14 +00:00
Dana Jansens
c100b72c5d
more namespacing with Rr*
2003-06-21 02:26:50 +00:00
Dana Jansens
dbe2851b91
more namespacing to Rr*
2003-06-21 02:15:13 +00:00
Dana Jansens
092616de9a
rename pixel32/16 to RrPixel32/16
2003-06-21 02:00:42 +00:00
Dana Jansens
bd59576748
rename color_rgb to RrColor
2003-06-21 01:56:14 +00:00
Dana Jansens
b1f5555218
put the render theme into a struct
2003-06-21 01:53:26 +00:00
Dana Jansens
3f32dfa87e
this is going to break the kernel/ building.
...
lots of modifications to the render API, prefixing everything, making proper
names for everything. the structures are not hidden/opaque yet, but the naming scheme of the public API works much better now.
2003-06-20 07:58:51 +00:00
Dana Jansens
49268650b4
oops typo
2003-06-20 05:45:55 +00:00
Dana Jansens
62240d2b0f
take the bevel width into account for the width available
2003-06-20 02:39:20 +00:00
Dana Jansens
cd12a2eae5
simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever.
2003-06-20 02:17:23 +00:00
Dana Jansens
ad30e7092b
slight optimizations, and make the last 4 gradients work properly
2003-06-20 00:46:53 +00:00
Dana Jansens
fd52dc5d35
center text vertically. use the font's height because all that space is needed for some charcters
2003-06-20 00:38:25 +00:00
Dana Jansens
6e93be1d2e
remove non-planar surfaces
2003-06-20 00:05:51 +00:00
Dana Jansens
9867ce2367
more unique error for unhandles image bit depths, remove debug prints
2003-06-03 05:07:39 +00:00
Dana Jansens
c4e60e4ad2
handle increase_depth on 1bpp images
2003-06-03 05:04:12 +00:00
Derek Foreman
b8f05e5388
gl.h shouldn't be required when not enabling gl
2003-05-25 18:36:19 +00:00
Derek Foreman
db705f406c
all grads done
2003-05-25 03:36:12 +00:00
Derek Foreman
f9505b23b7
pipecross
2003-05-25 03:17:29 +00:00
Derek Foreman
d6652d0a90
rectangle and diagonal grads yay
...
gl > *
2003-05-25 02:46:35 +00:00
Derek Foreman
48a75b80d6
gl is starting. it's gonna get really ugly really fast, folks
2003-05-25 00:42:02 +00:00
Dana Jansens
f54e8c9ba0
add --enable-gl support, and put the flags/libs in the appropriate makefiles
2003-05-23 05:30:00 +00:00
Derek Foreman
99c7fa7260
fix cut'n'paste bug
2003-05-22 23:26:05 +00:00
Derek Foreman
c00accbd25
removed a piece of code I suspect has never been run
...
this is for XServers that report less than 8 bpp default visual and support
8bpp or higher visuals
hopefully nothing is really that stupid. we'll see.
2003-05-22 20:53:18 +00:00
Derek Foreman
911d7251f8
keep XVisualInfo around in preparation for opengl stuff
2003-05-22 19:48:11 +00:00
Dana Jansens
955d9d8e30
optimize it a bit
2003-05-21 22:19:01 +00:00
Dana Jansens
9b2a67d044
pass the number of bytes, not characters to the xft draw functions
2003-05-21 22:17:36 +00:00
Dana Jansens
e4aa5c6905
allocate the border_color's gc
2003-05-21 02:59:02 +00:00
Dana Jansens
9e33652f71
put the devation back how it used to be, it aws definately no better..
2003-05-20 23:53:32 +00:00
Derek Foreman
76425437d4
of by one error in pyramid, rectangle, and crosspipe
2003-05-20 19:07:27 +00:00
Dana Jansens
0de48102a4
remove debug prints
2003-05-20 16:49:46 +00:00
Dana Jansens
895cd9f43d
reindent the file....
...
but while i'm at it:
- add support for bevels/borders on solid textures.
- reverse the colors in the rectangle gradient, the pipecross and pyramid
ones may need to be reversed as well.
2003-05-20 07:30:27 +00:00
Dana Jansens
13f701bdb1
remove the elliptic gradient type.
...
add bevel light/dark colors for solid textures with bevels
2003-05-20 07:28:31 +00:00
Dana Jansens
97b22bd27b
use the rectangle gradient when the theme asks for elipse
2003-05-20 07:27:23 +00:00
Derek Foreman
ad4c3aad45
PipeCross
2003-05-18 23:31:13 +00:00
Derek Foreman
b24e6fbfa1
there's the rect grad. now stop bugging me :(
2003-05-18 23:27:31 +00:00
Derek Foreman
e328dc2f60
is that a rectangle grad? damned if I know
2003-05-18 23:15:37 +00:00
Dana Jansens
a18c1697b1
make icons use pixel32 data, and image_draw takes pixel32 data.
...
client.c gets pixmap icons as a backup to netwm ones, and they are converted into pixel32 data.
2003-05-18 23:06:11 +00:00
Derek Foreman
4be1b08154
whatever, it's a junk file.
2003-05-18 19:24:19 +00:00
Derek Foreman
d46e6627bf
change badly named offsets
...
add stubs for rectangle and pipecross
2003-05-18 19:24:08 +00:00
Derek Foreman
b9ecd5bf25
rename poorly named offsets
2003-05-18 19:23:26 +00:00
Derek Foreman
d9bdc21192
add stubs for pipecross and rectangle
2003-05-18 19:23:04 +00:00
Derek Foreman
dcdd743fa4
fix poor naming of default offset
2003-05-18 19:08:26 +00:00
Derek Foreman
90ca2a206b
fix poor naming of the default offset
2003-05-18 19:07:42 +00:00
Dana Jansens
993fc6226d
2 in 1 deal :\
...
client.c stacking.c: fixing looping transient case for group transient windows. now a window which is transient for a group is *not* transient for any other transient windows in the group (perviously the other window had to be transient for the group to be excluded, now it can be transient for anything).
client.c/h event.c render.c/h: adjustnig icon handling a bit. will be converting the legacy pixmap icons into rgba data so they can be handled the same as netwm icons.
2003-05-18 17:09:55 +00:00
Dana Jansens
d1ceea89bd
need the libsn flags
2003-05-18 03:17:42 +00:00
Dana Jansens
f26f23de50
all my changes while i was offline.
...
better alt-tabbing. better transient handling. i dont even know. lots of fucking cool shit so WATCH the FUCK OUT.
2003-05-09 16:57:17 +00:00
Dana Jansens
a081582e3a
fix window icon rendering, was using incorrect size.
2003-04-27 17:08:40 +00:00
Dana Jansens
02c7f2e8af
its G_BYTE_ORDER not G_ENDIAN.
2003-04-27 02:31:55 +00:00
Dana Jansens
9bd740cf71
make menu font smaller and !bold for now
2003-04-15 18:30:20 +00:00
Dana Jansens
1c3689d0c7
load menu style stuff
2003-04-15 18:05:58 +00:00
Dana Jansens
bbaef2ee57
make minsize take int*'s not a Size*
2003-04-15 18:05:25 +00:00
Derek Foreman
b72a3853fc
PYRAMID PARTY PART 2!!!
2003-04-15 02:24:03 +00:00
Derek Foreman
8f5e1a0fcb
PYRAMID PARTY!!!
2003-04-15 02:21:00 +00:00
Dana Jansens
b486929d34
indenting oopsie
2003-04-14 22:42:23 +00:00
Dana Jansens
64e0884413
text justification
2003-04-14 22:12:26 +00:00
Dana Jansens
1afb1a7cc8
shrink the area that the textures are rendered into by the bevels/borders
2003-04-14 22:12:18 +00:00
Dana Jansens
184e57c7e3
ignore the remaining new shit from automaking everything again
2003-04-13 21:18:43 +00:00
Dana Jansens
dfc9680e33
back to automake
2003-04-13 21:17:02 +00:00
Dana Jansens
282bca1da3
load the font shadow stuff from the old ob2 shitz
2003-04-13 07:52:58 +00:00
Dana Jansens
5cf61ee023
move the openbox engine into librender and the kernel. the theme is loaded and stored inside librender. the frame is decorated and managed inside the kernel.
2003-04-13 07:18:28 +00:00
Dana Jansens
76ebae32b2
allow freeing NULL appearances
2003-04-13 02:30:01 +00:00
Dana Jansens
ef1f7b0494
allow closing NULL fonts
2003-04-13 02:29:09 +00:00
Dana Jansens
2d9c03a441
allow freeing NULL pixmap masks
2003-04-13 02:28:29 +00:00
Dana Jansens
c2bb32dcd1
dont fux self in color_free if the color is NULL
2003-04-13 02:26:56 +00:00
Dana Jansens
d0e9015651
add libcwmcc and libobcl
2003-04-09 18:18:43 +00:00
Dana Jansens
b15007ca36
ifndef NOT IFNDEF GAH
2003-04-06 19:11:19 +00:00
Derek Foreman
8ebf2b6a3f
Fix reduce color depth to not use original data
...
(and break parentrel)
2003-04-06 18:03:59 +00:00
Dana Jansens
56f6acce8b
add stdlib.h for exit()
2003-04-06 17:39:59 +00:00
Dana Jansens
5d665673a2
fixes for build system. add themes to the install process. use the build/ dir for configures trash dump
2003-04-06 09:56:57 +00:00
Dana Jansens
8d08de4bb6
add function to give the minimum size of an appearance to fully render it's data
2003-04-06 06:19:36 +00:00
Derek Foreman
6bec1de545
remove asserts pending sanity check.
2003-04-06 04:33:10 +00:00
Derek Foreman
4260bfcb05
added flakey parentrel for solids and some mean spirited asserts
2003-04-06 04:29:45 +00:00
Derek Foreman
214fa8714e
added superb pseudo-color (8bpp) support
2003-04-06 04:03:05 +00:00
Dana Jansens
88f8ebada9
make tint signed
2003-04-05 19:14:23 +00:00
Dana Jansens
d447dc0f59
new build system without automake
2003-04-03 05:59:03 +00:00
Dana Jansens
4875ff5f8e
whitespace
2003-04-02 06:40:57 +00:00
Dana Jansens
60204c4348
kill debug print
2003-04-02 06:40:49 +00:00
Dana Jansens
301c302e4e
use the tint properly for the shadow
2003-04-02 06:37:52 +00:00
Dana Jansens
8cd8b1d0f4
will seg again
2003-04-02 05:56:00 +00:00
Dana Jansens
170fa13d83
stop copying. still segfault?
2003-04-02 05:54:26 +00:00
Dana Jansens
cf4e1780d0
find the right offset in the source data for parent relative
2003-04-02 04:30:57 +00:00
Derek Foreman
4213b558bf
let there be parentrelative
2003-04-02 00:17:35 +00:00
Dana Jansens
feb6bc632f
use 'sans' as the fallback font instead of 'fixed'
2003-03-30 23:34:00 +00:00
Dana Jansens
4d5885d271
add pixmap_mask_copy, and add the data to the mask struct, since it is needed for allowing copies
2003-03-29 21:12:47 +00:00
Derek Foreman
3d6b970a4b
moved paint's arguments into the appearance struct
2003-03-28 03:25:51 +00:00
Derek Foreman
175271a126
fix draw order in x_paint
2003-03-28 03:01:12 +00:00
Derek Foreman
9a49853466
black. not white. oops
2003-03-28 02:34:03 +00:00
Derek Foreman
16b17599b7
black for parentrelative so we can test icons
2003-03-28 02:33:28 +00:00
Derek Foreman
8e68958a07
prep for parentrelative
2003-03-27 23:13:22 +00:00
Derek Foreman
135f1c61e2
add rgba icon support
2003-03-26 05:38:39 +00:00
Derek Foreman
c0568cd7ef
rgba icon rendering
2003-03-26 05:38:13 +00:00
Derek Foreman
e95cb2ac53
add image.c to the build process
2003-03-26 05:38:02 +00:00
Derek Foreman
c9c72cbe29
added "NoTexture" type
2003-03-26 05:23:28 +00:00
Derek Foreman
9b4c587cd4
filled out rgba
2003-03-26 04:54:33 +00:00
Derek Foreman
2880e674ea
add a Rect to the textures for positioning them
2003-03-26 02:19:38 +00:00
Derek Foreman
6401ceed2b
include appropriate header file for Rect
2003-03-26 00:52:43 +00:00
Derek Foreman
384ba398b2
added position to the textures
2003-03-26 00:50:06 +00:00
Dana Jansens
5755a7a564
bettr font alignment, i think
2003-03-25 22:00:14 +00:00
Dana Jansens
c3f9abaf52
gl aint used yet
2003-03-23 23:00:15 +00:00
Dana Jansens
8fff73fa7a
seems to be better text placement than ever
2003-03-23 22:03:32 +00:00
Dana Jansens
f2add3a5b0
found what seems to be a better vertical offset for the fonts
2003-03-23 21:55:04 +00:00
Dana Jansens
5f44c45f06
dont render gradients that are missing
2003-03-23 19:43:15 +00:00
Dana Jansens
6adb3d4454
add more size checks
2003-03-23 17:32:07 +00:00
Dana Jansens
0f25fd6ff0
no \n in g_message
2003-03-23 00:28:44 +00:00
Dana Jansens
0a69cfc6d2
add strict ansi compliance
2003-03-21 20:25:34 +00:00
Dana Jansens
ff97498e1d
include gettext.h from the right place
2003-03-21 18:46:44 +00:00
Derek Foreman
de307661b6
added depth reduction and startup for true color visuals
...
16bpp should now work
2003-03-19 23:26:54 +00:00
Dana Jansens
49a7001264
free the right pixel data yay!
2003-03-19 08:09:24 +00:00
Dana Jansens
4ee425c13e
free the pixel data
2003-03-19 08:09:09 +00:00
Dana Jansens
c95a4e604c
can fit on one line
2003-03-19 07:58:52 +00:00
Dana Jansens
7bd747389d
initialize texture to NULL if theres no textures. use g_memdup to copy it
2003-03-19 07:58:39 +00:00
Dana Jansens
60cbb9ee92
kill the const, use g_new instead of malloc, g_free the font in font_close()
2003-03-19 07:26:25 +00:00
Dana Jansens
a75829699b
kill the const
2003-03-19 07:26:05 +00:00
Dana Jansens
812b9b03f4
clean up comments regarding alpha
2003-03-19 07:20:45 +00:00
Dana Jansens
cb73f209c9
dont put \n's at the end of g_message
2003-03-17 23:04:43 +00:00
Dana Jansens
033bd73e7e
kill the debug print
2003-03-17 20:00:00 +00:00
Dana Jansens
0c2f95674f
pass the x,y,w,h to font_draw.
...
draw the text in the "right" place for now.. no justification yet
2003-03-17 07:30:30 +00:00
Dana Jansens
a4838c740c
measure the font's height instead of listening to Xft
2003-03-17 06:41:40 +00:00
Derek Foreman
32ec1d1e86
solids should now work with offsets
2003-03-17 05:21:58 +00:00
Derek Foreman
46e2060fcf
more random pokery
2003-03-17 05:15:33 +00:00
Derek Foreman
e659f95516
either offsets work, or I've broken lots of things.
2003-03-17 05:00:46 +00:00
Derek Foreman
ab68bcfb1e
more changes wrt passing x, y, w, h to render
2003-03-17 04:53:36 +00:00
Derek Foreman
fdabd3daf9
paint gets more parameters
2003-03-17 04:50:40 +00:00
Derek Foreman
e9a7fc91bc
apparently my variable names were too verbose.
2003-03-17 04:43:42 +00:00
Derek Foreman
3147507622
offsets in planar surfaces
2003-03-17 04:42:49 +00:00
Dana Jansens
2870457bf5
decalre variables before code!
2003-03-17 02:10:24 +00:00
Derek Foreman
3cb562fe0b
added justification to textureText
2003-03-17 01:21:33 +00:00
Dana Jansens
26a3563ac6
dont need those includes no more
2003-03-17 01:10:32 +00:00
Derek Foreman
f1db272154
in keeping with my tradition of committing untested code, here is the
...
pixmap mask rendering code ported from the old otk dirs
2003-03-17 01:08:34 +00:00
Derek Foreman
57314ce522
move pixmap_mask typedef
...
add stub for draw_mask
2003-03-17 00:53:28 +00:00
Dana Jansens
b824e6ad8e
add funcs to create/free pixmap_masks
2003-03-17 00:49:05 +00:00
Dana Jansens
14f17c96d0
add glib.h for guint
2003-03-17 00:38:29 +00:00
Dana Jansens
05145e157f
include Xlib.h for Pixmap
2003-03-17 00:38:15 +00:00
Dana Jansens
5f5b45a920
add mask.[ch]
2003-03-17 00:37:52 +00:00
Dana Jansens
1f63f7b331
add a struct for pixmap masks
2003-03-17 00:37:23 +00:00
Derek Foreman
cce970813f
hack so text shows up
2003-03-17 00:21:05 +00:00
Dana Jansens
3232247b0c
dont delete the pixmap until after changeing the visible one
2003-03-17 00:18:03 +00:00
Derek Foreman
1f28946958
add missing include, pass right args to font_draw
2003-03-17 00:08:03 +00:00
Derek Foreman
f8ad321e50
malloc. yeah.
2003-03-16 23:49:05 +00:00
Derek Foreman
9b1943f1fe
copy textures in appearance_copy
2003-03-16 23:41:42 +00:00
Derek Foreman
8c8c40e270
try to render fonts
...
destroy pixmaps and xftdraws in appearance_delete
2003-03-16 23:36:17 +00:00
Derek Foreman
4672adbfa0
font changes
2003-03-16 23:35:51 +00:00
Derek Foreman
99b226f39d
remove printf and stdio.h
2003-03-16 23:35:33 +00:00
Derek Foreman
88a8bc413b
add font_draw
2003-03-16 23:35:00 +00:00
Derek Foreman
ea8d450ed3
add font_draw
...
move font def'n to render.h
2003-03-16 23:34:45 +00:00
Derek Foreman
74c683ee5f
font.h and font.c
2003-03-16 22:36:17 +00:00
Derek Foreman
6682d070c3
filled out font texture
2003-03-16 22:34:45 +00:00
Derek Foreman
aa68e45b19
added some font stuff
2003-03-16 22:34:05 +00:00
Dana Jansens
f8a47de5ec
merge the C branch into HEAD
2003-03-16 21:11:39 +00:00