cl-fltk-cvs
Threads by month
- ----- 2025 -----
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- 15 discussions

[Cl-fltk-cvs] Is Israel a Democracy? -- The problem with intellectually insecure whites -- Should Christians Support Israeli Terrorism in Gaza?
by Lawrence Auster 23 Jan '09
by Lawrence Auster 23 Jan '09
23 Jan '09
The Jewish State of Israel has no constitution, nor does it name its borders. Israel's hidden constitution is Judaism. Israel's undeclared borders range from the Nile to the Euphrates rivers. Israel's desired jurisdiction extends over the entire Earth.
It could not be more clear that the Jewish State follows a foreign policy which obeys Jewish Law as iterated in the Hebrew Bible, the Talmud, Maimonedes, the Cabalah, and the many commentaries and refinements of same. The Jews are genociding the native inhabitants of Palestine, just as their religion advises, and because
their religion teaches them to do so. They treat non-Jews as if non-humans, just as their religion requires them to do. They make perpetual war on every nation on Earth, just as their genocidal Jewish God has instructed.
The Jews of Israel are simply being Jews. Jews are an existential threat to the human race.
Israel contains one third of the Jews of the World. It is not some aberration of the Jewish spirit, but the condensation and concentration of the perverse Jewish mentality, which malady also pervades the remaining two thirds of Jewry, who almost unanimously support the Jewish State, and who certainly do unanimously support
the Jewish People and its consistent and constant crimes against the human race. Israel is Jewry and the danger of Israel is the danger of the Jewish People to all others, as the Jews have demonstrated each and every day of their existence.
The Jews, the entire Jewish People of 15 million, will not relent until they have wiped out all non-Jews in "Greater Israel". They will not stop destroying all other cultures, nations, religions, ethnicities, races, competition, etc. until they are either stopped, or succeed in their ancient quest to destroy the human race.
What Israel is doing is not some reaction to outside forces, nor was the formation of Israel a response to the Holocaust. Israel is simply following the plan laid out in the Jews' religious texts. The Jews have openly planned to take Palestine and genocide the native population of Palestine for some 2,500 years before the
Holocaust. The Jews have openly complained that "anti-Semitism" is a threat that gives them the right to genocide the Palestinians, not merely since the advent of Nazism, but for some 2,500 years.
The Jewish religion is the Constitution of the Jewish State of Israel, and, to a greater or lesser extent, the constitution of the nature of every Jew alive. The borders of Israel are the range the Jew roams over the entire World. The perverse Jewish mentality is inbred by a Jew's exposure to his parents and to his community. Judaism
passes in the spit and slobber of Jewish mother telling her Jewish child that he is a "Jew", as much as Judaism passes in the poison and pain of a Talmudic tractate. The secular Jews did not suddenly come to life after the Enlightenment and the Jewish Reformation a body of vampires that appeared ex nihilo, in vacuo, mostly
atheistical and undetached from formally practiced Judaism. Judaism is the Jew. It is a mindset that transcends and supercedes religion. It is a belief set, a way of life, a perception of one's self and one's relation to the World that makes a Jew, a Jew, and a danger to all of humanity.
In fact, the religious shell of Judaism is like the stretched and infected skin of a lycanthropic pustule. When you lance it to cure the infection, the virus only becomes more contagious and spills directly on the non-Jew.
The secular Jew is a deliberate product of the hyper-religious Jew, a monster created out of the hewed corpses of the fanatically religious Jew, a Golem which is conjured up to enter the World of the non-Jew and poison its blood, and boil its brain with a rabid lunacy that bites and spreads, until the infected community feeds on
itself and fills the fields with rotting bloating bodies, where once human beings tilled the soil and tended to their families. The religious Jew created the secular Jew as an army of Esthers who seduce with open thighs, broad smiles, and a Siren call that lures in the non-Jew to cast his skull upon the jagged rocks and color the seas
with his blood, sickened and blinded by the venereal disease of Judaism in secular form.
Israel is not a secular democracy. It is a religious mockery. It is a rabid bat flying to the ends of the Earth, to end the Earth. No one will be free nor safe until the disease is quarantined and dies out.
Source: http://www.ziopedia.org/articles/israel/how_can_israel_claim_to_be_a_%27dem…
--------------------
The problem with intellectually insecure whites
By Kevin MacDonald
January 19, 2009
America will soon have a white minority. This is a much desired state of affairs for the hostile elites who hold political power and shape public opinion. But it certainly creates some management issues � at least in the long run. After all, it�s difficult to come up with an historical example of a nation with a solid ethnic majority (90%
white in 1950) that has voluntarily decided to cede political and cultural power. Such transformations are typically accomplished by military invasions, great battles, and untold suffering.
And it�s not as if everyone is doing it. Only Western nations view their own demographic and cultural eclipse as a moral imperative. Indeed, as I have noted previously, it is striking that racial nationalism has triumphed in Israel at the same time that the Jewish intellectual and political movements and the organized Jewish
community have been the most active and effective force for a non-white America. Indeed, a poll in 2008 found that Avigdor Lieberman was the second most popular politician in Israel. Lieberman has advocated expulsion of Arabs from Israel and has declared himself a follower of Vladimir Jabotinsky, the leading pioneer of racial
Zionism. The most popular politician in the poll was Benjamin Netanyahu � another admirer of Jabotinsky. Prime Minister Ehud Olmert and Foreign Minister Tzipi Livni are also Jabotinskyists.
The racial Zionists are now carrying out yet another orgy of mass murder after a starvation-inducing blockade and the usual triggering assault designed to provoke Palestinian retaliation � which then becomes the cover for claims that Israel is merely defending itself against terrorism. This monstrosity was approved by
overwhelming majorities of both Houses of Congress. The craven Bush administration did its part by abstaining from a UN resolution designed by the US Secretary of State as a result of a personal appeal by the Israeli Prime Minister. This is yet another accomplishment of the Israel Lobby, but one they would rather not have
discussed in public. People might get the impression that the Lobby really does dictate US foreign policy in the Mideast. Obviously, such thoughts are only entertained by anti-Semites.
But I digress.
In managing the eclipse of white America, one strategy of the mainstream media is to simply ignore the issue. Christopher Donovan (�For the media, the less whites think about their coming minority status, the better�) has noted that the media, and in particular, the New York Times, are quite uninterested in doing stories that
discuss what white people think about this state of affairs.
It�s not surprising that the New York Times � the Jewish-owned flagship of anti-white, pro-multicultural media � ignores the issue. The issue is also missing from so-called conservative media even though one would think that conservatives would find the eclipse of white America to be an important issue. Certainly, their audiences
would find it interesting.
Now we have an article �The End of White America� written by Hua Hsu, an Assistant Professor of English at Vassar College. The article is a rather depressing display of what passes for intellectual discourse on the most important question confronting white people in America.
Hsu begins by quoting a passage in F. Scott Fitzgerald�s The Great Gatsby in which a character, Tom Buchanan, states: �Have you read The Rise of the Colored Empires by this man Goddard?� � Well, it�s a fine book, and everybody ought to read it. The idea is if we don�t look out the white race will be�will be utterly submerged.
It�s all scientific stuff; it�s been proved.�
Buchanan�s comment is a thinly veiled reference to Lothrop Stoddard�s The Rising Tide of Color which Hsu describes as �rationalized hatred� presented in a scholarly, gentlemanly, and scientific tone. (This wording that will certainly help him when he comes up for tenure.) As Hsu notes, Stoddard had a doctorate from Harvard
and was a member of many academic associations. His book was published by a major publisher. It was therefore �precisely the kind of book that a 1920s man of Buchanan�s profile � wealthy, Ivy League�educated, at once pretentious and intellectually insecure � might have been expected to bring up in casual conversation.�
Let�s ponder that a bit. The simple reality is that in the year 2009 an Ivy League-educated person, "at once pretentious and intellectually insecure," would just as glibly assert the same sort of nonsense as Hsu. To wit:
The coming white minority does not mean that the racial hierarchy of American culture will suddenly become inverted, as in 1995�s White Man�s Burden, an awful thought experiment of a film, starring John Travolta, that envisions an upside-down world in which whites are subjugated to their high-class black oppressors. There will
be dislocations and resentments along the way, but the demographic shifts of the next 40 years are likely to reduce the power of racial hierarchies over everyone�s lives, producing a culture that�s more likely than any before to treat its inhabitants as individuals, rather than members of a caste or identity group.
The fact is that no one can say for certain what multicultural America without a white majority will be like. There is no scientific or historical basis for claims like �the demographic shifts of the next 40 years are likely to reduce the power of racial hierarchies over everyone�s lives, producing a culture that�s more likely than any before
to treat its inhabitants as individuals, rather than members of a caste or identity group.�
Indeed, there is no evidence at all that we are proceeding to a color blind future. The election results continue to show that white people are coalescing in the Republican Party, while the Democrats are increasingly the party of a non-white soon-to-be majority.
Is it so hard to believe that when this coalition achieves a majority that it will further compromise the interests of whites far beyond contemporary concerns such as immigration policy and affirmative action? Hsu anticipates a colorblind world, but affirmative action means that blacks and other minorities are certainly not treated as
individuals. And it means that whites � especially white males � are losing out on opportunities they would have had without these policies and without the massive non-white immigration of the last few decades.
Given the intractability of changing intelligence and other traits required for success in the contemporary economy, it is unlikely that 40 more years of affirmative action will attain the outcomes desired by the minority lobbies. Indeed, in Obama's America, blacks are rioting in Oakland over perceived racial injustices, and from 2002
�2007, black juvenile homicide victims increased 31%, while black juvenile homicide perpetrators increased 43%. Hence, the reasonable outlook is for a continuing need for affirmative action and for racial activism in these groups, even after whites become a minority.
Whites will also lose out because of large-scale importation of relatively talented immigrants from East Asia. Indeed, as I noted over a decade ago, "The United States is well on the road to being dominated by an Asian technocratic elite and a Jewish business, professional, and media elite."
Hsu shows that there already is considerable anxiety among whites about the future. An advertizing executive says, �I think white people feel like they�re under siege right now � like it�s not okay to be white right now, especially if you�re a white male. ... People are stressed out about it. �We used to be in control! We�re losing
control�� Another says, "There�s a lot of fear and a lot of resentment."
It's hard to see why these feelings won't increase in the future.
A huge problem for white people is lack of intellectual and cultural confidence. Hsu quotes Christian (Stuff White People Like) Lander saying, "I get it: as a straight white male, I�m the worst thing on Earth." A professor comments that for his students "to be white is to be culturally broke. The classic thing white students say when
you ask them to talk about who they are is, �I don�t have a culture.� They might be privileged, they might be loaded socioeconomically, but they feel bankrupt when it comes to culture � They feel disadvantaged, and they feel marginalized."
This lack of cultural confidence is no accident. For nearly 100 years whites have been subjected to a culture of critique emanating from the most prestigious academic and media institutions. And, as Hsu points out, the most vibrant and influential aspect of American popular culture is hip-hop�a product of the African American
urban culture.
The only significant group of white people with any cultural confidence centers itself around country music, NASCAR, and the small town values of traditional white America. For this group of whites � and only this group � there is "a racial pride that dares not speak its name, and that defines itself through cultural cues instead�a
suspicion of intellectual elites and city dwellers, a preference for folksiness and plainness of speech (whether real or feigned), and the association of a working-class white minority with 'the real America.'�
This is what I term implicit whiteness � implicit because explicit assertions of white identity have been banned by the anti-white elites that dominate our politics and culture. It is a culture that, as Hsu notes, "cannot speak its name."
But that implies that the submerged white identity of the white working class and the lack of cultural confidence exhibited by the rest of white America are imposed from outside. Although there may well be characteristics of whites that facilitate this process, this suppression of white identity and interests is certainly not the natural
outcome of modernization or any other force internal to whites as a people. In my opinion, it is the result of the successful erection of a culture of critique in the West dominated by Jewish intellectual and political movements.
The result is that educated, intellectually insecure white people these days are far more likely to believe in the utopian future described by Hsu than in hard and cautious thinking about what the future might have in store for them.
It's worth dwelling a bit on the intellectual insecurity of the whites who mindlessly utter the mantras of multiculturalism that they have soaked up from the school system and from the media. Most people do not have much confidence in their intellectual ability and look to elite opinion to shape their beliefs. As I noted elsewhere,
A critical component of the success of the culture of critique is that it achieved control of the most prestigious and influential institutions of the West, and it became a consensus among the elites, Jewish and non-Jewish alike. Once this happened, it is not surprising that this culture became widely accepted among people of very
different levels of education and among people of different social classes.
Most people are quite insecure about their intellectual ability. But they know that the professors at Harvard, and the editorial page of the New York Times and the Washington Post, and even conservative commentators like Rush Limbaugh and Sean Hannity are all on page when it comes to racial and ethnic issues. This is a
formidable array, to the point that you almost have to be a crank to dissent from this consensus.
I think one of the greatest triumphs of the left has been to get people to believe that people who assert white identity and interests or who make unflattering portrayals of organized Jewish movements are morally degenerate, stupid, and perhaps psychiatrically disturbed. Obviously, all of these adjectives designate low status.
The reality is that the multicultural emperor has no clothes and, because of its support for racial Zionism and the racialism of ethnic minorities in America, it is massively hypocritical to boot. The New York Times, the academic left, and the faux conservatives that dominate elite discourse on race and ethnicity are intellectually
bankrupt and can only remain in power by ruthlessly suppressing or ignoring the scientific findings.
This is particularly a problem for college-educated whites. Like Fitzgerald's Tom Buchanan, such people have a strong need to feel that their ideas are respectable and part of the mainstream. But the respectable mainstream gives them absolutely nothing with which to validate themselves except perhaps the idea that the world
will be a better place when people like them no longer have power. Hsu quotes the pathetic Christian Lander: "�Like, I�m aware of all the horrible crimes that my demographic has done in the world. ... And there�s a bunch of white people who are desperate � desperate � to say, �You know what? My skin�s white, but I�m not one
of the white people who�s destroying the world.��
As a zombie leftist during the 1960s and 1970s, I know what that feeling of desperation is like � what it's like to be a self-hating white. We must get to the point where college-educated whites proudly and confidently say they are white and that they do not want to become a minority in America.
This reminds me of the recent docudrama Milk, which depicts the life of gay activist Harvey Milk. Milk is sure be nominated for an Oscar as Best Picture because it lovingly illustrates a triumph of the cultural left. But is has an important message that should resonate with the millions of whites who have been deprived of their
confidence and their culture: Be explicit. Just as Harvey Milk advocated being openly gay even in the face of dire consequences, whites need to tell their family and their friends that they have an identity as a white person and believe that whites have legitimate interests as white people. They must accept the consequences
when they are harassed, fired from their jobs, or put in prison for such beliefs. They must run for political office as openly pro-white.
Milk shows that homosexuals were fired from their jobs and arrested for congregating in public. Now it's the Southern Poverty Law Center and the rest of the leftist intellectual and political establishment that harasses and attempts to get people fired. But it's the same situation with the roles reversed. No revolution was ever
accomplished without some martyrs. The revolution that restores the legitimacy of white identity and the legitimacy of white interests will be no exception.
But it is a revolution that is absolutely necessary. The white majority is foolish indeed to entrust its future to a utopian hope that racial and ethnic identifications will disappear and that they won�t continue to influence public policy in ways that compromise the interests of whites.
It does not take an overactive imagination to see that coalitions of minority groups could compromise the interests of formerly dominant whites. We already see numerous examples in which coalitions of minority groups attempt to influence public policy, including immigration policy, against the interests of the whites. Placing
ourselves in a position of vulnerability would be extremely risky, given the deep sense of historical grievance fostered by many ethnic activists and organized ethnic lobbies.
This is especially the case with Jews. Jewish organisations have been unanimous in condemning Western societies, Western traditions, and Christianity, for past crimes against Jews. Similar sentiments are typical of a great many African Americans and Latinos, and especially among the ethnic activists from these groups. The
�God damn America� sermon by President Obama's pastor comes to mind as a recent notorious example.
The precedent of the early decades of the Soviet Union should give pause to anyone who believes that surrendering ethnic hegemony does not carry risks. The Bolshevik revolution had a pronounced ethnic angle: To a very great extent, Jews and other non-Russians ruled over the Russian people, with disastrous
consequences for the Russians and other ethnic groups that were not able to become part of the power structure. Jews formed a hostile elite within this power structure � as they will in the future white-minority America; Jews were �Stalin�s willing executioners.�
Two passages from my review of Yuri Slezkine's The Jewish Century seem particularly appropriate here. The first passage reminds me of the many American Jews who adopt a veneer of support for leftist versions of social justice and racial tolerance while nevertheless managing to support racial Zionism and the mass murder,
torture, and incarceration of the Palestinian people in one of the largest prison systems the world has ever seen. Such people may be very different when they become a hostile elite in a white-minority America.
Many of the commentators on Jewish Bolsheviks noted the �transformation� of Jews [after the Bolshevik Revolution]. In the words of [a] Jewish commentator, G. A. Landau, �cruelty, sadism, and violence had seemed alien to a nation so far removed from physical activity.� And another Jewish commentator, Ia. A. Bromberg, noted
that:
the formerly oppressed lover of liberty had turned into a tyrant of �unheard-of-despotic arbitrariness��. The convinced and unconditional opponent of the death penalty not just for political crimes but for the most heinous offenses, who could not, as it were, watch a chicken being killed, has been transformed outwardly into a
leather-clad person with a revolver and, in fact, lost all human likeness. ...
After the Revolution, ... there was active suppression of any remnants of the older order and their descendants. ... The mass murder of peasants and nationalists was combined with the systematic exclusion of the previously existing non-Jewish middle class. The wife of a Leningrad University professor noted, �in all the
institutions, only workers and Israelites are admitted; the life of the intelligentsia is very hard� (p. 243). Even at the end of the 1930s, prior to the Russification that accompanied World War II, �the Russian Federation�was still doing penance for its imperial past while also serving as an example of an ethnicity-free society� (p. 276).
While all other nationalities, including Jews, were allowed and encouraged to keep their ethnic identities, the revolution remained an anti-majoritarian movement.
The difference from the Soviet Union may well be that in white-minority America it will not be workers and Israelites who are favored, but non-whites and Israelites. Whites may dream that they are entering the post-racial utopia imagined by their erstwhile intellectual superiors. But it is quite possible that they are entering into a
racial dystopia of unimaginable cruelty in which whites will be systematically excluded in favor of the new elites recruited from the soon-to-be majority. It's happened before.
Kevin MacDonald is a professor of psychology at California State University�Long Beach.
Permanent URL with hyperlinks:
http://www.theoccidentalobserver.net/articles/MacDonald-Hsu.html
-----------
Should Christians Support Israeli Terrorism in Gaza?
A timely discussion between Rev. Ted Pike and Dr. David Duke, one especially important for the Christians in our audience
http://www.davidduke.com/mp3/dukeradio090122DukeandPikeonGaza.mp3
In this vital discussion, Rev. Pike and Dr. Duke explore the Pro-Israel attitude of some Christian evangelical organizations, and why their position not only goes directly against Christian morality and decency, but actually is directly opposite of that expressed by Christian Scriptures. Today, Many Christians are instructed that Jews
and today�s Israel has a special covenant� with God. In fact, the New Testament in the clearest of language states that the Jews �continued not in my covenant, and I considered them not, saith the Lord.� Here�s the quote that Christians aren�t supposed to notice.:
8:10 Not according to the covenant that I made with their fathers, in the day when I took them by the hand out of the land of Egypt; because they continued not in my covenant, and I regarded them not, saith the Lord. (Hebrews 8:10)
They also don�t seem to notice that a 2000 year old Judaic war against Christianity that has been waged since time of Jesus Christ and still goes on today with the most powerful Jewish organizations attempting to destroy European and American traditions, that has even become a war on our Christmas traditions.
Dr. Duke and Ted Pike also speak about how over a hundred thousand Christian Palestinians have suffered with their families from anti-Christian Israel! Christian support of Israel has resulted in the very birthplace of Jesus Christ, go from 90 percent Palestinian Christians to 35 percent today because of Israeli terror and
occupation. They ask, �How could any Christian in good conscience support the anti-Christian state of Israel, bombing the homes, killing and maiming, torturing and oppressing fellow Christian men, women and children?�
This is a vital show for every Christian reader and listener of DavidDuke.com. Next time, you hear someone say, �God tells us that we must support Israel� you will have the clear Christian answer that just the opposite is true!
For documentation on this be sure to read some of the well-footnoted, sample chapters of Jewish Supremacism and My Awakening.
Source :
http://www.davidduke.com/general/should-christians-support-israeli-terroris…
-------------------------------------
You or someone using your email adress is currently subscribed to the Lawrence Auster
Newletter. If you wish to unsubscribe from our mailing list, please let us know by calling to 1 212 865 1284
Thanks,
Lawrence Auster,
238 W 101 St Apt. 3B
New York, NY 10025
Contact: lawrence.auster(a)att.net
-------------------------------------
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/wrapper
In directory clnet:/tmp/cvs-serv19130/wrapper
Modified Files:
widget.cc widget.h
Log Message:
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/03/02 07:24:21 1.2
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/03/09 10:02:55 1.3
@@ -150,3 +150,73 @@
debug("%s:%s %x %c\n", __FILE__, __FUNCTION__, (unsigned int)widget, c);
return widget->scrollbar_width(c);
}
+
+Color fl_widget_get_color(Widget* widget)
+{
+ return widget->color();
+}
+
+Color fl_widget_get_textcolor(Widget* widget)
+{
+ return widget->textcolor();
+}
+
+Color fl_widget_get_selection_color(Widget* widget)
+{
+ return widget->selection_color();
+}
+
+Color fl_widget_get_selection_textcolor(Widget* widget)
+{
+ return widget->selection_textcolor();
+}
+
+Color fl_widget_get_buttoncolor(Widget* widget)
+{
+ return widget->buttoncolor();
+}
+
+Color fl_widget_get_labelcolor(Widget* widget)
+{
+ return widget->labelcolor();
+}
+
+Color fl_widget_get_highlight_color(Widget* widget)
+{
+ return widget->highlight_color();
+}
+
+Color fl_widget_get_highlight_textcolor(Widget* widget)
+{
+ return widget->highlight_textcolor();
+}
+
+float fl_widget_get_labelsize(Widget* widget)
+{
+ return widget->labelsize();
+}
+
+float fl_widget_get_textsize(Widget* widget)
+{
+ return widget->textsize();
+}
+
+float fl_widget_get_leading(Widget* widget)
+{
+ return widget->leading();
+}
+
+unsigned char fl_widget_get_scrollbar_align(Widget* widget)
+{
+ return widget->scrollbar_align();
+}
+
+unsigned char fl_widget_get_scrollbar_width(Widget* widget)
+{
+ return widget->scrollbar_width();
+}
+
+int fl_widget_send(Widget* widget, int event)
+{
+ return widget->send(event);
+}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/03/02 07:24:21 1.2
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/03/09 10:02:55 1.3
@@ -35,24 +35,23 @@
void fl_widget_leading(Widget* widget, float a);
void fl_widget_scrollbar_align(Widget* widget, unsigned char);
void fl_widget_scrollbar_width(Widget* widget, unsigned char);
- /*
- Color color() const;
- Color textcolor() const;
- Color selection_color() const;
- Color selection_textcolor() const;
- Color buttoncolor() const;
- Color labelcolor() const;
- Color highlight_color() const;
- Color highlight_textcolor() const;
- float labelsize() const;
- float textsize() const;
- float leading() const;
- unsigned char scrollbar_align() const;
- unsigned char scrollbar_width() const;
- */
- /*
- int send(int event);
+ Color fl_widget_get_color(Widget* widget);
+ Color fl_widget_get_textcolor(Widget* widget);
+ Color fl_widget_get_selection_color(Widget* widget);
+ Color fl_widget_get_selection_textcolor(Widget* widget);
+ Color fl_widget_get_buttoncolor(Widget* widget);
+ Color fl_widget_get_labelcolor(Widget* widget);
+ Color fl_widget_get_highlight_color(Widget* widget);
+ Color fl_widget_get_highlight_textcolor(Widget* widget);
+ float fl_widget_get_labelsize(Widget* widget);
+ float fl_widget_get_textsize(Widget* widget);
+ float fl_widget_get_leading(Widget* widget);
+ unsigned char fl_widget_get_scrollbar_align(Widget* widget);
+ unsigned char fl_widget_get_scrollbar_width(Widget* widget);
+ int fl_widget_send(Widget* widget, int event);
+
+ /*
const Style* style() const { return style_; }
void style(const Style* s) { style_ = s; }
void style(const Style& s) { style_ = &s; }
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/src
In directory clnet:/tmp/cvs-serv19130/src
Modified Files:
package.lisp widget.lisp
Log Message:
--- /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/03/02 07:24:21 1.2
+++ /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/03/09 10:02:55 1.3
@@ -4,13 +4,44 @@
(:use #:common-lisp)
(:nicknames fl fltk)
(:export
- ProgressBar
+ +ALIGN-BOTTOM+
+ +ALIGN-BOTTOMLEFT+
+ +ALIGN-BOTTOMRIGHT+
+ +ALIGN-CENTER+
+ +ALIGN-CENTERLEFT+
+ +ALIGN-CLIP+
+ +ALIGN-INSIDE+
+ +ALIGN-INSIDE-BOTTOM+
+ +ALIGN-INSIDE-BOTTOMLEFT+
+ +ALIGN-INSIDE-BOTTOMRIGHT+
+ +ALIGN-INSIDE-LEFT+
+ +ALIGN-INSIDE-RIGHT+
+ +ALIGN-INSIDE-TOP+
+ +ALIGN-INSIDE-TOPLEFT+
+ +ALIGN-INSIDE-TOPRIGHT+
+ +ALIGN-LEFT+
+ +ALIGN-LEFTBOTTOM+
+ +ALIGN-LEFTTOP+
+ +ALIGN-MASK+
+ +ALIGN-RIGHT+
+ +ALIGN-RIGHTBOTTOM+
+ +ALIGN-RIGHTTOP+
+ +ALIGN-TOP+
+ +ALIGN-TOPLEFT+
+ +ALIGN-TOPRIGHT+
+ +ALIGN-WRAP+
+ +BLACK+
+ +BLUE+
+BORDER-BOX+
+BORDER-FRAME+
+ +CHANGED+
+ +CLICK-TO-FOCUS+
+ +COPIED-LABEL+
+COURIER+
+COURIER-BOLD+
+COURIER-BOLD-ITALIC+
+COURIER-ITALIC+
+ +CYAN+
+DIAMOND-DOWN-BOX+
+DIAMOND-UP-BOX+
+DOTTED-FRAME+
@@ -20,20 +51,57 @@
+ENGRAVED-BOX+
+ENGRAVED-LABEL+
+FLAT-BOX+
+ +FOCUSED+
+ +GRAY00+
+ +GRAY05+
+ +GRAY10+
+ +GRAY15+
+ +GRAY20+
+ +GRAY25+
+ +GRAY30+
+ +GRAY33+
+ +GRAY35+
+ +GRAY40+
+ +GRAY45+
+ +GRAY50+
+ +GRAY55+
+ +GRAY60+
+ +GRAY65+
+ +GRAY66+
+ +GRAY70+
+ +GRAY75+
+ +GRAY80+
+ +GRAY85+
+ +GRAY90+
+ +GRAY95+
+ +GRAY99+
+ +GREEN+
+HELVETICA+
+HELVETICA-BOLD+
+HELVETICA-BOLD-ITALIC+
+HELVETICA-ITALIC+
+ +HIGHLIGHT+
+HIGHLIGHT-DOWN-BOX+
+HIGHLIGHT-UP-BOX+
+ +INACTIVE+
+ +INVISIBLE+
+ +LAYOUT-VERTICAL+
+ +MAGENTA+
+NO-BOX+
+ +NO-COLOR+
+ +NO-FLAGS+
+NO-LABEL+
+NORMAL-LABEL+
+ +NOTACTIVE+
+OFLAT-BOX+
+OSHADOW-BOX+
+ +OUTPUT+
+OVAL-BOX+
+PLASTIC-DOWN-BOX+
+PLASTIC-UP-BOX+
+ +PUSHED+
+ +RAW-LABEL+
+ +RED+
+RFLAT-BOX+
+ROUND-DOWN-BOX+
+ROUND-UP-BOX+
@@ -41,10 +109,12 @@
+RSHADOW-BOX+
+SCREEN-BOLD-FONT+
+SCREEN-FONT+
+ +SELECTED+
+SHADOW-BOX+
+SHADOW-LABEL+
+SYMBOL-FONT+
+SYMBOL-LABEL+
+ +TAB-TO-FOCUS+
+THIN-DOWN-BOX+
+THIN-UP-BOX+
+TIMES+
@@ -52,119 +122,50 @@
+TIMES-BOLD-ITALIC+
+TIMES-ITALIC+
+UP-BOX+
+ +VALUE+
+ +WHITE+
+ +WINDOWS-BLUE+
+ +YELLOW+
+ZAPF-DINGBATS+
+ ProgressBar
+ add-timeout
ask
begin
box
+ buttonbox
+ buttoncolor
callback
+ clear-flag
+ color
end
+ focusbox
foreign-object
hide
+ highlight-color
+ highlight-textcolor
+ labelcolor
labelfont
labelsize
labeltype
+ leading
new-button
+ new-progressbar
new-widget
new-window
- show
- new-progressbar
- progressbar-step
- +NO-FLAGS+
- +ALIGN-CENTER+
- +ALIGN-TOP+
- +ALIGN-BOTTOM+
- +ALIGN-LEFTTOP+
- +ALIGN-LEFT+
- +ALIGN-TOPLEFT+
- +ALIGN-BOTTOMLEFT+
- +ALIGN-LEFTBOTTOM+
- +ALIGN-RIGHT+
- +ALIGN-TOPRIGHT+
- +ALIGN-BOTTOMRIGHT+
- +ALIGN-RIGHTTOP+
- +ALIGN-CENTERLEFT+
- +ALIGN-RIGHTBOTTOM+
- +ALIGN-INSIDE+
- +ALIGN-INSIDE-TOP+
- +ALIGN-INSIDE-BOTTOM+
- +ALIGN-INSIDE-LEFT+
- +ALIGN-INSIDE-TOPLEFT+
- +ALIGN-INSIDE-BOTTOMLEFT+
- +ALIGN-INSIDE-RIGHT+
- +ALIGN-INSIDE-TOPRIGHT+
- +ALIGN-INSIDE-BOTTOMRIGHT+
- +ALIGN-CLIP+
- +ALIGN-WRAP+
- +ALIGN-MASK+
- +NOTACTIVE+
- +OUTPUT+
- +VALUE+
- +SELECTED+
- +INVISIBLE+
- +HIGHLIGHT+
- +CHANGED+
- +COPIED-LABEL+
- +RAW-LABEL+
- +LAYOUT-VERTICAL+
- +TAB-TO-FOCUS+
- +CLICK-TO-FOCUS+
- +INACTIVE+
- +FOCUSED+
- +PUSHED+
- +NO-COLOR+
- +GRAY00+
- +GRAY05+
- +GRAY10+
- +GRAY15+
- +GRAY20+
- +GRAY25+
- +GRAY30+
- +GRAY33+
- +GRAY35+
- +GRAY40+
- +GRAY45+
- +GRAY50+
- +GRAY55+
- +GRAY60+
- +GRAY65+
- +GRAY66+
- +GRAY70+
- +GRAY75+
- +GRAY80+
- +GRAY85+
- +GRAY90+
- +GRAY95+
- +GRAY99+
- +BLACK+
- +RED+
- +GREEN+
- +YELLOW+
- +BLUE+
- +MAGENTA+
- +CYAN+
- +WHITE+
- +WINDOWS-BLUE+
- progressbar-position
- add-timeout
- clear-flag
- set-flag
- selection-color
- color
- textcolor
- progresbar-minimum
progresbar-maximum
+ progresbar-minimum
+ progressbar-position
progressbar-showtext
+ progressbar-step
progressbar-text-color
- buttonbox
- focusbox
- textfont
- selection-textcolor
- buttoncolor
- labelcolor
- highlight-color
- highlight-textcolor
- textsize
- leading
scrollbar-align
scrollbar-width
+ selection-color
+ selection-textcolor
+ send
+ set-flag
+ show
+ textcolor
+ textfont
+ textsize
))
--- /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/03/02 07:24:21 1.2
+++ /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/03/09 10:02:55 1.3
@@ -27,8 +27,6 @@
(defun hide (widget)
(cffi:foreign-funcall "fl_widget_hide"
:pointer (cl-fltk:foreign-object widget)))
-
-(defgeneric callback (widget function &optional data))
;;TODO :pointer data -> :string data -> :int data etc.
(defmethod callback ((widget Widget) (callback-function symbol) &optional (data (cffi:null-pointer)))
@@ -37,33 +35,28 @@
:pointer (cffi:get-callback callback-function)
:pointer data))
-(defgeneric box (widget string))
-
(defmethod box ((widget widget) box)
(cffi:foreign-funcall "fl_widget_box"
:pointer (cl-fltk:foreign-object widget)
:pointer box))
-(defgeneric labelfont (widget font))
-
(defmethod labelfont ((widget Widget) font)
(cffi:foreign-funcall "fl_widget_labelfont"
:pointer (cl-fltk:foreign-object widget)
:pointer font))
-(defgeneric labeltype (widget type))
-
(defmethod labeltype ((widget Widget) type)
(cffi:foreign-funcall "fl_widget_labeltype"
:pointer (cl-fltk:foreign-object widget)
:pointer type))
-(defgeneric labelsize (widget size))
-
-(defmethod labelsize ((widget Widget) (size float))
- (cffi:foreign-funcall "fl_widget_labelsize"
- :pointer (cl-fltk:foreign-object widget)
- :float size))
+(defmethod labelsize ((widget Widget) &optional size)
+ (if size
+ (cffi:foreign-funcall "fl_widget_labelsize"
+ :pointer (cl-fltk:foreign-object widget)
+ :float size)
+ (cffi:foreign-funcall "fl_widget_get_labelsize"
+ :pointer (cl-fltk:foreign-object widget) :float)))
(defmethod clear-flag ((widget Widget) (flag integer))
(cffi:foreign-funcall "fl_widget_clear_flag"
@@ -75,20 +68,29 @@
:pointer (cl-fltk:foreign-object widget)
:int flag))
-(defmethod selection-color ((widget Widget) (color integer))
- (cffi:foreign-funcall "fl_widget_selection_color"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod color ((widget Widget) (color integer))
- (cffi:foreign-funcall "fl_widget_color"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod textcolor ((widget Widget) (color integer))
- (cffi:foreign-funcall "fl_widget_textcolor"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
+(defmethod selection-color ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_selection_color"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_selection_color"
+ :pointer (cl-fltk:foreign-object widget) :int )))
+
+(defmethod color ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_color"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_color"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod textcolor ((widget Widget) color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_textcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_textcolor"
+ :pointer (cl-fltk:foreign-object widget) :int)))
(defmethod buttonbox ((widget Widget) box)
(cffi:foreign-funcall "fl_widget_buttonbox"
@@ -105,47 +107,79 @@
:pointer (cl-fltk:foreign-object widget)
:pointer font))
-(defmethod selection-textcolor ((widget Widget) color)
- (cffi:foreign-funcall "fl_widget_selection_textcolor"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod buttoncolor ((widget Widget) color)
- (cffi:foreign-funcall "fl_widget_buttoncolor"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod labelcolor ((widget Widget) color)
- (cffi:foreign-funcall "fl_widget_labelcolor"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod highlight-color ((widget Widget) color)
- (cffi:foreign-funcall "fl_widget_highlight_color"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod highlight-textcolor ((widget Widget) color)
- (cffi:foreign-funcall "fl_widget_highlight_textcolor"
- :pointer (cl-fltk:foreign-object widget)
- :int color))
-
-(defmethod textsize ((widget Widget) (size float))
- (cffi:foreign-funcall "fl_widget_textsize"
- :pointer (cl-fltk:foreign-object widget)
- :float size))
-
-(defmethod leading ((widget Widget) (leading float))
- (cffi:foreign-funcall "fl_widget_leading"
- :pointer (cl-fltk:foreign-object widget)
- :float leading))
-
-(defmethod scrollbar-align ((widget Widget) c)
- (cffi:foreign-funcall "fl_widget_scrollbar_align"
- :pointer (cl-fltk:foreign-object widget)
- :unsigned-char c))
+(defmethod selection-textcolor ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_selection_textcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_selection_textcolor"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod buttoncolor ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_buttoncolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_buttoncolor"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod labelcolor ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_labelcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_labelcolor"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod highlight-color ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_highlight_color"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_highlight_color"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod highlight-textcolor ((widget Widget) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_widget_highlight_textcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color)
+ (cffi:foreign-funcall "fl_widget_get_highlight_textcolor"
+ :pointer (cl-fltk:foreign-object widget) :int)))
+
+(defmethod textsize ((widget Widget) &optional size)
+ (if size
+ (cffi:foreign-funcall "fl_widget_textsize"
+ :pointer (cl-fltk:foreign-object widget)
+ :float size)
+ (cffi:foreign-funcall "fl_widget_get_textsize"
+ :pointer (cl-fltk:foreign-object widget) :float)))
+
+(defmethod leading ((widget Widget) &optional leading)
+ (if leading
+ (cffi:foreign-funcall "fl_widget_leading"
+ :pointer (cl-fltk:foreign-object widget)
+ :float leading)
+ (cffi:foreign-funcall "fl_widget_get_leading"
+ :pointer (cl-fltk:foreign-object widget) :float)))
+
+(defmethod scrollbar-align ((widget Widget) &optional c)
+ (if c
+ (cffi:foreign-funcall "fl_widget_scrollbar_align"
+ :pointer (cl-fltk:foreign-object widget)
+ :unsigned-char c)
+ (cffi:foreign-funcall "fl_widget_get_scrollbar_align"
+ :pointer (cl-fltk:foreign-object widget) :unsigned-char)))
+
+(defmethod scrollbar-width ((widget Widget) &optional c)
+ (if c
+ (cffi:foreign-funcall "fl_widget_scrollbar_width"
+ :pointer (cl-fltk:foreign-object widget)
+ :unsigned-char c)
+ (cffi:foreign-funcall "fl_widget_get_scrollbar_width"
+ :pointer (cl-fltk:foreign-object widget) :unsigned-char)))
-(defmethod scrollbar-width ((widget Widget) c)
- (cffi:foreign-funcall "fl_widget_scrollbar_width"
+(defmethod send ((widget Widget) event)
+ (cffi:foreign-funcall "fl_widget_send"
:pointer (cl-fltk:foreign-object widget)
- :unsigned-char c))
+ :int event :int))
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/wrapper
In directory clnet:/tmp/cvs-serv17150/wrapper
Modified Files:
widget.cc widget.h
Log Message:
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/02/27 08:26:41 1.1
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/03/02 07:24:21 1.2
@@ -77,3 +77,76 @@
debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, c);
return widget->selection_color(c);
}
+
+void fl_widget_buttonbox(Widget* widget, Box* box)
+{
+ debug("%s:%s %x %x\n", __FILE__, __FUNCTION__, (unsigned int)widget, (unsigned int)box);
+ return widget->buttonbox(box);
+}
+
+void fl_widget_focusbox(Widget* widget, Box* box)
+{
+ debug("%s:%s %x %x\n", __FILE__, __FUNCTION__, (unsigned int)widget, (unsigned int)box);
+ return widget->focusbox(box);
+}
+
+void fl_widget_textfont(Widget* widget, Font* font)
+{
+ debug("%s:%s %x %x\n", __FILE__, __FUNCTION__, (unsigned int)widget, (unsigned int)font);
+ return widget->textfont(font);
+}
+
+void fl_widget_selection_textcolor(Widget* widget, Color color)
+{
+ debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, color);
+ return widget->textcolor(color);
+}
+
+void fl_widget_buttoncolor(Widget* widget, Color color)
+{
+ debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, color);
+ return widget->buttoncolor(color);
+}
+
+void fl_widget_labelcolor(Widget* widget, Color color)
+{
+ debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, color);
+ return widget->labelcolor(color);
+}
+
+void fl_widget_highlight_color(Widget* widget, Color color)
+{
+ debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, color);
+ return widget->highlight_color(color);
+}
+
+void fl_widget_highlight_textcolor(Widget* widget, Color color)
+{
+ debug("%s:%s %x %i\n", __FILE__, __FUNCTION__, (unsigned int)widget, color);
+ return widget->highlight_textcolor(color);
+}
+
+void fl_widget_textsize(Widget* widget, float a)
+{
+ debug("%s:%s %x %f\n", __FILE__, __FUNCTION__, (unsigned int)widget, a);
+ return widget->textsize(a);
+}
+
+void fl_widget_leading(Widget* widget, float a)
+{
+ debug("%s:%s %x %f\n", __FILE__, __FUNCTION__, (unsigned int)widget, a);
+ return widget->leading(a);
+}
+
+void fl_widget_scrollbar_align(Widget* widget, unsigned char c)
+{
+ debug("%s:%s %x %c\n", __FILE__, __FUNCTION__, (unsigned int)widget, c);
+ return widget->scrollbar_align(c);
+
+}
+
+void fl_widget_scrollbar_width(Widget* widget, unsigned char c)
+{
+ debug("%s:%s %x %c\n", __FILE__, __FUNCTION__, (unsigned int)widget, c);
+ return widget->scrollbar_width(c);
+}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/02/27 08:26:41 1.1
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/03/02 07:24:21 1.2
@@ -23,5 +23,181 @@
void fl_widget_color(Widget *widget, int c);
void fl_widget_textcolor(Widget * widget, int c);
void fl_widget_selection_color(Widget *widget, int c);
+ void fl_widget_buttonbox(Widget* widget, Box*);
+ void fl_widget_focusbox(Widget* widget, Box*);
+ void fl_widget_textfont(Widget* widget, Font*);
+ void fl_widget_selection_textcolor(Widget* widget, Color);
+ void fl_widget_buttoncolor(Widget* widget, Color);
+ void fl_widget_labelcolor(Widget* widget, Color);
+ void fl_widget_highlight_color(Widget* widget, Color);
+ void fl_widget_highlight_textcolor(Widget* widget, Color);
+ void fl_widget_textsize(Widget* widget, float a);
+ void fl_widget_leading(Widget* widget, float a);
+ void fl_widget_scrollbar_align(Widget* widget, unsigned char);
+ void fl_widget_scrollbar_width(Widget* widget, unsigned char);
+ /*
+ Color color() const;
+ Color textcolor() const;
+ Color selection_color() const;
+ Color selection_textcolor() const;
+ Color buttoncolor() const;
+ Color labelcolor() const;
+ Color highlight_color() const;
+ Color highlight_textcolor() const;
+ float labelsize() const;
+ float textsize() const;
+ float leading() const;
+ unsigned char scrollbar_align() const;
+ unsigned char scrollbar_width() const;
+ */
+ /*
+ int send(int event);
+
+ const Style* style() const { return style_; }
+ void style(const Style* s) { style_ = s; }
+ void style(const Style& s) { style_ = &s; }
+ bool copy_style(const Style* s);
+ static NamedStyle* default_style;
+ static Symbol* default_glyph;
+
+ Group* parent() const { return parent_; }
+ void parent(Group* w) { parent_ = w; }
+ Window* window() const ;
+
+ uchar type() const { return type_; }
+ void type(uchar t) { type_ = t; }
+ bool is_group() const { return type_ >= GROUP_TYPE; }
+ bool is_window() const { return type_ >= WINDOW_TYPE; }
+
+ bool resize(int x,int y,int w,int h);
+ bool position(int x, int y) ;
+ bool resize(int w, int h) ;
+void get_absolute_rect( Rectangle *rect ) const;
+
+ const char* label() const { return label_; }
+ void label(const char* a);
+ void copy_label(const char* a);
+
+ const Symbol* image() const { return image_; }
+ void image(const Symbol* a) { image_ = a; }
+ void image(const Symbol& a) { image_ = &a; }
+
+ const char *tooltip() const { return tooltip_; }
+ void tooltip(const char *t) { tooltip_ = t; }
+
+ unsigned shortcut() const ;
+ bool shortcut(unsigned key) ;
+ bool add_shortcut(unsigned key);
+ bool remove_shortcut(unsigned key);
+ bool remove_shortcuts() ;
+ unsigned label_shortcut() const;
+ bool test_label_shortcut() const;
+ bool test_shortcut() const ;
+ bool test_shortcut(bool) const;
+
+ Callback_p callback() const { return callback_; }
+ void callback(Callback* c, void* p) { callback_=c; user_data_=p; }
+ void callback(Callback* c) { callback_=c; }
+ void callback(Callback0*c) { callback_=(Callback*)c; }
+ void callback(Callback1*c, long p=0) { callback_=(Callback*)c; user_data_=(void*)p; }
+ void* user_data() const { return user_data_; }
+ void user_data(void* v) { user_data_ = v; }
+ long argument() const { return (long)user_data_; }
+ void argument(long v) { user_data_ = (void*)v; }
+ uchar when() const { return when_; }
+ void when(uchar i) { when_ = i; }
+
+ static void default_callback(Widget*, void*);
+ void do_callback() { callback_(this,user_data_); }
+ void do_callback(Widget* o,void* arg=0) { callback_(o,arg); }
+ void do_callback(Widget* o,long arg) { callback_(o,(void*)arg); }
+ bool contains(const Widget*) const;
+ bool inside(const Widget* o) const { return o && o->contains(this); }
+ bool pushed() const ;
+ bool focused() const ;
+ bool belowmouse() const ;
+
+ Flags flags() const { return flags_; }
+ Flags flags(Flags f) { return flags_ = f; }
+ Flags set_flag(int c) { return flags_ |= c; }
+ Flags clear_flag(int c) { return flags_ &= ~c; }
+ Flags invert_flag(int c) { return flags_ ^= c; }
+
+ Flags align() const { return flags_&ALIGN_MASK; }
+ void align(unsigned a) { flags_ = (flags_ & (~ALIGN_MASK)) | a; }
+ bool visible() const { return !(flags_&INVISIBLE); }
+ bool visible_r() const ;
+ void show() ;
+ void hide() ;
+ void set_visible() { flags_ &= ~INVISIBLE; }
+ void clear_visible() { flags_ |= INVISIBLE; }
+ bool active() const { return !(flags_&NOTACTIVE); }
+ bool active_r() const ;
+ void activate() ;
+ void activate(int b) { if (b) activate(); else deactivate(); }
+ void deactivate() ;
+ bool output() const { return (flags_&OUTPUT)!=0; }
+ void set_output() { flags_ |= OUTPUT; }
+ void clear_output() { flags_ &= ~OUTPUT; }
+ bool takesevents() const { return !(flags_&(OUTPUT|INVISIBLE|NOTACTIVE)); }
+ bool changed() const { return (flags_&CHANGED)!=0; }
+ void set_changed() { flags_ |= CHANGED; }
+ void clear_changed() { flags_ &= ~CHANGED; }
+ bool value() const { return (flags_&VALUE)!=0; }
+ void set_value() { flags_ |= VALUE; }
+ void clear_value() { flags_ &= ~VALUE; }
+ bool selected() const { return (flags_&SELECTED)!=0; }
+ void set_selected() { flags_ |= SELECTED; }
+ void clear_selected() { flags_ &= ~SELECTED; }
+ bool click_to_focus() { return (flags_ & CLICK_TO_FOCUS) != 0; }
+ void set_click_to_focus() { flags_ |= CLICK_TO_FOCUS; }
+ void clear_click_to_focus() { flags_ &= ~CLICK_TO_FOCUS; }
+ bool tab_to_focus() { return (flags_ & TAB_TO_FOCUS) != 0; }
+ void set_tab_to_focus() { flags_ |= TAB_TO_FOCUS; }
+ void clear_tab_to_focus() { flags_ &= ~(TAB_TO_FOCUS|CLICK_TO_FOCUS); }
+ bool horizontal() const { return !(flags_&LAYOUT_VERTICAL);}
+ bool vertical() const { return (flags_&LAYOUT_VERTICAL)!=0;}
+ void set_horizontal() { flags_ &= ~LAYOUT_VERTICAL; }
+ void set_vertical() { flags_ |= LAYOUT_VERTICAL; }
+ bool take_focus() ;
+ void throw_focus() ;
+
+ void redraw() ;
+ void redraw(uchar c) ;
+ void redraw_label() ;
+ void redraw_highlight() ;
+ void redraw(const Rectangle&);
+ uchar damage() const { return damage_; }
+ void set_damage(uchar c) { damage_ = c; } // should be called damage(c)
+
+ void relayout() ;
+ void relayout(uchar damage) ;
+ uchar layout_damage() const { return layout_damage_; }
+ void layout_damage(uchar c) { layout_damage_ = c; }
+
+ void add_timeout(float) ;
+ void repeat_timeout(float) ;
+ void remove_timeout() ;
+
+ void make_current() const ;
+ void draw_background() const ;
+ void draw_frame() const ;
+ void draw_box() const ;
+ void draw_label() const ;
+ void draw_label(const Rectangle&, Flags) const ;
+ void draw_glyph(int, const Rectangle&) const ;
+ void cursor(Cursor*) const ;
+ void measure_label(int&, int&) const ;
+ Box* box() const;
+ Box* buttonbox() const;
+ Box* focusbox() const;
+ Symbol* glyph() const;
+ Font* labelfont() const;
+ Font* textfont() const;
+ LabelType* labeltype() const;
+
+ void glyph(Symbol*) ;
+ */
+
}
#endif
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/src
In directory clnet:/tmp/cvs-serv17150/src
Modified Files:
package.lisp progressbar.lisp widget.lisp
Log Message:
--- /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/02/27 08:26:41 1.1
+++ /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/03/02 07:24:21 1.2
@@ -151,4 +151,20 @@
selection-color
color
textcolor
+ progresbar-minimum
+ progresbar-maximum
+ progressbar-showtext
+ progressbar-text-color
+ buttonbox
+ focusbox
+ textfont
+ selection-textcolor
+ buttoncolor
+ labelcolor
+ highlight-color
+ highlight-textcolor
+ textsize
+ leading
+ scrollbar-align
+ scrollbar-width
))
--- /project/cl-fltk/cvsroot/cl-fltk/src/progressbar.lisp 2006/02/27 08:26:41 1.1
+++ /project/cl-fltk/cvsroot/cl-fltk/src/progressbar.lisp 2006/03/02 07:24:21 1.2
@@ -22,13 +22,14 @@
:double max
:double step))
;;step is allready used as function name so here is renamed to preogressbar-step
-(defmethod progressbar-step ((pb ProgressBar) (step double-float))
- (cffi:foreign-funcall "fl_progressbar_step"
- :pointer (cl-fltk:foreign-object pb)
- :double step))
+(defmethod progressbar-step ((pb ProgressBar) &optional step)
+ (if step
+ (cffi:foreign-funcall "fl_progressbar_step"
+ :pointer (cl-fltk:foreign-object pb)
+ :double step)
+ (cffi:foreign-funcall "fl_progressbar_get_step"
+ :pointer (cl-fltk:foreign-object pb))))
- ;void fl_progressbar_position(ProgressBar* pb, double pos);
-; double fl_progressbar_get_position(ProgressBar* pb);
(defmethod progressbar-position ((pb ProgressBar) &optional position)
(if position
(cffi:foreign-funcall "fl_progressbar_position"
@@ -37,14 +38,34 @@
(cffi:foreign-funcall "fl_progressbar_get_position"
:pointer (cl-fltk:foreign-object pb) :double))
+(defmethod progressbar-minimum ((pb ProgressBar) &optional nm)
+ (if nm
+ (cffi:foreign-funcall "fl_progressbar_minimum"
+ :pointer (cl-fltk:foreign-object pb)
+ :double nm))
+ (cffi:foreign-funcall "fl_progressbar_get_minimum"
+ :pointer (cl-fltk:foreign-object pb) :double))
+
+(defmethod progressbar-maximum ((pb ProgressBar) &optional nm)
+ (if nm
+ (cffi:foreign-funcall "fl_progressbar_maximum"
+ :pointer (cl-fltk:foreign-object pb)
+ :double nm))
+ (cffi:foreign-funcall "fl_progressbar_get_maximum"
+ :pointer (cl-fltk:foreign-object pb) :double))
-;;TODO
- ;double fl_progressbar_get_minimum(ProgressBar* pb);
-; double fl_progressbar_get_maximum(ProgressBar* pb);
- ; void fl_progressbar_minimum(ProgressBar* pb, double nm);
- ;void fl_progressbar_maximum(ProgressBar* pb, double nm);
- ; double fl_progressbar_get_step(ProgressBar* pb);
-; void fl_progressbar_showtext(ProgressBar* pb, bool st);
- ; bool fl_progressbar_get_showtext(ProgressBar* pb);
- ;void fl_progressbar_text_color(ProgressBar* pb, Color col);
-; Color fl_progressbar_get_text_color(ProgressBar* pb);
+(defmethod progressbar-showtext ((pb ProgressBar) &optional flag)
+ (if flag
+ (cffi:foreign-funcall "fl_progressbar_showtext"
+ :pointer (cl-fltk:foreign-object pb)
+ :boolean flag))
+ (cffi:foreign-funcall "fl_progressbar_get_showtext"
+ :pointer (cl-fltk:foreign-object pb) :boolean))
+
+(defmethod progressbar-text-color ((pb ProgressBar) &optional color)
+ (if color
+ (cffi:foreign-funcall "fl_progressbar_text_color"
+ :pointer (cl-fltk:foreign-object pb)
+ :int color))
+ (cffi:foreign-funcall "fl_progressbar_get_text_color"
+ :pointer (cl-fltk:foreign-object pb) :int))
--- /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/02/27 08:26:41 1.1
+++ /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/03/02 07:24:21 1.2
@@ -3,6 +3,10 @@
(defclass Widget (cl-fltk-object)
())
+(defconstant +RESERVED-TYPE+ #x64)
+(defconstant +GROUP-TYPE+ #xE0)
+(defconstant +WINDOW-TYPE+ #xF0)
+
(defun new-widget (x y width height text)
(let ((widget-instance (make-instance 'Widget )))
(setf (foreign-object widget-instance)
@@ -35,24 +39,24 @@
(defgeneric box (widget string))
-(defmethod box ((widget widget) box) ;specialize box param to MACPTR,SAP whatever, CL specific
+(defmethod box ((widget widget) box)
(cffi:foreign-funcall "fl_widget_box"
:pointer (cl-fltk:foreign-object widget)
:pointer box))
-(defgeneric labelfont (widget font));specialize type param to MACPTR,SAP whatever, CL specific
+(defgeneric labelfont (widget font))
(defmethod labelfont ((widget Widget) font)
(cffi:foreign-funcall "fl_widget_labelfont"
:pointer (cl-fltk:foreign-object widget)
- :string font))
+ :pointer font))
(defgeneric labeltype (widget type))
-(defmethod labeltype ((widget Widget) type);specialize type param to MACPTR,SAP whatever, CL specific
+(defmethod labeltype ((widget Widget) type)
(cffi:foreign-funcall "fl_widget_labeltype"
:pointer (cl-fltk:foreign-object widget)
- :string type))
+ :pointer type))
(defgeneric labelsize (widget size))
@@ -85,3 +89,63 @@
(cffi:foreign-funcall "fl_widget_textcolor"
:pointer (cl-fltk:foreign-object widget)
:int color))
+
+(defmethod buttonbox ((widget Widget) box)
+ (cffi:foreign-funcall "fl_widget_buttonbox"
+ :pointer (cl-fltk:foreign-object widget)
+ :pointer box))
+
+(defmethod focusbox ((widget Widget) box)
+ (cffi:foreign-funcall "fl_widget_focusbox"
+ :pointer (cl-fltk:foreign-object widget)
+ :pointer box))
+
+(defmethod textfont ((widget Widget) font)
+ (cffi:foreign-funcall "fl_widget_textfont"
+ :pointer (cl-fltk:foreign-object widget)
+ :pointer font))
+
+(defmethod selection-textcolor ((widget Widget) color)
+ (cffi:foreign-funcall "fl_widget_selection_textcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color))
+
+(defmethod buttoncolor ((widget Widget) color)
+ (cffi:foreign-funcall "fl_widget_buttoncolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color))
+
+(defmethod labelcolor ((widget Widget) color)
+ (cffi:foreign-funcall "fl_widget_labelcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color))
+
+(defmethod highlight-color ((widget Widget) color)
+ (cffi:foreign-funcall "fl_widget_highlight_color"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color))
+
+(defmethod highlight-textcolor ((widget Widget) color)
+ (cffi:foreign-funcall "fl_widget_highlight_textcolor"
+ :pointer (cl-fltk:foreign-object widget)
+ :int color))
+
+(defmethod textsize ((widget Widget) (size float))
+ (cffi:foreign-funcall "fl_widget_textsize"
+ :pointer (cl-fltk:foreign-object widget)
+ :float size))
+
+(defmethod leading ((widget Widget) (leading float))
+ (cffi:foreign-funcall "fl_widget_leading"
+ :pointer (cl-fltk:foreign-object widget)
+ :float leading))
+
+(defmethod scrollbar-align ((widget Widget) c)
+ (cffi:foreign-funcall "fl_widget_scrollbar_align"
+ :pointer (cl-fltk:foreign-object widget)
+ :unsigned-char c))
+
+(defmethod scrollbar-width ((widget Widget) c)
+ (cffi:foreign-funcall "fl_widget_scrollbar_width"
+ :pointer (cl-fltk:foreign-object widget)
+ :unsigned-char c))
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/wrapper
In directory clnet:/tmp/cvs-serv18184/wrapper
Added Files:
Makefile ask.cc ask.h button.cc button.h cl-fltk.h group.cc
group.h progressbar.cc progressbar.h run.cc run.h style.cc
style.h widget.cc widget.h window.cc window.h
Log Message:
Initial import
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/Makefile 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/Makefile 2006/02/27 08:26:42 1.1
CXX=g++
CXXFLAGS=`fltk-config --cflags` -O2 -Wall -fPIC -I. -D DEBUG
OSTYPE=$(shell uname)
ifeq ($(OSTYPE), Darwin)
#when using fltk-config --ldflags complains about missing file for -lsupc++
LIBS=`fltk-config --libs` -lpthread -framework Carbon -framework ApplicationServices
SHARED=-dynamiclib
else
#linux
LIBS=`fltk-config --ldstaticflags`
SHARED=-shared
endif
AR=ar cr
FLTK_WRAPPER_LIB=libcl-fltk.so
FLTK_WRAPPER_STATIC_LIB=libcl-fltk.a
TEST_LDFLAGS=-L. -lcl-fltk `fltk-config --libs`
SOURCES=\
run.cc\
window.cc\
button.cc\
group.cc\
widget.cc\
style.cc\
ask.cc\
progressbar.cc
TESTS=\
test/hello\
test/helloask\
test/progressbar
TEST_OBJS=$(TESTS:=.o)
all: $(FLTK_WRAPPER_LIB) $(FLTK_WRAPPER_STATIC_LIB)
test: $(TESTS) all
include $(SOURCES:.cc=.d)
$(TESTS): $(FLTK_WRAPPER_LIB) $(TEST_OBJS)
$(CXX) -o $@ $(@:=.o) $(CXXFLAGS) $(LIBS) $(TEST_LDFLAGS)
fltk-config --post $@
$(FLTK_WRAPPER_LIB): $(SOURCES:.cc=.o)
$(CXX) $(SHARED) $^ -o $@ $(LIBS)
$(FLTK_WRAPPER_STATIC_LIB): $(SOURCES:.cc=.o)
$(AR) $@ $^
clean:
rm -f *.o *.d cl-fltk.so
rm -f $(TESTS) $(TESTS:=.o)
%.d: %.cc
$(CXX) -MM $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/ask.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/ask.cc 2006/02/27 08:26:42 1.1
#include "ask.h"
int fl_ask_ask(char* message)
{
debug("%s:%s %s\n", __FILE__, __FUNCTION__, message);
return ask(message);
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/ask.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/ask.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_ASK_H_
#define _CLFLTK_ASK_H_
#include "cl-fltk.h"
#include <fltk/ask.h>
using namespace fltk;
extern "C" int fl_ask_ask(char*);
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/button.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/button.cc 2006/02/27 08:26:42 1.1
#include "button.h"
Button* new_button(int x,int y,int w,int h,const char *text)
{
debug("%s:%s %d, %d, %d, %d, %s\n", __FILE__, __FUNCTION__, x, y, w, h, text);
return new Button(x, y, w, h, text);
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/button.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/button.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_BUTTON_H_
#define _CLFLTK_BUTTON_H_
#include "cl-fltk.h"
#include <fltk/Button.h>
using namespace fltk;
extern "C" Button* new_button(int x,int y,int w,int h,const char *text);
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/cl-fltk.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/cl-fltk.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_H_
#define _CLFLTK_H_
#ifdef DEBUG
#include <stdio.h>
#define debug(...) fprintf(stderr, __VA_ARGS__)
#else
#define debug(...)
#endif
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/group.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/group.cc 2006/02/27 08:26:42 1.1
#include "group.h"
void fl_group_end(Group *group)
{
debug("%s:%s %x\n", __FILE__, __FUNCTION__, (unsigned int) group);
group->end();
}
void fl_group_begin(Group *group)
{
debug("%s:%s %x\n", __FILE__, __FUNCTION__, (unsigned int) group);
group->begin();
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/group.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/group.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_GROUP_CLASS_H_
#define _CLFLTK_GROUP_CLASS_H_
#include "cl-fltk.h"
#include <FL/Fl_Group.H>
using namespace fltk;
extern "C" void fl_group_end(Group *group);
extern "C" void fl_group_begin(Group *group);
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/progressbar.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/progressbar.cc 2006/02/27 08:26:42 1.1
#include "progressbar.h"
#include <stdio.h>
ProgressBar* new_progressbar(int x, int y, int w, int h, const char *lbl = 0)
{
return new ProgressBar(x, y, w, h, lbl);
}
void fl_progressbar_range(ProgressBar* pb, double min, double max, double step = 1)
{
pb->range(min, max, step);
}
void fl_progressbar_step(ProgressBar* pb, double step)
{
pb->step(step);
}
double fl_progressbar_get_minimum(ProgressBar* pb)
{
return pb->minimum();
}
double fl_progressbar_get_maximum(ProgressBar* pb)
{
return pb->maximum();
}
void fl_progressbar_minimum(ProgressBar* pb, double nm)
{
pb->minimum(nm);
}
void fl_progressbar_maximum(ProgressBar* pb, double nm)
{
pb->maximum(nm);
}
double fl_progressbar_get_position(ProgressBar* pb)
{
return pb->position();
}
double fl_progressbar_get_step(ProgressBar* pb)
{
return pb->step();
}
void fl_progressbar_position(ProgressBar* pb, double pos)
{
pb->position(pos);
}
void fl_progressbar_showtext(ProgressBar* pb, bool st)
{
pb->showtext(st);
}
bool fl_progressbar_get_showtext(ProgressBar* pb)
{
return pb->showtext();
}
void fl_progressbar_text_color(ProgressBar* pb, Color col)
{
pb->text_color(col);
}
Color fl_progressbar_get_text_color(ProgressBar* pb)
{
return pb->text_color();
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/progressbar.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/progressbar.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_PROGRESSBAR_H_
#define _CLFLTK_PROGRESSBAR_H_
#include "fltk/ProgressBar.h"
using namespace fltk;
extern "C" {
ProgressBar* new_progressbar(int x, int y, int w, int h, const char *lbl);
void fl_progressbar_range(ProgressBar* pb, double min, double max, double step);
void fl_progressbar_step(ProgressBar* pb, double step);
double fl_progressbar_get_minimum(ProgressBar* pb);
double fl_progressbar_get_maximum(ProgressBar* pb);
void fl_progressbar_minimum(ProgressBar* pb, double nm);
void fl_progressbar_maximum(ProgressBar* pb, double nm);
double fl_progressbar_get_position(ProgressBar* pb);
double fl_progressbar_get_step(ProgressBar* pb);
void fl_progressbar_position(ProgressBar* pb, double pos);
void fl_progressbar_showtext(ProgressBar* pb, bool st);
bool fl_progressbar_get_showtext(ProgressBar* pb);
void fl_progressbar_text_color(ProgressBar* pb, Color col);
Color fl_progressbar_get_text_color(ProgressBar* pb);
}
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/run.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/run.cc 2006/02/27 08:26:42 1.1
#include "run.h"
void callback(Widget *w, Callback* c, void* p)
{
debug("%s:%s: %x, %x, %x\n", __FILE__, __FUNCTION__, (unsigned int)w, (unsigned int)c, (unsigned int)p);
w->callback(c,p);
}
void fl_run()
{
debug("%s:%s\n", __FILE__, __FUNCTION__);
run();
}
void fl_run_add_timeout(float t,TimeoutHandler* th, void* v=0)
{
debug("%s:%s: %f, %x, %x\n", __FILE__, __FUNCTION__, t, (unsigned int)th, (unsigned int)v);
add_timeout(t, *th, v);
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/run.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/run.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_FL_H_
#define _CLFLTK_FL_H_
#include "cl-fltk.h"
#include <fltk/run.h>
using namespace fltk;
#include <fltk/Widget.h>
extern "C" {
void callback(Widget* w, Callback* c, void* p) ;
void fl_run();
void fl_run_add_timeout(float t, TimeoutHandler*, void* v);
}
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/style.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/style.cc 2006/02/27 08:26:42 1.1
#include "style.h"
Box *__UP_BOX = UP_BOX;
Box *__DOWN_BOX = DOWN_BOX;
Box *__THIN_UP_BOX = THIN_UP_BOX;
Box *__THIN_DOWN_BOX = THIN_DOWN_BOX;
Box *__ENGRAVED_BOX = ENGRAVED_BOX;
Box *__EMBOSSED_BOX = EMBOSSED_BOX;
Box *__BORDER_BOX = BORDER_BOX;
Box *__FLAT_BOX = FLAT_BOX;
Box *__HIGHLIGHT_UP_BOX = HIGHLIGHT_UP_BOX;
Box *__HIGHLIGHT_DOWN_BOX = HIGHLIGHT_DOWN_BOX;
Box *__ROUND_UP_BOX = ROUND_UP_BOX;
Box *__ROUND_DOWN_BOX = ROUND_DOWN_BOX;
Box *__DIAMOND_UP_BOX = DIAMOND_UP_BOX;
Box *__DIAMOND_DOWN_BOX = DIAMOND_DOWN_BOX;
Box *__NO_BOX = NO_BOX;
Box *__SHADOW_BOX = SHADOW_BOX;
Box *__ROUNDED_BOX = ROUNDED_BOX;
Box *__RSHADOW_BOX = RSHADOW_BOX;
Box *__RFLAT_BOX = RFLAT_BOX;
Box *__OVAL_BOX = OVAL_BOX;
Box *__OSHADOW_BOX = OSHADOW_BOX;
Box *__OFLAT_BOX = OFLAT_BOX;
Box *__BORDER_FRAME = BORDER_FRAME;
Box *__DOTTED_FRAME = DOTTED_FRAME;
Box *__PLASTIC_UP_BOX = PLASTIC_UP_BOX;
Box *__PLASTIC_DOWN_BOX = PLASTIC_DOWN_BOX;
Font *__HELVETICA = HELVETICA;
Font *__HELVETICA_BOLD = HELVETICA_BOLD;
Font *__HELVETICA_ITALIC = HELVETICA_ITALIC;
Font *__HELVETICA_BOLD_ITALIC = HELVETICA_BOLD_ITALIC;
Font *__COURIER = COURIER;
Font *__COURIER_BOLD = COURIER_BOLD;
Font *__COURIER_ITALIC = COURIER_ITALIC;
Font *__COURIER_BOLD_ITALIC = COURIER_BOLD_ITALIC;
Font *__TIMES = TIMES;
Font *__TIMES_BOLD = TIMES_BOLD;
Font *__TIMES_ITALIC = TIMES_ITALIC;
Font *__TIMES_BOLD_ITALIC = TIMES_BOLD_ITALIC;
Font *__SYMBOL_FONT = SYMBOL_FONT;
Font *__SCREEN_FONT = SCREEN_FONT;
Font *__SCREEN_BOLD_FONT = SCREEN_BOLD_FONT;
Font *__ZAPF_DINGBATS = ZAPF_DINGBATS;
LabelType *__NO_LABEL = NO_LABEL;
LabelType *__NORMAL_LABEL = NORMAL_LABEL;
LabelType *__SYMBOL_LABEL = SYMBOL_LABEL; // same as NORMAL_LABEL
LabelType *__SHADOW_LABEL = SHADOW_LABEL;
LabelType *__ENGRAVED_LABEL = ENGRAVED_LABEL;
LabelType *__EMBOSSED_LABEL = EMBOSSED_LABEL;
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/style.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/style.h 2006/02/27 08:26:42 1.1
#ifndef _CLFLTK_STYLE_H_
#define _CLFLTK_STYLE_H_
#include "cl-fltk.h"
#include <fltk/Widget.h>
using namespace fltk;
extern "C" Box *__UP_BOX;
extern "C" Box *__UP_BOX;
extern "C" Box *__DOWN_BOX;
extern "C" Box *__THIN_UP_BOX;
extern "C" Box *__THIN_DOWN_BOX;
extern "C" Box *__ENGRAVED_BOX;
extern "C" Box *__EMBOSSED_BOX;
extern "C" Box *__BORDER_BOX;
extern "C" Box *__FLAT_BOX;
extern "C" Box *__HIGHLIGHT_UP_BOX;
extern "C" Box *__HIGHLIGHT_DOWN_BOX;
extern "C" Box *__ROUND_UP_BOX;
extern "C" Box *__ROUND_DOWN_BOX;
extern "C" Box *__DIAMOND_UP_BOX;
extern "C" Box *__DIAMOND_DOWN_BOX;
extern "C" Box *__NO_BOX;
extern "C" Box *__SHADOW_BOX;
extern "C" Box *__ROUNDED_BOX;
extern "C" Box *__RSHADOW_BOX;
extern "C" Box *__RFLAT_BOX;
extern "C" Box *__OVAL_BOX;
extern "C" Box *__OSHADOW_BOX;
extern "C" Box *__OFLAT_BOX;
extern "C" Box *__BORDER_FRAME;
extern "C" Box *__DOTTED_FRAME;
extern "C" Box *__PLASTIC_UP_BOX;
extern "C" Box *__PLASTIC_DOWN_BOX;
extern "C" Font *__HELVETICA;
extern "C" Font *__HELVETICA_BOLD;
extern "C" Font *__HELVETICA_ITALIC;
extern "C" Font *__HELVETICA_BOLD_ITALIC;
extern "C" Font *__COURIER;
extern "C" Font *__COURIER_BOLD;
extern "C" Font *__COURIER_ITALIC;
extern "C" Font *__COURIER_BOLD_ITALIC;
extern "C" Font *__TIMES;
extern "C" Font *__TIMES_BOLD;
extern "C" Font *__TIMES_ITALIC;
extern "C" Font *__TIMES_BOLD_ITALIC;
extern "C" Font *__SYMBOL_FONT;
extern "C" Font *__SCREEN_FONT;
extern "C" Font *__SCREEN_BOLD_FONT;
extern "C" Font *__ZAPF_DINGBATS;
extern "C" LabelType *__NO_LABEL;
extern "C" LabelType *__NORMAL_LABEL;
extern "C" LabelType *__SYMBOL_LABEL;
extern "C" LabelType *__SHADOW_LABEL;
extern "C" LabelType *__ENGRAVED_LABEL;
extern "C" LabelType *__EMBOSSED_LABEL;
#endif
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.cc 2006/02/27 08:26:42 1.1
#include "widget.h"
Widget* new_widget(int x, int y, int width, int height, const char* text)
{
debug("%s:%s %d, %d, %d, %d, %s\n", __FILE__, __FUNCTION__, x, y, width, height, text);
return new Widget(x, y, width, height, text);
}
void fl_widget_box(Widget* widget, Box* box)
{
debug("%s:%s %x, %x\n", __FILE__, __FUNCTION__, (unsigned int)widget, (unsigned int)box);
widget->box(box);
}
void fl_widget_labelfont(Widget* widget, Font* labelfont)
[64 lines skipped]
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/widget.h 2006/02/27 08:26:42 1.1
[91 lines skipped]
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/window.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/window.cc 2006/02/27 08:26:42 1.1
[104 lines skipped]
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/window.h 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/window.h 2006/02/27 08:26:42 1.1
[118 lines skipped]
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/wrapper/test
In directory clnet:/tmp/cvs-serv18184/wrapper/test
Added Files:
hello.cc helloask.cc progressbar.cc
Log Message:
Initial import
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/hello.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/hello.cc 2006/02/27 08:26:42 1.1
#include "run.h"
#include "window.h"
#include "group.h"
#include "widget.h"
#include "style.h"
int main(int argc , char **argv)
{
Window* window;
Widget* box;
window = new_window(300,180, "bla");
fl_group_begin(window);
box = new_widget(20, 40, 260, 100, "Hello, World!");
fl_widget_box(box, __UP_BOX);
fl_widget_labelfont(box, __HELVETICA_BOLD_ITALIC);
fl_widget_labelsize(box, 36);
fl_widget_labeltype(box, __SHADOW_LABEL);
fl_group_end(window);
fl_window_show(window, argc, argv);
fl_run();
return 0;
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/helloask.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/helloask.cc 2006/02/27 08:26:42 1.1
#include "run.h"
#include "window.h"
#include "group.h"
#include "widget.h"
#include "style.h"
#include "ask.h"
#include <stdlib.h>
void hello(Widget *w, void *data)
{
if(fl_ask_ask("bla"))
{
exit(0);
}
}
int main(int argc , char **argv)
{
Window* window;
Widget* box;
window = new_window(300,180, "bla");
callback(window, hello, 0);
fl_group_begin(window);
box = new_widget(20, 40, 260, 100, "Hello, World!");
fl_widget_box(box, __UP_BOX);
fl_widget_labelfont(box, __HELVETICA_BOLD_ITALIC);
fl_widget_labelsize(box, 36);
fl_widget_labeltype(box, __SHADOW_LABEL);
fl_group_end(window);
fl_window_show(window, argc, argv);
fl_run();
return 0;
}
--- /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/progressbar.cc 2006/02/27 08:26:42 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/wrapper/test/progressbar.cc 2006/02/27 08:26:42 1.1
#include "run.h"
#include "window.h"
#include "group.h"
#include "widget.h"
#include "style.h"
#include "progressbar.h"
Window* w;
static void ptimer(void *o)
{
ProgressBar *pbar = (ProgressBar *)o;
if(pbar->position() < 100)
{
pbar->step(1);
add_timeout(0.1, ptimer, (void *)pbar);
}
else
w->hide();
}
int main(int argc, char **argv) {
ProgressBar* pbar;
{
Window* o = new_window(400, 100);
o->begin();
w = o;
{ ProgressBar* o = new_progressbar(25, 25, 330, 25, "Simple Progress Bar");
pbar = o;
fl_widget_box(o, ENGRAVED_BOX);
fl_widget_clear_flag(o, ALIGN_MASK);
fl_widget_set_flag(o, ALIGN_BOTTOM);
fl_widget_selection_color(o, BLUE);
fl_widget_color(o, WHITE);
fl_widget_textcolor(o, RED);
}
o->end();
}
add_timeout(0.1, ptimer, (void *)pbar);
w->show(argc, argv);
return run();
}
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/test
In directory clnet:/tmp/cvs-serv18184/test
Added Files:
button.lisp hello.lisp helloask.lisp progressbar.lisp
Log Message:
Initial import
--- /project/cl-fltk/cvsroot/cl-fltk/test/button.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/test/button.lisp 2006/02/27 08:26:41 1.1
(require :asdf)
(asdf:operate 'asdf:load-op 'cffi)
(asdf:operate 'asdf:load-op 'cl-fltk)
(defvar window)
(defvar b1)
(defvar b2)
(defvar b3)
(cffi:defcallback beepcb :void ((widget :pointer) (data :pointer))
(format t "beep!~%"))
(cffi:defcallback exitcb :void ((widget :pointer) (data :pointer))
(quit))
(setf window (fl:new-window 320 65 "bla"))
(fl:begin window)
(setf b1 (fl:new-button 20 20 80 25 "&Beep"))
(fl:callback b1 'beepcb 0)
(setf b2 (fl:new-button 120 20 80 25 "&no op"))
(setf b3 (fl:new-button 220 20 80 25 "E&xit"))
(fl:callback b3 'exitcb 0)
(fl:end window)
(fl:show window)
(fl::run)
(quit)
--- /project/cl-fltk/cvsroot/cl-fltk/test/hello.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/test/hello.lisp 2006/02/27 08:26:41 1.1
(require :asdf)
(asdf:operate 'asdf:load-op 'cffi)
(asdf:operate 'asdf:load-op 'cl-fltk)
(defvar window)
(defvar box)
(setf window (cl-fltk:new-window 300 180 "bla"))
(cl-fltk:begin window)
(setf box (cl-fltk:new-widget 20 40 260 100 "Hello, World!"))
(cl-fltk:box box cl-fltk:+UP-BOX+)
(cl-fltk:labelfont box cl-fltk:+HELVETICA-BOLD-ITALIC+)
(cl-fltk:labelsize box 36.0)
(cl-fltk:labeltype box cl-fltk:+SHADOW-LABEL+)
(cl-fltk:end window)
(cl-fltk:show window)
(cl-fltk::run)
(quit)
--- /project/cl-fltk/cvsroot/cl-fltk/test/helloask.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/test/helloask.lisp 2006/02/27 08:26:41 1.1
(require :asdf)
(asdf:operate 'asdf:load-op 'cffi)
(asdf:operate 'asdf:load-op 'cl-fltk)
(defvar window)
(defvar box)
(cffi:defcallback hello :void ((widget :pointer))
(if (= (cl-fltk:ask "Quit app?") 1)
(cl-fltk:hide widget)))
(setf window (cl-fltk:new-window 300 180 "bla"))
(cl-fltk:callback window 'hello)
(cl-fltk:begin window)
(setf box (cl-fltk:new-widget 20 40 260 100 "Hello, World!"))
(cl-fltk:box box cl-fltk:+UP-BOX+)
(cl-fltk:labelfont box cl-fltk:+HELVETICA-BOLD-ITALIC+)
(cl-fltk:labelsize box 36.0)
(cl-fltk:labeltype box cl-fltk:+SHADOW-LABEL+)
(cl-fltk:end window)
(cl-fltk:show window)
(cl-fltk::run)
(quit)
--- /project/cl-fltk/cvsroot/cl-fltk/test/progressbar.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/test/progressbar.lisp 2006/02/27 08:26:41 1.1
(require :asdf)
(asdf:operate 'asdf:load-op 'cffi)
(asdf:operate 'asdf:load-op 'cl-fltk)
(defvar window)
(defvar pbar)
(cffi:defcallback ptimer :void ((ignored :pointer))
(let ((position (fl:progressbar-position pbar)))
(if (or (not position)
(< position 100))
(progn
(fl:progressbar-step pbar 1.0D0)
(fl:add-timeout 0.1 'ptimer (cffi:null-pointer)))
(fl:hide window))))
(setf window (fl:new-window 400 100 "ProgressBar Demo"))
(fl:begin window)
(setf pbar (fl:new-progressbar 25 25 330 25 "Simple Progress Bar"))
(fl:box pbar fl:+ENGRAVED-BOX+)
(fl:clear-flag pbar fl:+ALIGN-MASK+)
(fl:set-flag pbar fl:+ALIGN-BOTTOM+)
(fl:selection-color pbar fl:+BLUE+)
(fl:color pbar fl:+WHITE+)
(fl:textcolor pbar fl:+RED+)
(fl:end window)
(fl:add-timeout 0.1 'ptimer (cffi:null-pointer))
(fl:show window)
(fl::run)
(quit)
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk
In directory clnet:/tmp/cvs-serv18184
Added Files:
Makefile cl-fltk.asd
Log Message:
Initial import
--- /project/cl-fltk/cvsroot/cl-fltk/Makefile 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/Makefile 2006/02/27 08:26:41 1.1
all:
make -C wrapper
clean:
make -C wrapper clean--- /project/cl-fltk/cvsroot/cl-fltk/cl-fltk.asd 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/cl-fltk.asd 2006/02/27 08:26:41 1.1
(defpackage #:cl-fltk-system
(:use #:cl #:asdf))
(in-package #:cl-fltk-system)
(defsystem cl-fltk
:description "CFFI Bindings For FLTK "
:author "Dario Lah <dlah(a)linux.hr>"
:version "0.1.0"
:licence "BSD"
:perform (load-op :after (op cl-fltk)
(pushnew :cl-fltk cl:*features*))
:components ((:module src
:components
((:file "package")
(:file "cl-fltk" :depends-on ("package"))
(:file "run" :depends-on ("cl-fltk"))
(:file "widget" :depends-on ("cl-fltk"))
(:file "group" :depends-on ("widget"))
(:file "button" :depends-on ("widget"))
(:file "window" :depends-on ("group"))
(:file "style" :depends-on ("package"))
(:file "color" :depends-on ("package"))
(:file "flags" :depends-on ("package"))
(:file "progressbar" :depends-on ("widget"))
(:file "ask" :depends-on ("package")))))
:depends-on (:cffi))
1
0
Update of /project/cl-fltk/cvsroot/cl-fltk/src
In directory clnet:/tmp/cvs-serv18184/src
Added Files:
ask.lisp button.lisp cl-fltk.lisp color.lisp flags.lisp
group.lisp package.lisp progressbar.lisp run.lisp style.lisp
widget.lisp window.lisp
Log Message:
Initial import
--- /project/cl-fltk/cvsroot/cl-fltk/src/ask.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/ask.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defun ask (text)
(cffi:foreign-funcall "fl_ask_ask"
:pointer (cffi:foreign-string-alloc text)
:int))
--- /project/cl-fltk/cvsroot/cl-fltk/src/button.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/button.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defclass Button (Widget)
())
(defun new-button (x y width height text)
(let ((button-instance (make-instance 'Button )))
(setf (slot-value button-instance 'foreign-object)
(cffi:foreign-funcall "new_button"
:int x
:int y
:int width
:int height
:pointer (cffi:foreign-string-alloc text) :pointer))
button-instance))
--- /project/cl-fltk/cvsroot/cl-fltk/src/cl-fltk.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/cl-fltk.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defclass cl-fltk-object ()
((foreign-object :accessor foreign-object)))
(cffi:define-foreign-library libcl-fltk
(:darwin "wrapper/libcl-fltk.so")
(:unix "wrapper/libcl-fltk.so"))
(cffi:load-foreign-library 'libcl-fltk)
--- /project/cl-fltk/cvsroot/cl-fltk/src/color.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/color.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defconstant +NO_COLOR+ 0)
(defconstant +GRAY00+ 32)
(defconstant +GRAY05+ 33)
(defconstant +GRAY10+ 34)
(defconstant +GRAY15+ 35)
(defconstant +GRAY20+ 36)
(defconstant +GRAY25+ 37)
(defconstant +GRAY30+ 38)
(defconstant +GRAY33+ 39)
(defconstant +GRAY35+ 40)
(defconstant +GRAY40+ 41)
(defconstant +GRAY45+ 42)
(defconstant +GRAY50+ 43)
(defconstant +GRAY55+ 44)
(defconstant +GRAY60+ 45)
(defconstant +GRAY65+ 46)
(defconstant +GRAY66+ 47)
(defconstant +GRAY70+ 48)
(defconstant +GRAY75+ 49)
(defconstant +GRAY80+ 50)
(defconstant +GRAY85+ 51)
(defconstant +GRAY90+ 53)
(defconstant +GRAY95+ 54)
(defconstant +GRAY99+ 55)
(defconstant +BLACK+ #x38)
(defconstant +RED+ #x58)
(defconstant +GREEN+ #x3F)
(defconstant +YELLOW+ #x5F)
(defconstant +BLUE+ #xD8)
(defconstant +MAGENTA+ #xF8)
(defconstant +CYAN+ #xDF)
(defconstant +WHITE+ #xFF)
(defconstant +WINDOWS_BLUE+ #x88)
;inline Color color(unsigned char r, unsigned char g, unsigned char b) {
;FL_API Color color(const char*);
;FL_API Color lerp(Color c0, Color c1, float f);
;FL_API Color inactive(Color);
;FL_API Color inactive(Color, Flags f);
;FL_API Color contrast(Color fg, Color bg);
;FL_API void split_color(Color c, unsigned char& r, unsigned char& g, unsigned char& b);
;FL_API void set_color_index(Color index, Color);
;FL_API Color get_color_index(Color index);
;FL_API void set_background(Color);
;FL_API Color nearest_index(Color);
--- /project/cl-fltk/cvsroot/cl-fltk/src/flags.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/flags.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defconstant +NO-FLAGS+ 0)
(defconstant +ALIGNCENTER+ 0)
(defconstant +ALIGN-TOP+ 1)
(defconstant +ALIGN-BOTTOM+ 2)
(defconstant +ALIGN-LEFTTOP+ 3)
(defconstant +ALIGN-LEFT+ 4)
(defconstant +ALIGN-TOPLEFT+ 5)
(defconstant +ALIGN-BOTTOMLEFT+ 6)
(defconstant +ALIGN-LEFTBOTTOM+ 7)
(defconstant +ALIGN-RIGHT+ 8)
(defconstant +ALIGN-TOPRIGHT+ 9)
(defconstant +ALIGN-BOTTOMRIGHT+ 10)
(defconstant +ALIGN-RIGHTTOP+ 11)
(defconstant +ALIGN-CENTERLEFT+ 12)
(defconstant +ALIGN-RIGHTBOTTOM+ 15)
(defconstant +ALIGN-INSIDE+ 16)
(defconstant +ALIGN-INSIDE-TOP+ 17)
(defconstant +ALIGN-INSIDE-BOTTOM+ 18)
(defconstant +ALIGN-INSIDE-LEFT+ 20)
(defconstant +ALIGN-INSIDE-TOPLEFT+ 21)
(defconstant +ALIGN-INSIDE-BOTTOMLEFT+ 22)
(defconstant +ALIGN-INSIDE-RIGHT+ 24)
(defconstant +ALIGN-INSIDE-TOPRIGHT+ 25)
(defconstant +ALIGN-INSIDE-BOTTOMRIGHT+ 26)
(defconstant +ALIGN-CLIP+ #x00000040)
(defconstant +ALIGN-WRAP+ #x00000080)
(defconstant +ALIGN-MASK+ #x000000FF)
(defconstant +NOTACTIVE+ #x00000100)
(defconstant +OUTPUT+ #x00000200)
(defconstant +VALUE+ #x00000400)
(defconstant +SELECTED+ #x00000800)
(defconstant +INVISIBLE+ #x00001000)
(defconstant +HIGHLIGHT+ #x00002000)
(defconstant +CHANGED+ #x00004000)
(defconstant +COPIED-LABEL+ #x00008000)
(defconstant +RAW-LABEL+ #x00010000)
(defconstant +LAYOUT-VERTICAL+ #x00020000)
(defconstant +TAB-TO-FOCUS+ #x00040000)
(defconstant +CLICK-TO-FOCUS+ #x00080000)
(defconstant +INACTIVE+ #x00100000)
(defconstant +FOCUSED+ #x00200000)
(defconstant +PUSHED+ #x00400000)
--- /project/cl-fltk/cvsroot/cl-fltk/src/group.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/group.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defclass Group (Widget)
())
(defgeneric begin (group))
(defmethod begin ((group Group))
(cffi:foreign-funcall "fl_group_begin" :pointer (foreign-object group)))
(defgeneric end (group))
(defmethod end ((group Group))
(cffi:foreign-funcall "fl_group_end" :pointer (foreign-object group)))
--- /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/package.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-user)
(defpackage #:cl-fltk
(:use #:common-lisp)
(:nicknames fl fltk)
(:export
ProgressBar
+BORDER-BOX+
+BORDER-FRAME+
+COURIER+
+COURIER-BOLD+
+COURIER-BOLD-ITALIC+
+COURIER-ITALIC+
+DIAMOND-DOWN-BOX+
+DIAMOND-UP-BOX+
+DOTTED-FRAME+
+DOWN-BOX+
+EMBOSSED-BOX+
+EMBOSSED-LABEL+
+ENGRAVED-BOX+
+ENGRAVED-LABEL+
+FLAT-BOX+
+HELVETICA+
+HELVETICA-BOLD+
+HELVETICA-BOLD-ITALIC+
+HELVETICA-ITALIC+
+HIGHLIGHT-DOWN-BOX+
+HIGHLIGHT-UP-BOX+
+NO-BOX+
+NO-LABEL+
+NORMAL-LABEL+
+OFLAT-BOX+
+OSHADOW-BOX+
+OVAL-BOX+
+PLASTIC-DOWN-BOX+
+PLASTIC-UP-BOX+
+RFLAT-BOX+
+ROUND-DOWN-BOX+
+ROUND-UP-BOX+
+ROUNDED-BOX+
+RSHADOW-BOX+
+SCREEN-BOLD-FONT+
+SCREEN-FONT+
+SHADOW-BOX+
+SHADOW-LABEL+
+SYMBOL-FONT+
+SYMBOL-LABEL+
+THIN-DOWN-BOX+
+THIN-UP-BOX+
+TIMES+
+TIMES-BOLD+
+TIMES-BOLD-ITALIC+
+TIMES-ITALIC+
+UP-BOX+
+ZAPF-DINGBATS+
ask
begin
box
callback
end
foreign-object
hide
labelfont
labelsize
labeltype
new-button
new-widget
new-window
show
new-progressbar
progressbar-step
+NO-FLAGS+
+ALIGN-CENTER+
+ALIGN-TOP+
+ALIGN-BOTTOM+
+ALIGN-LEFTTOP+
+ALIGN-LEFT+
+ALIGN-TOPLEFT+
+ALIGN-BOTTOMLEFT+
+ALIGN-LEFTBOTTOM+
+ALIGN-RIGHT+
+ALIGN-TOPRIGHT+
+ALIGN-BOTTOMRIGHT+
+ALIGN-RIGHTTOP+
+ALIGN-CENTERLEFT+
+ALIGN-RIGHTBOTTOM+
+ALIGN-INSIDE+
+ALIGN-INSIDE-TOP+
+ALIGN-INSIDE-BOTTOM+
+ALIGN-INSIDE-LEFT+
+ALIGN-INSIDE-TOPLEFT+
+ALIGN-INSIDE-BOTTOMLEFT+
+ALIGN-INSIDE-RIGHT+
+ALIGN-INSIDE-TOPRIGHT+
+ALIGN-INSIDE-BOTTOMRIGHT+
+ALIGN-CLIP+
+ALIGN-WRAP+
+ALIGN-MASK+
+NOTACTIVE+
+OUTPUT+
+VALUE+
+SELECTED+
+INVISIBLE+
+HIGHLIGHT+
+CHANGED+
+COPIED-LABEL+
+RAW-LABEL+
+LAYOUT-VERTICAL+
+TAB-TO-FOCUS+
+CLICK-TO-FOCUS+
+INACTIVE+
+FOCUSED+
+PUSHED+
+NO-COLOR+
+GRAY00+
+GRAY05+
+GRAY10+
+GRAY15+
+GRAY20+
+GRAY25+
+GRAY30+
+GRAY33+
+GRAY35+
+GRAY40+
+GRAY45+
+GRAY50+
+GRAY55+
+GRAY60+
+GRAY65+
+GRAY66+
+GRAY70+
+GRAY75+
+GRAY80+
+GRAY85+
+GRAY90+
+GRAY95+
+GRAY99+
+BLACK+
+RED+
+GREEN+
+YELLOW+
+BLUE+
+MAGENTA+
+CYAN+
+WHITE+
+WINDOWS-BLUE+
progressbar-position
add-timeout
clear-flag
set-flag
selection-color
color
textcolor
))
--- /project/cl-fltk/cvsroot/cl-fltk/src/progressbar.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/progressbar.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defclass ProgressBar (Widget)
())
(defun new-progressbar (x y width height lbl)
(let ((progressbar-instance (make-instance 'ProgressBar )))
(setf (slot-value progressbar-instance 'foreign-object)
(cffi:foreign-funcall "new_progressbar"
:int x
:int y
:int width
:int height
:pointer (cffi:foreign-string-alloc lbl) :pointer))
progressbar-instance))
;;min int max int should be double
(defmethod range ((pb ProgressBar) (min double-float) (max double-float) &optional (step 1.0D0))
(cffi:foreign-funcall "fl_progressbar_range"
:pointer (cl-fltk:foreign-object pb)
:double min
:double max
:double step))
;;step is allready used as function name so here is renamed to preogressbar-step
(defmethod progressbar-step ((pb ProgressBar) (step double-float))
(cffi:foreign-funcall "fl_progressbar_step"
:pointer (cl-fltk:foreign-object pb)
:double step))
;void fl_progressbar_position(ProgressBar* pb, double pos);
; double fl_progressbar_get_position(ProgressBar* pb);
(defmethod progressbar-position ((pb ProgressBar) &optional position)
(if position
(cffi:foreign-funcall "fl_progressbar_position"
:pointer (cl-fltk:foreign-object pb)
:double position))
(cffi:foreign-funcall "fl_progressbar_get_position"
:pointer (cl-fltk:foreign-object pb) :double))
;;TODO
;double fl_progressbar_get_minimum(ProgressBar* pb);
; double fl_progressbar_get_maximum(ProgressBar* pb);
; void fl_progressbar_minimum(ProgressBar* pb, double nm);
;void fl_progressbar_maximum(ProgressBar* pb, double nm);
; double fl_progressbar_get_step(ProgressBar* pb);
; void fl_progressbar_showtext(ProgressBar* pb, bool st);
; bool fl_progressbar_get_showtext(ProgressBar* pb);
;void fl_progressbar_text_color(ProgressBar* pb, Color col);
; Color fl_progressbar_get_text_color(ProgressBar* pb);
--- /project/cl-fltk/cvsroot/cl-fltk/src/run.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/run.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(defun run ()
(cffi:foreign-funcall "fl_run"))
(defun add-timeout (timeout handler v)
(cffi:foreign-funcall "fl_run_add_timeout"
:float timeout
:pointer (cffi:foreign-alloc :pointer :initial-element (cffi:get-callback handler))
:pointer v))
--- /project/cl-fltk/cvsroot/cl-fltk/src/style.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/style.lisp 2006/02/27 08:26:41 1.1
(in-package #:cl-fltk)
(cffi:defcvar ("__UP_BOX" +UP-BOX+) :pointer)
(cffi:defcvar ("__DOWN_BOX" +DOWN-BOX+) :pointer)
(cffi:defcvar ("__THIN_UP_BOX" +THIN-UP-BOX+) :pointer)
(cffi:defcvar ("__THIN_DOWN_BOX" +THIN-DOWN-BOX+) :pointer)
(cffi:defcvar ("__ENGRAVED_BOX" +ENGRAVED-BOX+) :pointer)
(cffi:defcvar ("__EMBOSSED_BOX" +EMBOSSED-BOX+) :pointer)
(cffi:defcvar ("__BORDER_BOX" +BORDER-BOX+) :pointer)
(cffi:defcvar ("__FLAT_BOX" +FLAT-BOX+) :pointer)
(cffi:defcvar ("__HIGHLIGHT_UP_BOX" +HIGHLIGHT-UP-BOX+) :pointer)
(cffi:defcvar ("__HIGHLIGHT_DOWN_BOX" +HIGHLIGHT-DOWN-BOX+) :pointer)
(cffi:defcvar ("__ROUND_UP_BOX" +ROUND-UP-BOX+) :pointer)
(cffi:defcvar ("__ROUND_DOWN_BOX" +ROUND-DOWN-BOX+) :pointer)
(cffi:defcvar ("__DIAMOND_UP_BOX" +DIAMOND-UP-BOX+) :pointer)
(cffi:defcvar ("__DIAMOND_DOWN_BOX" +DIAMOND-DOWN-BOX+) :pointer)
(cffi:defcvar ("__NO_BOX" +NO-BOX+) :pointer)
(cffi:defcvar ("__SHADOW_BOX" +SHADOW-BOX+) :pointer)
(cffi:defcvar ("__ROUNDED_BOX" +ROUNDED-BOX+) :pointer)
(cffi:defcvar ("__RSHADOW_BOX" +RSHADOW-BOX+) :pointer)
(cffi:defcvar ("__RFLAT_BOX" +RFLAT-BOX+) :pointer)
(cffi:defcvar ("__OVAL_BOX" +OVAL-BOX+) :pointer)
(cffi:defcvar ("__OSHADOW_BOX" +OSHADOW-BOX+) :pointer)
(cffi:defcvar ("__OFLAT_BOX" +OFLAT-BOX+) :pointer)
(cffi:defcvar ("__BORDER_FRAME" +BORDER-FRAME+) :pointer)
(cffi:defcvar ("__DOTTED_FRAME" +DOTTED-FRAME+) :pointer)
(cffi:defcvar ("__PLASTIC_UP_BOX" +PLASTIC_UP-BOX+) :pointer)
(cffi:defcvar ("__PLASTIC_DOWN_BOX" +PLASTIC-DOWN-BOX+) :pointer)
(cffi:defcvar ("__HELVETICA" +HELVETICA+) :pointer)
(cffi:defcvar ("__HELVETICA_BOLD" +HELVETICA-BOLD+) :pointer)
(cffi:defcvar ("__HELVETICA_ITALIC" +HELVETICA-ITALIC+) :pointer)
(cffi:defcvar ("__HELVETICA_BOLD_ITALIC" +HELVETICA-BOLD-ITALIC+) :pointer)
(cffi:defcvar ("__COURIER" +COURIER+) :pointer)
(cffi:defcvar ("__COURIER_BOLD" +COURIER-BOLD+) :pointer)
(cffi:defcvar ("__COURIER_ITALIC" +COURIER-ITALIC+) :pointer)
(cffi:defcvar ("__COURIER_BOLD_ITALIC" +COURIER-BOLD-ITALIC+) :pointer)
(cffi:defcvar ("__TIMES" +TIMES+) :pointer)
(cffi:defcvar ("__TIMES_BOLD" +TIMES-BOLD+) :pointer)
(cffi:defcvar ("__TIMES_ITALIC" +TIMES-ITALIC+) :pointer)
(cffi:defcvar ("__TIMES_BOLD_ITALIC" +TIMES-BOLD-ITALIC+) :pointer)
(cffi:defcvar ("__SYMBOL_FONT" +SYMBOL-FONT+) :pointer)
(cffi:defcvar ("__SCREEN_FONT" +SCREEN-FONT+) :pointer)
(cffi:defcvar ("__SCREEN_BOLD_FONT" +SCREEN-BOLD-FONT+) :pointer)
(cffi:defcvar ("__ZAPF_DINGBATS" +ZAPF-DINGBATS+) :pointer)
(cffi:defcvar ("__NO_LABEL" +NO-LABEL+) :pointer)
(cffi:defcvar ("__NORMAL_LABEL" +NORMAL-LABEL+) :pointer)
(cffi:defcvar ("__SYMBOL_LABEL" +SYMBOL-LABEL+) :pointer)
(cffi:defcvar ("__SHADOW_LABEL" +SHADOW-LABEL+) :pointer)
(cffi:defcvar ("__ENGRAVED_LABEL" +ENGRAVED-LABEL+) :pointer)
[2 lines skipped]
--- /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/widget.lisp 2006/02/27 08:26:41 1.1
[89 lines skipped]
--- /project/cl-fltk/cvsroot/cl-fltk/src/window.lisp 2006/02/27 08:26:41 NONE
+++ /project/cl-fltk/cvsroot/cl-fltk/src/window.lisp 2006/02/27 08:26:41 1.1
[111 lines skipped]
1
0